Skip to content

Instantly share code, notes, and snippets.

@christianlupus
Last active November 29, 2020 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christianlupus/c269b0f7f59a830c2593906a132a4f95 to your computer and use it in GitHub Desktop.
Save christianlupus/c269b0f7f59a830c2593906a132a4f95 to your computer and use it in GitHub Desktop.
<script type="application/ld+json">
[
{
"@context": {
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"schema": "http://schema.org/"
},
"@graph": [
{
"@type": "schema:Class",
"@id": "schema:RecipeIngredientGroup",
"schema:name": "RecipeIngredientGroup",
"schema:description": "A group if ingredients of a [[Recipe]] for a certain part. For example, cream and dough of a cake can be different such groups."
},
{
"@type": "schema:Property",
"@id": "http://schema.org/recipeIngredient",
"schema:name": "recipeIngregient",
"schema:description": "A single ingredient used in the recipe, e.g. sugar, flour or garlic or a group of ingredients used in the recipe.",
"schema:domainIncludes": {
"@id": "schema:RecipeIngredientGroup"
},
"schema:rangeIncludes": [
{
"@id": "schema:RecipeIngredientGroup"
},
{
"@id": "schema:TypeAndQuantityNode"
}
]
}
]
},
{
"@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",
"1 egg",
"3/4 cup of sugar",
{
"@type": "RecipeIngredientGroup"
}
],
"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 fat"
},
"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"
}
]
</script>
@jaygray0919
Copy link

See email. BBTY.

@jaygray0919
Copy link

See updated email with templates, examples and next steps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment