- From: Thad Guidry <thadguidry@gmail.com>
- Date: Mon, 9 Aug 2021 06:22:15 -0500
- To: blupal in <blupalmail@gmail.com>
- Cc: "schema.org Mailing List" <public-schemaorg@w3.org>, public-vocabs@w3.org
- Message-ID: <CAChbWaNTKSTW8UZ5hzXDN_gym0zmrwu8L4auiWx=cdftO1-grQ@mail.gmail.com>
You can see an example in Schema.org already. https://schema.org/NutritionInformation#eg-0013 <script type="application/ld+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", "1 egg", "3/4 cup of sugar" ], "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> Instead of Recipe in that example, you can use a Product <https://schema.org/Product> or whatever other type has nutritional values in your use case, perhaps like DietarySupplement <https://schema.org/DietarySupplement> or if in the restaurant business, MenuItem <https://schema.org/MenuItem> https://schema.org/NutritionInformation Thad https://www.linkedin.com/in/thadguidry/ https://calendly.com/thadguidry/ On Mon, Aug 9, 2021 at 3:03 AM blupal in <blupalmail@gmail.com> wrote: > Sir, > > We want to add nutrition data in the product via schema code > can we get Examples encoded as JSON-LD in a HTML script tag. > > Like calcium potassium zinc, with percentage etc.. > > please reply > team support > Navill H Motha > +91 7092466111 > INDIA -chennai > >
Received on Monday, 9 August 2021 11:22:45 UTC