operating-hours: Difference between revisions
ScottReynen (talk | contribs) (Moving "xHours" to more descriptive page name) |
(reformat/ rework page) |
||
Line 1: | Line 1: | ||
<h1>Operating Hours</h1> | <h1>Operating Hours</h1> | ||
This page documents an effort to | This page documents an effort to determine a simple, open, and semantic format for marking up the operating hours of stores, restaurants, museums, offices, and other estabishments that have set hours and are open on a regular basis. This is based on the [[hCalendar]] microformat. | ||
__TOC__ | |||
== Discussion participants == | |||
=== Editor === | |||
== | * [http://dragotown.com Nick Drago] | ||
=== | === Authors === | ||
* [http://dragotown.com Nick Drago] | * [http://dragotown.com Nick Drago] | ||
=== | === Contributors === | ||
* [http://suda.co.uk Brian Suda] | |||
* Add your name if you feel you have made significant additions to the page. | |||
== Introduction == | == Introduction == | ||
This effort came about as a result of | This effort came about as a result of the need for a human and machine readable markup format that can be used to define the operating hours of establishments. | ||
Stores, businesses, etc. often provide their operating hours on their websites. With the addition of a small bit of markup, they would be able to discuss their operating hours on their websites in such a way that spiders and other aggregators can retrieve such hours, automatically convert them to the iCalendar format, and use this data in any iCalendar application or service. | Stores, businesses, etc. often provide their operating hours on their websites. With the addition of a small bit of markup, they would be able to discuss their operating hours on their websites in such a way that spiders and other aggregators can retrieve such hours, automatically convert them to the iCalendar format, and use this data in any iCalendar application or service. | ||
This document proposes the introduction of a format which is a close subset of the [[hCalendar]] microformat, and thus the iCalendar standard, in semantic XHTML. Organizations and businesses can both embed their operating hours directly in their web pages and style them with CSS to make them appear as desired. In addition, this format would enable applications to retrieve such data directly from web pages without having to reference a separate file. | This document proposes the introduction of a format which is a close subset of the [[hCalendar]] microformat, and thus the iCalendar standard, in semantic XHTML. Organizations and businesses can both embed their operating hours directly in their web pages and style them with CSS to make them appear as desired. In addition, this format would enable applications to retrieve such data directly from web pages without having to reference a separate file. | ||
== Brainstorming == | == Brainstorming == | ||
Line 45: | Line 33: | ||
** Close time | ** Close time | ||
== Using RRULE in hCalendar == | |||
''This section needs revision.'' | |||
<pre> | <pre> | ||
<h1>Pardon the Interruption</h1> | |||
</ | <p class="vevent"> | ||
<a class="url uid summary" | |||
href="http://sports.espn.go.com/...">Pardon the Interruption</a> | |||
is a <span class="category">TV</span> <span | |||
class="category">sports</span> show. | |||
<abbr class="dtstart" title="2001-10-22">It airs</abbr> | |||
<span class="rrule"> | |||
<span class="freq">weekly</span> | |||
<abbr class="byday" title="mo,tu,we,th,fr">Monday to | |||
Friday</abbr> at <abbr class="byhour" title="5">5:30pm</abbr> | |||
</span> | |||
<!-- timezones should be avoided --> | |||
< | <abbr class="tzid" title="US-Eastern">ET</abbr> on ESPN. | ||
</ | |||
The hosts of the show are longtime friends | |||
<span class="hcard"> | |||
< | <span class="fn n"> | ||
< | <span class="given-name">Tony</span> | ||
<span class="family-name">Kornheiser</span> | |||
</span> | |||
</span> | |||
and ... (hCard for Michael Wilbon not shown) | |||
<span class="description">They discuss - and frequently argue over | |||
- the top stories of the | |||
and | day in "sports... and other stuff".</span> | ||
</p> | |||
</ | |||
</pre> | </pre> | ||
== References == | == References == | ||
Line 98: | Line 76: | ||
=== Informative References === | === Informative References === | ||
* [http://en.wikipedia.org/wiki/ISO_8601 Wikipedia article on ISO 8601] | * [http://en.wikipedia.org/wiki/ISO_8601 Wikipedia article on ISO 8601] | ||
* [http://www.xfront.com/microformats/hCalendar_part2.html Tutorial on recurring events in hCalendar] | |||
=== Related pages === | |||
* [[operating-hours-examples]] |
Revision as of 23:51, 4 February 2007
Operating Hours
This page documents an effort to determine a simple, open, and semantic format for marking up the operating hours of stores, restaurants, museums, offices, and other estabishments that have set hours and are open on a regular basis. This is based on the hCalendar microformat.
Discussion participants
Editor
Authors
Contributors
- Brian Suda
- Add your name if you feel you have made significant additions to the page.
Introduction
This effort came about as a result of the need for a human and machine readable markup format that can be used to define the operating hours of establishments.
Stores, businesses, etc. often provide their operating hours on their websites. With the addition of a small bit of markup, they would be able to discuss their operating hours on their websites in such a way that spiders and other aggregators can retrieve such hours, automatically convert them to the iCalendar format, and use this data in any iCalendar application or service.
This document proposes the introduction of a format which is a close subset of the hCalendar microformat, and thus the iCalendar standard, in semantic XHTML. Organizations and businesses can both embed their operating hours directly in their web pages and style them with CSS to make them appear as desired. In addition, this format would enable applications to retrieve such data directly from web pages without having to reference a separate file.
Brainstorming
There are several main components to this listing:
- Location
- The establishment name
- The establishment address
- Hours
- Day of week
- Open time
- Close time
Using RRULE in hCalendar
This section needs revision.
<h1>Pardon the Interruption</h1> <p class="vevent"> <a class="url uid summary" href="http://sports.espn.go.com/...">Pardon the Interruption</a> is a <span class="category">TV</span> <span class="category">sports</span> show. <abbr class="dtstart" title="2001-10-22">It airs</abbr> <span class="rrule"> <span class="freq">weekly</span> <abbr class="byday" title="mo,tu,we,th,fr">Monday to Friday</abbr> at <abbr class="byhour" title="5">5:30pm</abbr> </span> <!-- timezones should be avoided --> <abbr class="tzid" title="US-Eastern">ET</abbr> on ESPN. The hosts of the show are longtime friends <span class="hcard"> <span class="fn n"> <span class="given-name">Tony</span> <span class="family-name">Kornheiser</span> </span> </span> and ... (hCard for Michael Wilbon not shown) <span class="description">They discuss - and frequently argue over - the top stories of the day in "sports... and other stuff".</span> </p>