- From: Matthias Tylkowski <matthias@binarypark.org>
- Date: Tue, 28 May 2013 17:40:48 +0200
- To: public-vocabs@w3.org
- Message-ID: <51A4D000.4070003@binarypark.org>
Dear all,
Maybe the openingHours property in http://schema.org/LocalBusiness
should be removed. There are two reasons for that:
1. The goal of Schema.org is to create a structured vocabulary, while
the value describing openingHours is not structured, it is a text
content which has to be parsed.
2. The http://schema.org/Duration is an ISO8601 duration which is not a
time.
The GoodRelations allows wide solutions to markup opening hours in a
structured manner. Here are some examples from
http://getschema.org/index.php?title=OpeningHoursSpecification:
Example 1
The clinic of Dr. John Doe a physician
<http://getschema.org/index.php?title=Physician&action=edit&redlink=1>
in London is opened as below:
<div itemtype="http://schema.org/Physician" itemscope>
<div itemprop="name">Dr. John Doe Clinic</div>
<div itemprop="openingHoursSpecification">
<div itemtype="http://schema.org/OpeningHoursSpecification" itemscope>
<div itemprop="dayOfWeek">Monday</div>
<div>
<span>
<meta itemprop="opens" content="08:00:00">
08:00
</span>
<span>-</span>
<span>
<meta itemprop="closes" content="12:00:00">
12:00
</span>
</div>
<div>
<span>
<meta itemprop="opens" content="15:00:00">
15:00
</span>
<span>-</span>
<span>
<meta itemprop="closes" content="18:00:00">
18:00
</span>
</div>
</div>
<div itemtype="http://schema.org/OpeningHoursSpecification" itemscope>
<div itemprop="dayOfWeek">Thuesday</div>
<div>
<span>
<meta itemprop="opens" content="08:00:00">
08:00
</span>
<span>-</span>
<span>
<meta itemprop="closes" content="12:00:00">
12:00
</span>
</div>
</div>
<div itemtype="http://schema.org/OpeningHoursSpecification" itemscope>
<div itemprop="dayOfWeek">Wednesday</div>
<div>
<span>
<meta itemprop="opens" content="08:00:00">
08:00
</span>
<span>-</span>
<span>
<meta itemprop="closes" content="12:00:00">
12:00
</span>
</div>
</div>
<div itemtype="http://schema.org/OpeningHoursSpecification" itemscope>
<div itemprop="dayOfWeek">Thursday</div>
<div>
<span>
<meta itemprop="opens" content="08:00:00">
08:00
</span>
<span>-</span>
<span>
<meta itemprop="closes" content="12:00:00">
12:00
</span>
</div>
<div>
<span>
<meta itemprop="opens" content="15:00:00">
15:00
</span>
<span>-</span>
<span>
<meta itemprop="closes" content="18:00:00">
18:00
</span>
</div>
</div>
<div itemtype="http://schema.org/OpeningHoursSpecification" itemscope>
<div itemprop="dayOfWeek">Friday</div>
<div>
<span>
<meta itemprop="opens" content="08:00:00">
08:00
</span>
<span>-</span>
<span>
<meta itemprop="closes" content="12:00:00">
12:00
</span>
</div>
</div>
</div>
</div>
Example 2
The Roots restaurant
<http://getschema.org/index.php?title=Restaurant#Examples> in San
Francisco is opened daily from 11a.m. to 10p.m.
<div itemscope itemtype="http://schema.org/Restaurant">
<div itemprop="openingHoursSpecification">
Open daily from 11a.m. to 10p.m.
<meta itemprop="dayOfWeek" content="Monday Tuesday Wednesday Thursday Friday Saturday Sunday"/>
<meta itemprop="opens" content="19:00:00Z-08:00"/>
<meta itemprop="closes" content="06:00:00Z-08:00"/>
</div>
</div>
or
<div itemscope itemtype="http://schema.org/Restaurant">
<div itemprop="openingHoursSpecification">
Open daily from 11a.m. to 10p.m.
<meta itemprop="dayOfWeek" content="http://schema.org/DayOfWeek/Monday http://schema.org/DayOfWeek/Tuesday http://schema.org/DayOfWeek/Wednesday http://schema.org/DayOfWeek/Thursday http://schema.org/DayOfWeek/Friday http://schema.org/DayOfWeek/Saturday http://schema.org/DayOfWeek/Sunday "/>
<meta itemprop="opens" content="19:00:00Z-08:00"/>
<meta itemprop="closes" content="06:00:00Z-08:00"/>
</div>
</div>
Best regards
Matthias Tylkowski
CTO Binarypark
Am 28.05.2013 13:47, schrieb Web Schemas TF Issue Tracker:
> webschema-ISSUE-22 (openingHours x2): Schema.org has two ways to express opening hours [Feedback on Schema.org]
>
> http://www.w3.org/2011/webschema/track/issues/22
>
> Raised by: Dan Brickley
> On product: Feedback on Schema.org
>
> http://schema.org/CivicStructure has openingHours, whose value is said to be a Duration,
> "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>.
> - If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>."
>
> As part of the GoodRelations addition, there is also openingHoursSpecification which takes http://schema.org/OpeningHoursSpecification structures as a value.
>
> The differences should be explained, and perhaps converged.
>
>
>
>
>
Received on Tuesday, 28 May 2013 15:41:41 UTC