From W3C Wiki
< WebSchemas
Revision as of 11:12, 5 September 2013 by Danbri (Talk | contribs)

Jump to: navigation, search

Temporally Scoped Markup

This is a brief proposal (initially from Dan Brickley) to explore some ideas around temporally scoped markup for structured data.


  • build upon RDF's triple model, but supply temporal context during which certain claims hold
  • show at least one concrete HTML syntax
  • show example of RDF quads that might be emitted by a parser

This specific example uses Microdata in HTML. It exploits and recycles the otherwise barely-needed 'itemscope' construct from Microdata. The Microdata spec does not define any values for the 'itemscope' attribute. Here we simply say that 'itemscope' can sometimes take strings that indicate a temporal scope. Similar conventions for RDFa could be developed.

<div itemscope itemtype="http://schema.org/Movie">
<h1 itemprop="name">Pirates of the Carribean: On Stranger Tides (2011)</h1>
<span itemprop="description">Jack Sparrow and Barbossa embark on a quest to
 find the elusive fountain of youth, only to discover that Blackbeard and
 his daughter are after it too.</span>
 <div itemprop="director" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Rob Marshall</span>
 <div itemprop="author" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Ted Elliott</span>
<div itemprop="author" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Terry Rossio</span>
 <div itemprop="actor" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Johnny Depp</span>,
<div itemprop="actor" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Penelope Cruz</span>,
<div itemprop="actor" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Ian McShane</span>
<div itemprop="aggregateRating" itemscope="2011-01/2011-12" itemtype="http://schema.org/AggregateRating">
  <span itemprop="ratingValue">8</span>/<span itemprop="bestRating">10</span> stars from
  <span itemprop="ratingCount">200</span> users.
  Reviews: <span itemprop="reviewCount">50</span>.