Datu bāze urdu valodā / hindi LEKCIJA 03 Trīs līmeņu arhitektūra urdu / hindi valodā Vcomsat

Es veidoju rakstus par konkrētām sastāvdaļām un sniedzu to uzturvērtības faktus.

Manā rakstu lapā man ir šī pašreizējā shēma Article tips, kas darbojas pilnīgi labi no tā, ko es zinu. Bet es gribētu, lai man būtu vēl viena shēma, kas tīmekļa vietnē ietvertu uzturvielu marķējumu.

Ja kodam varu pievienot citu shēmu:

  • Vai tas var būt tajā pašā script tagu?
  • Kuru vajadzētu lietot?
<?php  <script type='application/ld+json'> { '@context' : 'http://schema.org', '@type' : 'Article', 'mainEntityOfPage': { '@type': 'WebPage', '@id': 'http://cathscafe.example.com/' }, 'name' : 'Olive Oil Review - 2019', 'headline' : 'Olive Oil Review', 'author' : { '@type' : 'Person', 'name' : 'Christopher Karam' }, 'datePublished' : '2019-01-04', 'dateModified' : '2019-01-04', 'image' : 'https://static1.squarespace.com/static/59a7820e2994ca11766093d3/t/5b00a06f575d1f8e6e07c981/1526767728080/olive-oil-fat-healthy-food-dietary-my-diet-goal-small-hd.jpg', 'articleSection' : 'Wellness', 'articleBody' : 'Olive oil is a liquid fat obtained from olives, a traditional tree crop of the Mediterranean. The oil is produced by cold pressing whole olives...', 'url' : 'https://mydietgoal.com/olive-oil', 'publisher' : { '@type' : 'Organization', 'name' : 'MyDietGoal', 'logo' : { '@type': 'ImageObject', 'name': 'MyDietGoalLogo', 'url' : 'https://static1.squarespace.com/static/59a7820e2994ca11766093d3/t/5b6f96c6032be42d1403dd79/1551652043684.jpg', 'width' : '250', 'height' : '250' }}, 'aggregateRating' : { '@type' : 'AggregateRating', 'ratingValue' : '5.0', 'bestRating' : '5.0', 'ratingCount' : '6' } } </script>  ?> var13 ->

  • Pārsūtīts uz Stack Overflow

Saskaņā ar schema.org UztursInformācija ir attiecas tikai uz ēdienkartes vienumiem vai receptēm. Ja mēģināt iezīmēt kaut ko citu, jums tas būs jāatdarina ar visiem obligātajiem laukiem.

Ievietojot citu objektu tajā pašā <script> tags tehniski būtu pareizs, jums tomēr jāizmanto JSON masīvs []. Ne Google, ne Yandex validators neatgriezīs brīdinājumus vai kļūdas par šādu fragmentu:

<script type='application/ld+json'> [ { '@context' : 'http://schema.org', '@type' : 'Article', 'mainEntityOfPage': { '@type': 'WebPage', '@id': 'http://cathscafe.example.com/' }, 'name' : 'Olive Oil Review - 2019', 'headline' : 'Olive Oil Review', 'author' : { '@type' : 'Person', 'name' : 'Christopher Karam' }, 'datePublished' : '2019-01-04', 'dateModified' : '2019-01-04', 'image' : 'https://static1.squarespace.com/static/59a7820e2994ca11766093d3/t/5b00a06f575d1f8e6e07c981/1526767728080/olive-oil-fat-healthy-food-dietary-my-diet-goal-small-hd.jpg', 'articleSection' : 'Wellness', 'articleBody' : 'Olive oil is a liquid fat obtained from olives, a traditional tree crop of the Mediterranean. The oil is produced by cold pressing whole olives...', 'url' : 'https://mydietgoal.com/olive-oil', 'publisher' : { '@type' : 'Organization', 'name' : 'MyDietGoal', 'logo' : { '@type': 'ImageObject', 'name': 'MyDietGoalLogo', 'url' : 'https://static1.squarespace.com/static/59a7820e2994ca11766093d3/t/5b6f96c6032be42d1403dd79/1551652043684.jpg', 'width' : '250', 'height' : '250' }}, 'aggregateRating' : { '@type' : 'AggregateRating', 'ratingValue' : '5.0', 'bestRating' : '5.0', 'ratingCount' : '6' } }, { '@context': 'http://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': 'http://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': 'http://schema.org/LowFatDiet' } ] </script> 

Ja vēlaties, varat ievietot abus atsevišķi <script> tagus, un rezultāts būs tāds pats:

<script type='application/ld+json'> { '@context' : 'http://schema.org', '@type' : 'Article', 'mainEntityOfPage': { '@type': 'WebPage', '@id': 'http://cathscafe.example.com/' }, 'name' : 'Olive Oil Review - 2019', 'headline' : 'Olive Oil Review', 'author' : { '@type' : 'Person', 'name' : 'Christopher Karam' }, 'datePublished' : '2019-01-04', 'dateModified' : '2019-01-04', 'image' : 'https://static1.squarespace.com/static/59a7820e2994ca11766093d3/t/5b00a06f575d1f8e6e07c981/1526767728080/olive-oil-fat-healthy-food-dietary-my-diet-goal-small-hd.jpg', 'articleSection' : 'Wellness', 'articleBody' : 'Olive oil is a liquid fat obtained from olives, a traditional tree crop of the Mediterranean. The oil is produced by cold pressing whole olives...', 'url' : 'https://mydietgoal.com/olive-oil', 'publisher' : { '@type' : 'Organization', 'name' : 'MyDietGoal', 'logo' : { '@type': 'ImageObject', 'name': 'MyDietGoalLogo', 'url' : 'https://static1.squarespace.com/static/59a7820e2994ca11766093d3/t/5b6f96c6032be42d1403dd79/1551652043684.jpg', 'width' : '250', 'height' : '250' }}, 'aggregateRating' : { '@type' : 'AggregateRating', 'ratingValue' : '5.0', 'bestRating' : '5.0', 'ratingCount' : '6' } } </script> <script type='application/ld+json'> { '@context': 'http://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': 'http://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': 'http://schema.org/LowFatDiet' } </script> 

Vairāk par to varat atrast šeit.

  • Vai "Noteiktie brīdinājumi" kaut ko ietekmē Google gala rezultātus?
  • @ChristopherKaram, ja jūs atsaucaties uz brīdinājumiem par iepriekš minēto fragmentu, tas drīzāk ir ieteikums - es domāju, ka tas varētu būt tāds, ka kāds ievieš vairāk informācijas nekā jūs varētu gūt labumu. Parasti jums vienmēr jāievēro specifikācijas, ja vien jums nav ļoti pamatota iemesla to nedarīt.

strādāja par jums: Charles Robertson | Vēlies ar mums sazināties?