Schema.org 有多家餐厅
Multiple restaurants in Schema.org
我们有一些餐厅有多个地点或分支机构。我想包含正确的 Schema.org 标记,但无法找到允许列出多个餐厅的任何内容。
每家餐厅都有自己的地址、电子邮件、电话和营业时间,甚至可能是 'branch name'。
两个分支机构都列在同一个网站上。
这是我们通常使用的单个餐厅架构的示例:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Restaurant",
"name": "Resty name",
"openingHours": [
"Tu-Sa 18:00-21:30",
"Fr-Sa 12:00-14:30"
],
"address": {
"@type": "PostalAddress",
"addressRegion": "addy region",
"postalCode": "POST CODE",
"streetAddress": "street addy"
},
"servesCuisine": [
"type",
"another type"
],
"email" : "email@address.com",
"telephone": "0123",
"url": "http://website.address.com",
"logo" : "http://website.address.com/logo.png"
}
</script>
我遇到了部门规范,我认为这是我应该标记同一组织的多个位置的方式;
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"name": "Orga name",
"url": "http://orga-url.com",
"logo": "http://orga-url/img/logo.png",
"telephone": "01234567890",
"email": "info@orga-url.com",
"department":
[
{
"@type": "Restaurant",
"name": "Resta name",
"address": {
"@type": "PostalAddress",
"addressRegion": "region",
"postalCode": "POST",
"streetAddress": "Street addy"
},
"openingHours": [
"Tu-Fr 17:00-00:00",
"Sa 12:00-00:00",
"Su 12:00-21:00"
],
"email" : "branch@orga-url.com"
},
{
"@type": "Restaurant",
"name": "Resta name",
"address": {
"@type": "PostalAddress",
"addressRegion": "region",
"postalCode": "POST",
"streetAddress": "Street addy"
},
"openingHours": [
"Mo-Th 11:00-00:00",
"Fr-Sa 11:00-00:30",
"Su 11:00-23:00"
],
"email" : "branch@orga-url.com"
}
]
}
</script>
我通过 Google 验证器 (https://developers.google.com/structured-data/testing-tool/) 获得了 运行 这个结果,一切都恢复正常。如果有人有任何建议可以更好地优化上述内容,我很想听听!谢谢
我们有一些餐厅有多个地点或分支机构。我想包含正确的 Schema.org 标记,但无法找到允许列出多个餐厅的任何内容。
每家餐厅都有自己的地址、电子邮件、电话和营业时间,甚至可能是 'branch name'。
两个分支机构都列在同一个网站上。
这是我们通常使用的单个餐厅架构的示例:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Restaurant",
"name": "Resty name",
"openingHours": [
"Tu-Sa 18:00-21:30",
"Fr-Sa 12:00-14:30"
],
"address": {
"@type": "PostalAddress",
"addressRegion": "addy region",
"postalCode": "POST CODE",
"streetAddress": "street addy"
},
"servesCuisine": [
"type",
"another type"
],
"email" : "email@address.com",
"telephone": "0123",
"url": "http://website.address.com",
"logo" : "http://website.address.com/logo.png"
}
</script>
我遇到了部门规范,我认为这是我应该标记同一组织的多个位置的方式;
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"name": "Orga name",
"url": "http://orga-url.com",
"logo": "http://orga-url/img/logo.png",
"telephone": "01234567890",
"email": "info@orga-url.com",
"department":
[
{
"@type": "Restaurant",
"name": "Resta name",
"address": {
"@type": "PostalAddress",
"addressRegion": "region",
"postalCode": "POST",
"streetAddress": "Street addy"
},
"openingHours": [
"Tu-Fr 17:00-00:00",
"Sa 12:00-00:00",
"Su 12:00-21:00"
],
"email" : "branch@orga-url.com"
},
{
"@type": "Restaurant",
"name": "Resta name",
"address": {
"@type": "PostalAddress",
"addressRegion": "region",
"postalCode": "POST",
"streetAddress": "Street addy"
},
"openingHours": [
"Mo-Th 11:00-00:00",
"Fr-Sa 11:00-00:30",
"Su 11:00-23:00"
],
"email" : "branch@orga-url.com"
}
]
}
</script>
我通过 Google 验证器 (https://developers.google.com/structured-data/testing-tool/) 获得了 运行 这个结果,一切都恢复正常。如果有人有任何建议可以更好地优化上述内容,我很想听听!谢谢