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

Including "siesta" in Schema.org OpeningHoursSpecification in JSON-LD

我在 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"}]

我找不到任何示例来调整此规范以包括 "siesta" - 一个地方经营的情况,例如从早上 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,加上时区信息