### Recipe Data with Microdata Source: https://schema.org/Recipe/recipeYield This example demonstrates how to mark up recipe information using Microdata vocabulary from Schema.org embedded within HTML. It clearly defines each property of a recipe. ```html
This classic banana bread recipe comes
from my mom -- the walnuts add a nice texture and flavor to the banana
bread.
Prep Time: 15 minutes
Cook time: 1 hour
Yield: 1 loaf
Tags: Low fat
4.
5. This classic banana bread recipe comes from my mom -- the walnuts add a nice
6. texture and flavor to the banana bread.
7.
8. Prep Time: 15 minutes
9. Cook time: 1 hour
10. Yield: 1 loaf
11. Tags: Low fat
12.
13. Nutrition facts:
14. 240 calories, 9 grams fat
15.
16. Ingredients:
17. - 3 or 4 ripe bananas, smashed
18. - 1 egg
19. - 3/4 cup of sugar
20. ...
21.
22. Instructions:
23. Preheat the oven to 350 degrees. Mix in the ingredients in a bowl. Add the
24. flour last. Pour the mixture into a loaf pan and bake for one hour.
25.
26. 140 comments:
27. From Janel, May 5 -- thank you, great recipe!
28. ...
```
--------------------------------
### Recipe JSON-LD Example
Source: https://schema.org/Recipe/recipeYield
This snippet shows a complete example of a Recipe represented in JSON-LD format. It includes common properties such as name, author, ingredients, instructions, cook time, and nutrition. This structured data can be used by search engines and other applications to understand and display recipe information.
```json
{
"@context": "https://schema.org",
"@type": "Recipe",
"author": "John Smith",
"cookTime": "PT1H",
"datePublished": "2009-05-08",
"description": "This classic banana bread recipe comes from my mom -- the walnuts add a nice texture and flavor to the banana bread.",
"image": "bananabread.jpg",
"recipeIngredient": [
"3 or 4 ripe bananas, smashed",
{
"@type": "PropertyValue",
"value": 1,
"name": "egg"
},
{
"@type": "PropertyValue",
"value": "3/4",
"name": "sugar",
"unitCode": "G21"
}
],
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": "https://schema.org/Comment",
"userInteractionCount": "140"
},
"name": "Mom's World Famous Banana Bread",
"nutrition": {
"@type": "NutritionInformation",
"calories": "240 calories",
"fatContent": "9 grams"
},
"prepTime": "PT15M",
"recipeInstructions": "Preheat the oven to 350 degrees. Mix in the ingredients in a bowl. Add the flour last. Pour the mixture into a loaf pan and bake for one hour.",
"recipeYield": "1 loaf",
"suitableForDiet": "https://schema.org/LowFatDiet"
}
```
--------------------------------
### Recipe Data Structure Example
Source: https://schema.org/Recipe/recipeYield
This example shows a plain text representation of recipe data, often used as a base for structured data implementation. It includes essential recipe components like title, author, ingredients, and instructions.
```text
1. Mom's World Famous Banana Bread
2. By John Smith, May 8, 2009
3.
4.
5. This classic banana bread recipe comes from my mom -- the walnuts add a nice
6. texture and flavor to the banana bread.
7.
8. Prep Time: 15 minutes
9. Cook time: 1 hour
10. Yield: 1 loaf
11. Tags: Low fat
12.
13. Nutrition facts:
14. 240 calories, 9 grams fat
15.
16. Ingredients:
17. - 3 or 4 ripe bananas, smashed
18. - 1 egg
19. - 3/4 cup of sugar
20. ...
21.
22. Instructions:
23. Preheat the oven to 350 degrees. Mix in the ingredients in a bowl. Add the
24. flour last. Pour the mixture into a loaf pan and bake for one hour.
25.
26. 140 comments:
27. From Janel, May 5 -- thank you, great recipe!
28. ...
```
--------------------------------
### Recipe Data with RDFa
Source: https://schema.org/Recipe/recipeYield
This example shows how to structure recipe information using RDFa syntax within HTML, leveraging Schema.org vocabulary. It highlights the use of 'vocab', 'typeof', 'property', and 'resource' attributes for semantic markup.
```html
This classic banana bread recipe comes
from my mom -- the walnuts add a nice texture and flavor to the banana
bread.
Prep Time: 15 minutes
Cook time: 1 hour
Yield: 1 loaf
Tags: Low Fat
This classic banana bread recipe comes
from my mom -- the walnuts add a nice texture and flavor to the banana
bread.
Prep Time: 15 minutes
Cook time: 1 hour
Yield: 1 loaf
Tags: Low fat
This classic banana bread recipe comes
from my mom -- the walnuts add a nice texture and flavor to the banana
bread.
Prep Time: 15 minutes
Cook time: 1 hour
Yield: 1 loaf
Tags: Low Fat
4.
5. This classic banana bread recipe comes from my mom -- the walnuts add a nice
6. texture and flavor to the banana bread.
7.
8. Prep Time: 15 minutes
9. Cook time: 1 hour
10. Yield: 1 loaf
11. Tags: Low fat
12.
13. Nutrition facts:
14. 240 calories, 9 grams fat
15.
16. Ingredients:
17. - 3 or 4 ripe bananas, smashed
18. - 1 egg
19. - 3/4 cup of sugar
20. ...
21.
22. Instructions:
23. Preheat the oven to 350 degrees. Mix in the ingredients in a bowl. Add the
24. flour last. Pour the mixture into a loaf pan and bake for one hour.
25.
26. 140 comments:
27. From Janel, May 5 -- thank you, great recipe!
28. ...
```
--------------------------------
### Recipe Data Representation
Source: https://schema.org/Recipe/recipeIngredient
This snippet shows a structured representation of recipe data, likely derived from JSON-LD. It details various components of a recipe, including ingredients, instructions, and interaction statistics, presented in a JSON format. This format is useful for programmatic access and manipulation of recipe information.
```json
{ "@context": "https://schema.org", "@type": "Recipe", "author": "John Smith", "cookTime": "PT1H", "datePublished": "2009-05-08", "description": "This classic banana bread recipe comes from my mom -- the walnuts add a nice texture and flavor to the banana bread.", "image": "bananabread.jpg", "recipeIngredient": [ "3 or 4 ripe bananas, smashed", { "@type": "PropertyValue", "value": 1, "name": "egg" }, { "@type": "PropertyValue", "value": "3/4", "name": "sugar", "unitCode": "G21"} ], "interactionStatistic": { "@type": "InteractionCounter", "interactionType": "https://schema.org/Comment", "userInteractionCount": "140" }, "name": "Mom's World Famous Banana Bread", "nutrition": { "@type": "NutritionInformation", "calories": "240 calories", "fatContent": "9 grams" }, "prepTime": "PT15M", "recipeInstructions": "Preheat the oven to 350 degrees. Mix in the ingredients in a bowl. Add the flour last. Pour the mixture into a loaf pan and bake for one hour.", "recipeYield": "1 loaf", "suitableForDiet": "https://schema.org/LowFatDiet" }
```
--------------------------------
### Recipe Schema with RDFa
Source: https://schema.org/Recipe/index
Recipe data structured using RDFa, embedded within HTML. This format extends HTML with additional attributes to provide machine-readable semantic information, aligning with schema.org vocabulary.
```html
This classic banana bread recipe comes
from my mom -- the walnuts add a nice texture and flavor to the banana
bread.
Prep Time: 15 minutes
Cook time: 1 hour
Yield: 1 loaf
Tags: Low Fat