Microdata format for showing an event with multiple date/time

Dan

With Microdata, what is the best way to represent an event page with multiple date/time booking options? There will be occasions when the event page only has one booking option, i.e one set date/time, no alternative, does this require a different method?

<section>
  <h1>Tennis Lessons</h1>
  <ol>
    <li>Book Tickets for
      <time datetime="2001-05-15 19:00">May 15</time>
    </li>
    <li>Book Tickets for
      <time datetime="2001-05-16 19:00">May 16</time>
    </li>
    <li>Book Tickets for
      <time datetime="2001-05-17 19:00">May 17</time>
    </li>
  </ol>
</section>

Or is this the wrong way to approach it and the events are children of a product?

<section itemscope itemtype="http://schema.org/Product">
  <h1 itemprop="name">Tennis Lessons</h1>
  <ol>
    <li itemscope itemtype="http://schema.org/Event">Book Tickets for
      <time datetime="2001-05-15 19:00">May 15</time>
    </li>
    <li itemscope itemtype="http://schema.org/Event">Book Tickets for
      <time datetime="2001-05-16 19:00">May 16</time>
    </li>
    <li itemscope itemtype="http://schema.org/Event">Book Tickets for
      <time datetime="2001-05-17 19:00">May 17</time>
    </li>
  </ol>
</section>

In this case, on a booking confirmation page, it would then be correct to wrap the whole section in event Microdata as it then only has one possible date/time option?

unor

Schema.org defines that an Event happens "at a certain time". So each lesson should be represented by its own Event item.

If you can book a lesson on your page, you may want to use the offers property and provide an Offer for each Event.

The nesting in your second snippet (Event items inside the Product item) has no influence on the Microdata (example). You have to use a property (within the itemprop attribute) if you want to connect Microdata items.
While you could use Product to represent the fact that you provide the service of tennis lessons, it seems that the Product type is missing a suitable property to reference an Event item. The typical solution would be to use both types, but Microdata is rather limited in that regard (it works better with RDFa).

If you want to provide data that is the same for all events, you could make use of the itemref attribute (instead of repeating it for each event).

So a basic structure could be this:

<section>
  <h1>Tennis Lessons</h1>
  <p itemprop="description" id="event-desc">…</p>
  <ol>
    <li itemscope itemtype="http://schema.org/Event" itemref="event-desc">
      <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
      </div>
    </li>
    <li itemscope itemtype="http://schema.org/Event" itemref="event-desc">
      <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
      </div>
    </li>
  </ol>
</section>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

DateTime format not showing correctly

From Dev

Need help adding Microdata to an event

From Dev

Need help adding Microdata to an event

From Dev

Multiple and repeated phone numbers in Microdata

From Dev

Microdata markup with properties on multiple pages

From Dev

Multiple and repeated phone numbers in Microdata

From Dev

How to add an image to an event with Microdata meta tag?

From Dev

extending html5 microdata event schema

From Dev

Microdata (schema.org) - Event - empty startDate

From Dev

Changing DateTime format in multiple CSV files

From Dev

Multiple language datetime text to standard date format

From Dev

Datetime.Now.Millisecond not showing full time format

From Dev

Format DateTime Diff to prevent showing 0 years 0 months in PHP

From Dev

Python: Changing multiple dates format in string to datetime format

From Dev

HTML Microdata for multiple organization telephone numbers

From Dev

Microdata itemref - multiple references to the same item

From Dev

C# - Format event log query with multiple arguments

From Dev

Multiple occurences of same itemprop in Microdata schema.org

From Dev

Splitting schema.org Microdata over multiple divs or elements

From Dev

Multiple occurences of same itemprop in Microdata schema.org

From Dev

Event not showing in Fullcalendar

From Dev

Kendo Scheduler - Event not showing

From Dev

SQL Custom datetime format to datetime

From Dev

Convert datetime to another datetime format

From Dev

SQL Custom datetime format to datetime

From Dev

Format Datetime Object of type Datetime

From Dev

Convert format of datetime to another format of datetime

From Dev

Hour is not showing in 00 format

From Dev

Javascript datetime format in database format

Related Related

HotTag

Archive