W3C home > Mailing lists > Public > public-vocabs@w3.org > December 2011

Re: OpeningHours definition

From: ninsky80 <ninsky80@googlemail.com>
Date: Sat, 31 Dec 2011 12:44:39 +0100
Message-ID: <4EFEF5A7.20301@googlemail.com>
To: public-vocabs@w3.org
Hi Martin,

thanks for your post. When possible, I want to use the evolving 
"standard" of schema.org. I know that schema.org is extensible, but I 
see now advantage to use an alternative markup solution in this case 
when there's already a definition for openingHours. I think the 
schema.org standard it's more likely to be recognized by search engines 
than other markup solutions. Do you have any examples where 
GoodRelations data is already displayed on Google search results?

Thanks

On 12/31/2011 01:33 AM, Martin Hepp wrote:
> Hi,
>
> what you can also do is attach a more granular opening hours pattern from GoodRelations to a schema.org node:
>
> <div itemscope itemtype="http://schema.org/Place" itemid="#store">
>    <link itemprop="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
>          href="http://purl.org/goodrelations/v1#Location" />
>    <span itemprop="name">Hepp's Happy Burger Restaurant</span>
>    <div itemprop="http://purl.org/goodrelations/v1#hasOpeningHoursSpecification" itemscope
>         itemtype="http://purl.org/goodrelations/v1#OpeningHoursSpecification">
> Opening hours: Mo-Fri,
>       <link itemprop="hasOpeningHoursDayOfWeek"
>             href="http://purl.org/goodrelations/v1#Monday" />
>       <link itemprop="hasOpeningHoursDayOfWeek"
>             href="http://purl.org/goodrelations/v1#Tuesday" />
>       <link itemprop="hasOpeningHoursDayOfWeek"
>             href="http://purl.org/goodrelations/v1#Wednesday" />
>       <link itemprop="hasOpeningHoursDayOfWeek"
>             href="http://purl.org/goodrelations/v1#Thursday" />
>       <link itemprop="hasOpeningHoursDayOfWeek"
>             href="http://purl.org/goodrelations/v1#Friday" />
>       <meta itemprop="opens" content="08:00:00">8:00 a.m. -
>       <meta itemprop="closes" content="20:00:00">8:00 p.m.
>    </div>
> </div>
>
> See
>
> http://www.heppnetz.de/ontologies/goodrelations/v1.html#OpeningHoursSpecification
>
> Best
>
> Martin
>
> On Dec 28, 2011, at 9:23 AM, ninsky80 wrote:
>
>> Hi,
>>
>> I'm trying to create a schema.org definition for openinghours, which validates in rich snippets testing tool.
>> With this markup I want to say that on mondays a shop is open from 11:00-22:00.
>>
>> <time datetime="Mo 11:00-22:00" itemprop="openingHours">11:00-22:00</time>
>>
>> The rich snippets testing tool says: Warning: openinghours refers to a datetime format that is not ISO 8601.
>>
>>
>> Schema.org says:
>>
>> The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a           hyphen '-'.
>>
>> Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
>>
>> Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
>>
>> Here is an example:<time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>
>>
>> Thanks in advance
>> The same post is listed here:
>> http://stackoverflow.com/questions/8152854/schema-org-openinghours
>>
Received on Saturday, 31 December 2011 11:45:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 06:48:58 GMT