⚠️ Важно: данный сайт не имеет отношения к владельцам schema.org, это всего лишь любительский (неофициальный) перевод. Сайт сделан для тех кто плохо воспринимает технический английский. Оригинальную и актуальную информацию на английском языке вы можете найти тут: schema.org/OpeningHoursSpecification.

Микроразметка OpeningHoursSpecification

Структурированное значение для информации о часах работы места или услуги.

OpeningHoursSpecification - Тип Schema.org
❗️ В микроразметке schema.org важен регистр букв, поэтому не перепутайте с openingHoursSpecification.
Описание: Структурированное значение, предоставляющее информацию о часах работы места или определенной услуги внутри места.

Место открыто, если указано свойство opens, в противном случае - закрыто.

Если значение для свойства closes меньше значения для свойства opens, то промежуток часов считается распространяющимся на следующий день.
Открывающиеся и закрывающиеся часы для места или определенной услуги внутри места обеспечивают информацией о расписании работы. Место считается открытым, если задано свойство 'opens', и закрытым в противном случае. Если значение свойства 'closes' меньше значения свойства 'opens', то временной диапазон считается охватывающим следующий день.
СвойствоОжидаемый типОписание
Properties from OpeningHoursSpecification
closes Time Час закрытия места или услуги в заданный день(и) недели.
dayOfWeek DayOfWeek День недели, для которого действительны часы работы.
opens Time Час начала работы места или услуги в указанный день(и) недели.
validFrom Date или DateTime Дата, когда объект становится действительным.
validThrough Date или DateTime Свойство validThrough показывает дату, после которой элемент больше не является действительным. Например, окончание предложения или периода заработной платы.
Properties from Thing
additionalType Text или URL An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. Typically the value is a URI-identified RDF class, and in this case corresponds to the use of rdf:type in RDF. Text values can be used sparingly, for cases where useful information can be added without their being an appropriate schema to reference. In the case of text values, the class label should follow the schema.org style guide.
alternateName Text Псевдоним для элемента.
description Text или TextObject Описание элемента.
disambiguatingDescription Text Подсвойство описания. Краткое описание элемента, используемое для различения от других, схожих элементов. Для того чтобы описание было полезным для разрешения неоднозначности, может потребоваться информация из других свойств (в частности, name).
identifier PropertyValue или Text или URL The identifier property represents any kind of identifier for any kind of Thing, such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See background notes for more details.
image ImageObject или URL An image of the item. This can be a URL or a fully described ImageObject.
mainEntityOfPage CreativeWork или URL Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See background notes for details. Обратное свойство: mainEntity
name Text Название элемента.
potentialAction Action Указывает на потенциальное действие, описывающее идеализированное действие, в котором этот объект мог бы выполнять роль 'объекта'.
sameAs URL URL страницы для ссылки, однозначно указывающей на идентичность объекта. Например, URL страницы объекта на Википедии, записи в Wikidata или официального веб-сайта.
subjectOf CreativeWork или Event Свойство Schema.org - subjectOf: A CreativeWork or Event about this Thing. Обратное свойство: about
url URL URL объекта.

Instances of OpeningHoursSpecification may appear as a value for the following properties
СвойствоOn TypesОписание
businessDays ShippingDeliveryTime Дни недели, когда торговец typcially работает, указанные с помощью разметки открытых часов.
hoursAvailable ContactPoint или LocationFeatureSpecification или Service Часы, в течение которых этот сервис или контакт доступен.
openingHoursSpecification Place Открывающиеся часы (openingHoursSpecification) - A Schema.org Property. The opening hours of a certain place.
specialOpeningHoursSpecification Place The special opening hours of a certain place.Use this to explicitly override general opening hours brought in scope by openingHoursSpecification or openingHours.

Acknowledgements

GoodRelations Vocabulary Classes
This class is derived from the GoodRelations Vocabulary for E-Commerce, created by Martin Hepp. GoodRelations is a data model for sharing e-commerce data on the Web that can be expressed in a variety of syntaxes, including RDFa and HTML5 Microdata. More information about GoodRelations can be found at http://purl.org/goodrelations/.

