我OpeningHoursSpecification
以这种方式在JSON-LD中使用Schema.org :
[{"@type":"OpeningHoursSpecification","dayOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday"],"open":"08:00","closes":"20:00"},{"@type":"OpeningHoursSpecification","dayOfWeek":["Saturday"],"open":"08:00","closes":"14:00"},{"@type":"OpeningHoursSpecification","dayOfWeek":["Sunday"],"open":"00:00","closes":"00:00"}]
我找不到使该规范包含“午睡”的任何示例-某个地方运营的情况,例如,从8AM到1PM,从3PM到8PM。
@UNOR编辑
这可能会让您入门:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Service",
"url": "http://www.example.com/",
"hoursAvailable": [{
"@type": "OpeningHoursSpecification",
"opens": "08:00",
"closes": "13:00",
"dayOfWeek": [{
"@type": "DayOfWeek",
"@id": "http://schema.org/Monday",
"name": "Monday"
},
{
"@type": "DayOfWeek",
"@id": "http://schema.org/Tuesday",
"name": "Tuesday"
},
{
"@type": "DayOfWeek",
"@id": "http://schema.org/Wednesday",
"name": "Wednesday"
},
{
"@type": "DayOfWeek",
"@id": "http://schema.org/Thursday",
"name": "Thursday"
},
{
"@type": "DayOfWeek",
"@id": "http://schema.org/Friday",
"name": "Friday"
}]
},
{
"@type": "OpeningHoursSpecification",
"opens": "15:00",
"closes": "20:00",
"dayOfWeek": [{
"@type": "DayOfWeek",
"@id": "http://schema.org/Monday",
"name": "Monday"
},
{
"@type": "DayOfWeek",
"@id": "http://schema.org/Tuesday",
"name": "Tuesday"
},
{
"@type": "DayOfWeek",
"@id": "http://schema.org/Wednesday",
"name": "Wednesday"
},
{
"@type": "DayOfWeek",
"@id": "http://schema.org/Thursday",
"name": "Thursday"
},
{
"@type": "DayOfWeek",
"@id": "http://schema.org/Friday",
"name": "Friday"
}]
}]
}
</script>
您可以使用更精确的类型进行修饰,@Service
并添加时区信息。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句