gpt4 book ai didi

time - 在 JSON-LD 的 Schema.org OpeningHoursSpecification 中包含 "siesta"

转载 作者:行者123 更新时间:2023-12-05 04:12:59 25 4
gpt4 key购买 nike

我以这种方式在 JSON-LD 中使用 Schema.org OpeningHoursSpecification:

[{"@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"}]

我找不到任何示例来调整此规范以包含“午睡” - 一个地方营业的情况,例如从早上 8 点到下午 1 点,从下午 3 点到晚上 8 点。

最佳答案

根据@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类型进行修饰,添加时区信息。

关于time - 在 JSON-LD 的 Schema.org OpeningHoursSpecification 中包含 "siesta",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38870645/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com