MenuItem: микроразметка на сайте schema.su
Узнайте об элементе питания или напитка, который перечислен в меню или разделе меню.
MenuItem - Тип Schema.org
Описание: Пункт меню. Тип: Тип Schema.org. Путь: Вещь> Нематериальный> Пункт меню. Элемент питания или напитка, указанный в меню или разделе меню.
Элемент MenuItem представляет собой объект питания или напитка, который указан в меню или разделе меню на веб-сайте. Такая микроразметка позволяет поисковым системам и другим сервисам лучше понимать содержимое вашего сайта. Рекомендуется использовать эту разметку для ясного представления продуктовых позиций и их описаний.
Свойство | Ожидаемый тип | Описание |
---|---|---|
Properties from MenuItem | ||
menuAddOn |
MenuItem или MenuSection | Дополнительный пункт(и) меню, такие как гарнир из салата или порция картофельных дополнений, которые могут быть добавлены к этому пункту меню. Кроме того, это может быть раздел меню, содержащий допустимые дополнительные пункты меню для этого пункта меню. |
nutrition |
NutritionInformation | Информация о питании для рецепта или элемента меню. |
offers |
Demand или Offer | An offer to provide this itemâfor example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use businessFunction to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a Demand. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. Обратное свойство: itemOffered |
suitableForDiet |
RestrictedDiet | Указывает на диетическое ограничение или рекомендацию, для которых этот рецепт или пункт меню подходит, например, диабетическое, халяль и т.д. |
Properties from Thing | ||
additionalType |
Text или URL | An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. Typically the value is a URI-identified RDF class, and in this case corresponds to the use of rdf:type in RDF. Text values can be used sparingly, for cases where useful information can be added without their being an appropriate schema to reference. In the case of text values, the class label should follow the schema.org style guide. |
alternateName |
Text | Псевдоним для элемента. |
description |
Text или TextObject | Описание элемента. |
disambiguatingDescription |
Text | Подсвойство описания. Краткое описание элемента, используемое для различения от других, схожих элементов. Для того чтобы описание было полезным для разрешения неоднозначности, может потребоваться информация из других свойств (в частности, name). |
identifier |
PropertyValue или Text или URL | The identifier property represents any kind of identifier for any kind of Thing, such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See background notes for more details. |
image |
ImageObject или URL | An image of the item. This can be a URL or a fully described ImageObject. |
mainEntityOfPage |
CreativeWork или URL | Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See background notes for details. Обратное свойство: mainEntity |
name |
Text | Название элемента. |
potentialAction |
Action | Указывает на потенциальное действие, описывающее идеализированное действие, в котором этот объект мог бы выполнять роль 'объекта'. |
sameAs |
URL | URL страницы для ссылки, однозначно указывающей на идентичность объекта. Например, URL страницы объекта на Википедии, записи в Wikidata или официального веб-сайта. |
subjectOf |
CreativeWork или Event | Свойство Schema.org - subjectOf: A CreativeWork or Event about this Thing. Обратное свойство: about |
url |
URL | URL объекта. |
Instances of
MenuItem may appear as a value for the following properties
Свойство | On Types | Описание |
---|---|---|
hasMenuItem | Menu или MenuSection | Пищевой или напитковый продукт, содержащийся в меню или разделе меню. |
itemOffered | Demand или Offer | An item being offered (or demanded). The transactional nature of the offer or demand is documented using businessFunction, e.g. sell, lease etc. While several common expected types are listed explicitly in this definition, others can be used. Using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. |
menuAddOn | MenuItem | Дополнительный пункт(и) меню, такие как гарнир из салата или порция картофельных дополнений, которые могут быть добавлены к этому пункту меню. Кроме того, это может быть раздел меню, содержащий допустимые дополнительные пункты меню для этого пункта меню. |
Examples
Example 1
Copied
Example notes or example HTML without markup.
A simple menu example with a single menu section for tacos and a taco menu item. Note that additional menus are possible for specific languages using the inLanguage property.
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json"> { "@context":"https://schema.org", "@type":"Restaurant", "url":"http://www.somerestaurant.com", "name":"Some Restaurant", "description":"This is the Some Restaurant located on 345 Spear St. San Francisco, 94105 CA. It serves Indian-Mexican fusion cuisine", "servesCuisine":[ "Indian-Mexican Fusion" ], "hasMenu":{ "@type":"Menu", "hasMenuSection":{ "@type":"MenuSection", "name":"Tacos", "description":"Tacos inspired by India cuisine.", "image":[ "https://somerestaurant.com/some_tacos.jpg", "https://somerestaurant.com/more_tacos.jpg" ], "offers":{ "@type":"Offer", "availabilityEnds":"2017-03-02T08:22:00", "availabilityStarts":"2017-03-02T08:22:00" }, "hasMenuItem":{ "@type":"MenuItem", "name":"Aloo Gobi Taco", "description":"Mexico City-style street corn tortilla taco filled with a flavorful mixture of mildly south Indian spiced cauliflower, potato, tomato, onions and bell peppers.", "offers":{ "@type":"Offer", "price":"3.50", "priceCurrency":"USD" }, "nutrition":{ "@type":"NutritionInformation", "calories":"170 calories", "fatContent":"3 grams", "fiberContent":"2 grams", "proteinContent":"4 grams" }, "suitableForDiet":"https://schema.org/GlutenFreeDiet" } }, "inLanguage":"English" } } </script>
Structured representation of the JSON-LD example.
Example 2
Copied
Example notes or example HTML without markup.
An example of a menu with nested MenuSections.
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json"> { "@context":"https://schema.org", "@type":"Restaurant", "url":"http://www.thisisarestaurant.com", "name":"The Restaurant", "image":"http://www.example.com/image-of-some-restaurant.jpg", "description":"This is an example restaurant that serves American cuisine.", "servesCuisine":[ "American cuisine" ], "hasMenu":{ "@type":"Menu", "name":"Dine-In Menu", "description":"Menu for in-restaurant dining only.", "hasMenuSection":[ { "@type":"MenuSection", "name":"Dinner", "description":"Dinner dishes", "image":"https://thisisarestaurant.com/dinner_dishes.jpg", "offers":{ "@type":"Offer", "availabilityEnds":"2017-03-02T08:22:00", "availabilityStarts":"2017-03-02T08:22:00" }, "hasMenuSection":[ { "@type":"MenuSection", "name":"Starters", "description":"Appetizers and such", "image":"https://thisisarestaurant.com/starter_dishes.jpg", "offers":{ "@type":"Offer", "availabilityEnds":"2017-03-02T08:22:00", "availabilityStarts":"2017-03-02T08:22:00" }, "hasMenuItem":{ "@type":"MenuItem", "name":"Potato Skins", "description":"Small serving of stuffed potato skins.", "offers":{ "@type":"Offer", "price":"7.49", "priceCurrency":"USD" }, "suitableForDiet":"https://schema.org/GlutenFreeDiet" } }, { "@type":"MenuSection", "name":"Soups & Salads", "description":"Salads and a few choices of soup", "image":"https://thisisarestaurant.com/soup_and_salad_dishes.jpg", "offers":{ "@type":"Offer", "availabilityEnds":"2017-03-02T08:22:00", "availabilityStarts":"2017-03-02T08:22:00" }, "hasMenuItem":{ "@type":"MenuItem", "name":"Pea Soup", "description":"Creamy pea soup topped with melted cheese and sourdough croutons.", "offers":{ "@type":"Offer", "price":"3.49", "priceCurrency":"USD" } } } ] } ] } } </script>
Structured representation of the JSON-LD example.