forked from schemaorg/schemaorg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsdo-menu-examples.txt
163 lines (142 loc) · 4.78 KB
/
sdo-menu-examples.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
TYPES: Menu, MenuSection, hasMenuItem, hasMenuSection, NutritionInformation, MenuItem
PRE-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.
MICRODATA:
TODO
RDFA:
TODO
JSON:
<script type="application/ld+json">
{
"@context":"http://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":"T8:22:00",
"availabilityStarts":"T8: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":"http://schema.org/GlutenFreeDiet"
}
},
"inLanguage":"English"
}
}
</script>
TYPES: Menu, MenuSection, hasMenuItem, hasMenuSection, NutritionInformation, MenuItem
PRE-MARKUP:
An example of a menu with nested MenuSections.
MICRODATA:
TODO
RDFA:
TODO
JSON:
<script type="application/ld+json">
{
"@context":"http://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":"T8:22:00",
"availabilityStarts":"T8:22:00"
},
"hasMenuSection":[
{
"@type":"MenuSection",
"name":"Starters",
"description":"Appetizers and such",
"image":"https://thisisarestaurant.com/starter_dishes.jpg",
"offers":{
"@type":"Offer",
"availabilityEnds":"T8:22:00",
"availabilityStarts":"T8:22:00"
},
"hasMenuItem":{
"@type":"MenuItem",
"name":"Potato Skins",
"description":"Small serving of stuffed potato skins.",
"offers":{
"@type":"Offer",
"price":"7.49",
"priceCurrency":"USD"
},
"suitableForDiet":"http://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":"T8:22:00",
"availabilityStarts":"T8: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>