Examples

Example 1
Copied
Example notes or example HTML without markup.
<div>
  <h1>Middle of Nowhere Foods</h1>
  <h2>Opening hours</h2>
  <p>Normally open daily <time datetime="09:00:00">9am</time>-<time datetime="14:00:00">2pm</time> except on:</p>
  <ul>
    <li>
      <time datetime="2013-12-24">24 December 2013</time> and
      <time datetime="2013-12-25">25 December 2013</time>:
      <time datetime="09:00:00">9am</time>-<time datetime="11:00:00">11am</time>
    </li>
    <li>
      <time datetime="2014-01-01">1st January 2014</time>:
      <time datetime="12:00:00">Noon</time>-<time datetime="14:00:00">2pm</time>
    </li>
  </ul>
</div>
Example encoded as Microdata embedded in HTML.
<div itemscope itemtype="https://schema.org/Store">
  <h1 itemprop="name">Middle of Nowhere Foods</h1>
  <h2>Opening hours</h2>
    <meta itemprop="openingHours" content="Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00">
    <p>Normally open daily <time datetime="09:00:00">9am</time>-<time datetime="14:00:00">2pm</time> except on:</p>
  <ul>
    <li itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
      <time itemprop="validFrom" datetime="2013-12-24">24 December 2013</time> and
      <time itemprop="validThrough" datetime="2013-12-25">25 December 2013</time>:
      <time itemprop="opens" datetime="09:00:00">9am</time>-<time itemprop="closes" datetime="11:00:00">11am</time>
    </li>
    <li itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
      <time itemprop="validFrom validThrough" datetime="2014-01-01">1st January 2014</time>:
      <time itemprop="opens" datetime="12:00:00">Noon</time>-<time itemprop="closes" datetime="14:00:00">2pm</time>
    </li>
  </ul>
</div>
Example encoded as RDFa embedded in HTML.
<div vocab="https://schema.org/" typeof="Store">
  <h1 property="name">Middle of Nowhere Foods</h1>
  <h2>Opening hours</h2>
  <meta property="openingHours" content="Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00">
  <p>Normally open daily <time datetime="09:00:00">9am</time>-<time datetime="14:00:00">2pm</time> except on:</p>
  <ul>
    <li property="openingHoursSpecification" typeof="OpeningHoursSpecification">
      <time property="validFrom" datetime="2013-12-24">24 December 2013</time> and
      <time property="validThrough" datetime="2013-12-25">25 December 2013</time>:
      <time property="opens" datetime="09:00:00">9am</time>-<time property="closes" datetime="11:00:00">11am</time>
    </li>
    <li property="openingHoursSpecification" typeof="OpeningHoursSpecification">
      <time property="validFrom validThrough" datetime="2014-01-01">1st January 2014</time>:
      <time property="opens" datetime="12:00:00">Noon</time>-<time property="closes" datetime="14:00:00">2pm</time>
    </li>
  </ul>
</div>
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Store",
  "name": "Middle of Nowhere Foods",
  "openingHours": "Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00",
  "openingHoursSpecification":
  [
    {
      "@type": "OpeningHoursSpecification",
      "validFrom": "2013-12-24",
      "validThrough": "2013-12-25",
      "opens": "09:00:00",
      "closes": "11:00:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "validFrom": "2014-01-01",
      "validThrough": "2014-01-01",
      "opens": "12:00:00",
      "closes": "14:00:00"
    }
  ]
}
</script>
Structured representation of the JSON-LD example.
Example 2
Copied
Example notes or example HTML without markup.
<div>
<h1>Music Resource Centre</h1>
<h2>Opening hours</h2>

<div>Monday: <time> 9:00 AM</time> - <time> 5:00 PM</time></div>

<div>Tuesday: <time> 9:00 AM</time> - <time> 5:00 PM</time></div>

<div>Wednesday: <time> 9:00 AM</time> - <time> 5:00 PM</time></div>

<div>Thursday: <time> 9:00 AM</time> - <time> 5:00 PM</time></div>

<div>Friday: <time> 9:00 AM</time> - <time> 5:00 PM</time></div>

