Using Microdata with schema.org/OpeningHoursSpecification

I look at the http://schema.org/OpeningHoursSpecification microdata diagram for places (and more). I am a bit confused about the value that will be used for DayOfWeek .

Both classes (OpeningHoursSpecification and DayOfWeek) are derived from the GoodRelations e-commerce dictionary, and I'm not sure about this dictionary.

Please can you post a complete example?

+6
microdata
source share
1 answer

Enumerations (a list of predefined values) of the GoodRelations model remain in the GoodRelations namespace, i.e. for mondays use

http://purl.org/goodrelations/v1#Monday 

Here is a complete example:

 <div itemscope itemtype="http://schema.org/Place" itemid="#store"> <span itemprop="name">Hepp Happy Burger Restaurant</span> <div itemprop="openingHoursSpecification" itemscope itemtype="http://schema.org/OpeningHoursSpecification"> Opening hours: Mo-Fri, <link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Monday" /> <link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Tuesday" /> <link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Wednesday" /> <link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Thursday" /> <link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Friday" /> <meta itemprop="opens" content="08:00:00">8:00 am - <meta itemprop="closes" content="20:00:00">8:00 pm </div> </div> 

Hope this helps!

+10
source share

All Articles