Thing > Intangible > StructuredValue > OpeningHoursSpecification

A structured value providing information about the opening hours of a place or a certain service inside a place.

Usage: Between 10,000 and 50,000 domains
PropertyExpected TypeDescription
Properties from OpeningHoursSpecification
closes Time The closing hour of the place or service on the given day(s) of the week.
dayOfWeek DayOfWeek The day of the week for which these opening hours are valid.
opens Time The opening hour of the place or service on the given day(s) of the week.
validFrom DateTime The date when the item becomes valid.
validThrough DateTime The end of the validity of offer, price specification, or opening hours data.
Properties from Thing
additionalType 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. In RDFa syntax, it is better to use the native RDFa syntax - the 'typeof' attribute - for multiple types. tools may have only weaker understanding of extra types, in particular those defined externally.
alternateName Text An alias for the item.
description Text A short description of the item.
image ImageObject  or
An image of the item. This can be a URL or a fully described ImageObject.
mainEntityOfPage URL  or
Indicates a page (or other CreativeWork) for which this thing is the main entity being described.

Many (but not all) pages have a fairly clear primary topic, some entity or thing that the page describes. For example a restaurant's home page might be primarily about that Restaurant, or an event listing page might represent a single event. The mainEntity and mainEntityOfPage properties allow you to explicitly express the relationship between the page and the primary entity.

Related properties include sameAs, about, and url.

The sameAs and url properties are both similar to mainEntityOfPage. The url property should be reserved to refer to more official or authoritative web pages, such as the item’s official website. The sameAs property also relates a thing to a page that indirectly identifies it. Whereas sameAs emphasises well known pages, the mainEntityOfPage property serves more to clarify which of several entities is the main one for that page.

mainEntityOfPage can be used for any page, including those not recognized as authoritative for that entity. For example, for a product, sameAs might refer to a page on the manufacturer’s official site with specs for the product, while mainEntityOfPage might be used on pages within various retailers’ sites giving details for the same product.

about is similar to mainEntity, with two key differences. First, about can refer to multiple entities/topics, while mainEntity should be used for only the primary one. Second, some pages have a primary entity that itself describes some other entity. For example, one web page may display a news article about a particular person. Another page may display a product review for a particular product. In these cases, mainEntity for the pages should refer to the news article or review, respectively, while about would more properly refer to the person or product.
Inverse property: mainEntity.
name Text The name of the item.
potentialAction Action Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role.
sameAs URL URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website.
url URL URL of the item.

Instances of OpeningHoursSpecification may appear as values for the following properties
PropertyOn TypesDescription
hoursAvailable ContactPoint The hours during which this contact point is available.
openingHoursSpecification Place The opening hours of a certain place.


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


  <h1>Middle of Nowhere Foods</h1>
  <h2>Opening hours</h2>
  <p>Normally open daily 9am-2pm except on:</p>
      <span>24 December 2013</span> and
      <span>25 December 2013</span>:
      <span>1st January 2014</span>:
<div itemscope itemtype="">
  <h1 itemprop="name">Middle of Nowhere Foods</h1>
  <h2>Opening hours</h2>
    <p>Normally open <time itemprop="openingHours" datetime="Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00">daily 9am-2pm</time> except on:</p>
    <li itemprop="openingHoursSpecification" itemscope itemtype="">
      <span itemprop="validFrom" content="2013-12-24">24 December 2013</span> and
      <span itemprop="validThrough" content="2013-12-25">25 December 2013</span>:
      <span itemprop="opens" content="09:00">9am</span>-<span itemprop="closes" content="11:00">11am</span></li>
    <li itemprop="openingHoursSpecification" itemscope itemtype="">
      <span itemprop="validFrom" content="2014-01-01">1st January 2014</span>
      <span itemprop="validThrough" content="2014-01-01"></span>:
      <span itemprop="opens" content="12:00">Noon</span>-<span itemprop="closes" content="14:00">2pm</span></li>
<div vocab="" typeof="Store">
  <h1 property="name">Middle of Nowhere Foods</h1>
  <h2>Opening hours</h2>
  <p>Normally open <time property="openingHours" datetime="Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00">daily 9am-2pm</time> except on:</p>
    <li property="openingHoursSpecification"  typeof="OpeningHoursSpecification">
      <span property="validFrom" content="2013-12-24">24 December 2013</span> and
      <span property="validThrough" content="2013-12-25">25 December 2013</span>:
      <span property="opens" content="09:00">9am</span>-<span property="closes" content="11:00">11am</span>
    <li property="openingHoursSpecification"  typeof="OpeningHoursSpecification">
      <span property="validFrom" content="2014-01-01">1st January 2014</span>
      <span property="validThrough" content="2014-01-01"></span>:
      <span property="opens" content="12:00">Noon</span>-<span property="closes" content="14:00">2pm</span>
<script type="application/ld+json">
  "@context": "",
  "@type": "Store",
  "name": "Middle of Nowhere Foods",
  "openingHours": "Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00",
    "@type": "OpeningHoursSpecification",
    "validFrom": "2013-12-24",
    "validThrough": "2013-12-25",
    "opens": "12:00",
    "closes": "14:00"

Schema Version 2.0