<div>Saturday: <time> 9:00 AM</time> - <time> 5:00 PM</time></div>

<div>Sunday: <time> 9:00 AM</time> - <time> 5:00 PM</time></div>

    <h2 >Contact information</h2>
        <div>Email address:
        <a href="mailto:dscott@laurentian.ca">dscott@laurentian.ca</a></div>

    <div>
        <div>
            <h3>Mailing address</h3>
            School of Education - Music Resource Centre<br />Laurentian University<br />
            Sudbury<br />
            ON<br />
            Canada<br />
            P3E 2C6<br />
        </div>
    </div>

    <h2>Branch relationship</h2>
    <div>Parent library:
        <a href="/eg/opac/library/LUSYS">Laurentian University</a>
    </div>
Example encoded as Microdata embedded in HTML.
<div itemscope itemtype="https://schema.org/Library">
    <h1 itemprop="name">
        Music Resource Centre
    </h1>
    <h2>
        Opening hours
    </h2>
    <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
        <link itemprop="dayOfWeek" href="https://schema.org/Monday">Monday: <time itemprop="opens" content="09:00:00">9:00 AM</time> - <time itemprop="closes" content="17:00:00">5:00 PM</time>
    </div>
    <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
        <link itemprop="dayOfWeek" href="https://schema.org/Tuesday">Tuesday: <time itemprop="opens" content="09:00:00">9:00 AM</time> - <time itemprop="closes" content="17:00:00">5:00 PM</time>
    </div>
    <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
        <link itemprop="dayOfWeek" href="https://schema.org/Wednesday">Wednesday: <time itemprop="opens" content="09:00:00">9:00 AM</time> - <time itemprop="closes" content="17:00:00">5:00 PM</time>
    </div>
    <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
        <link itemprop="dayOfWeek" href="https://schema.org/Thursday">Thursday: <time itemprop="opens" content="09:00:00">9:00 AM</time> - <time itemprop="closes" content="17:00:00">5:00 PM</time>
    </div>
    <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
        <link itemprop="dayOfWeek" href="https://schema.org/Friday">Friday: <time itemprop="opens" content="09:00:00">9:00 AM</time> - <time itemprop="closes" content="17:00:00">5:00 PM</time>
    </div>
    <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
        <link itemprop="dayOfWeek" href="https://schema.org/Saturday">Saturday: <time itemprop="opens" content="09:00:00">9:00 AM</time> - <time itemprop="closes" content="17:00:00">5:00 PM</time>
    </div>
    <div itemprop="openingHoursSpecification" itemscope itemtype="https://schema.org/OpeningHoursSpecification">
        <link itemprop="dayOfWeek" href="https://schema.org/Sunday">Sunday: <time itemprop="opens" content="09:00:00">9:00 AM</time> - <time itemprop="closes" content="17:00:00">5:00 PM</time>
    </div>
    <h2>
        Contact information
    </h2>
    <div>
        Email address: <a href="mailto:dscott@laurentian.ca" itemprop="email">dscott@laurentian.ca</a>
    </div>
    <div>
        <div itemprop="location address" itemscope itemtype="https://schema.org/PostalAddress">
            <h3 itemprop="contactType">
                Mailing address
            </h3><span itemprop="streetAddress">School of Education - Music Resource Centre<br>
            Laurentian University</span><br>
            <span itemprop="addressLocality">Sudbury</span><br>
            <span itemprop="addressRegion">ON</span><br>
            <span itemprop="addressCountry">Canada</span><br>
            <span itemprop="postalCode">P3E 2C6</span><br>
        </div>
    </div>
    <h2>
        Branch relationship
    </h2>
    <div>
        Parent library: <a itemprop="parentOrganization" href="/eg/opac/library/LUSYS">Laurentian University</a>
    </div>
</div>
Example encoded as RDFa embedded in HTML.
<div vocab="https://schema.org/" typeof="Library">
    <h1 property="name">
        Music Resource Centre
    </h1>
    <h2>
        Opening hours
    </h2>
    <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
        <link property="dayOfWeek" href="https://schema.org/Monday">Monday: <time property="opens" content="09:00:00">9:00 AM</time> - <time property="closes" content="17:00:00">5:00 PM</time>
    </div>
    <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
        <link property="dayOfWeek" href="https://schema.org/Tuesday">Tuesday: <time property="opens" content="09:00:00">9:00 AM</time> - <time property="closes" content="17:00:00">5:00 PM</time>
    </div>
    <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
        <link property="dayOfWeek" href="https://schema.org/Wednesday">Wednesday: <time property="opens" content="09:00:00">9:00 AM</time> - <time property="closes" content="17:00:00">5:00 PM</time>
    </div>
    <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
        <link property="dayOfWeek" href="https://schema.org/Thursday">Thursday: <time property="opens" content="09:00:00">9:00 AM</time> - <time property="closes" content="17:00:00">5:00 PM</time>
    </div>
    <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
        <link property="dayOfWeek" href="https://schema.org/Friday">Friday: <time property="opens" content="09:00:00">9:00 AM</time> - <time property="closes" content="17:00:00">5:00 PM</time>
    </div>
    <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
        <link property="dayOfWeek" href="https://schema.org/Saturday">Saturday: <time property="opens" content="09:00:00">9:00 AM</time> - <time property="closes" content="17:00:00">5:00 PM</time>
    </div>
    <div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
        <link property="dayOfWeek" href="https://schema.org/Sunday">Sunday: <time property="opens" content="09:00:00">9:00 AM</time> - <time property="closes" content="17:00:00">5:00 PM</time>
    </div>
    <h2>
        Contact information
    </h2>
    <div>
        Email address: <a href="mailto:dscott@laurentian.ca" property="email">dscott@laurentian.ca</a>
    </div>
    <div>
        <div property="location address" typeof="PostalAddress">
            <h3 property="contactType">
                Mailing address
            </h3><span property="streetAddress">School of Education - Music Resource Centre<br>
            Laurentian University</span><br>
            <span property="addressLocality">Sudbury</span><br>
            <span property="addressRegion">ON</span><br>
            <span property="addressCountry">Canada</span><br>
            <span property="postalCode">P3E 2C6</span><br>
        </div>
    </div>
    <h2>
        Branch relationship
    </h2>
    <div>
        Parent library: <a property="parentOrganization" href="/eg/opac/library/LUSYS">Laurentian University</a>
    </div>
</div>
Example encoded as JSON-LD in a HTML script tag.
<script type="application/ld+json">
{
  "@context": [
    "https://schema.org",
    { "@language": "en-ca" }
  ],
  "@type": "Library",
  "address":  {
    "@id": "_:school_edu_library_1",
    "@type": "PostalAddress",
    "addressCountry": "Canada",
    "addressLocality": "Sudbury",
    "addressRegion": "ON",
    "contactType": "Mailing address",
    "postalCode": "P3E 2C6",
    "streetAddress": "School of Education - Music Resource Centre Laurentian University"
  },
  "email":  "mailto:dscott@laurentian.ca",
  "location": { "@id": "_:school_edu_library_1" },
  "name":  "Music Resource Centre",
  "parentOrganization": "https://laurentian.concat.ca/eg/opac/library/LUSYS",
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "closes":  "17:00:00",
      "dayOfWeek": "https://schema.org/Sunday",
      "opens":  "09:00:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "closes": "17:00:00" ,
      "dayOfWeek": "https://schema.org/Saturday",
      "opens": "09:00:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "closes":  "17:00:00",
      "dayOfWeek": "https://schema.org/Thursday",
      "opens": "09:00:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "closes": "17:00:00",
      "dayOfWeek": "https://schema.org/Tuesday",
      "opens": "09:00:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "closes": "17:00:00",
      "dayOfWeek":  "https://schema.org/Friday",
      "opens": "09:00:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "closes": "17:00:00",
      "dayOfWeek": "https://schema.org/Monday",
      "opens": "09:00:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "closes": "17:00:00",
      "dayOfWeek":  "https://schema.org/Wednesday",
      "opens": "09:00:00"
    }
  ]
}
</script>
Structured representation of the JSON-LD example.

Обсуждение "OpeningHoursSpecification"