Difference between revisions of "WebSchemas/EBUGenreEnumeration"

From W3C Wiki
Jump to: navigation, search
(work in progress)
 
(2nd example)
Line 1: Line 1:
 
 
Notes from Jean-Pierre Evain (EBU) and Dan Brickley.
 
Notes from Jean-Pierre Evain (EBU) and Dan Brickley.
  
Line 30: Line 29:
 
       <meta itemprop="width" content="480">
 
       <meta itemprop="width" content="480">
 
       <meta itemprop="height" content="360">
 
       <meta itemprop="height" content="360">
 +
</div>
 +
</syntaxhighlight>
 +
 +
All YouTube videos already have this. What might we improve? For XML people, we might close the meta element, but forget that for now.
 +
 +
We can add a link to http://www.ebu.ch/metadata/cs/web/ebu_ContentGenreCS_Mapping_p.xml.html#3.2.3.12 which expressed the idea of the EBU genre code, '3.2.3.12' (Soccer). '''Note:''' a future version of the EBU page might better support these IDs (name= etc), and could include embedded RDF/SKOS. Meanwhile, there is a separate SKOS RDF/XML version of the data, see http://www.ebu.ch/metadata/ontologies/skos/ebu_ContentGenreCS.rdf
 +
 +
 +
Here we have closed the meta tags, and added a final genre. Note that the link is human-invisible; however as we are pointing to a human-readable page, it could've used a/href instead.
 +
 +
<syntaxhighlight lang="html4strict" line start="1"  highlight="19">
 +
<div id="watch-container" itemscope itemtype="http://schema.org/VideoObject">
 +
      <link itemprop="url" href="http://www.youtube.com/watch?v=oB-q_v_gGvY">
 +
    <meta itemprop="name" content="Diego Maradona discusses &#39;Hand of God&#39; World Cup goal - BBC" />
 +
    <meta itemprop="description" content="Hear the events of the famous allowed hand goal from Maradona&#39;s perspective. Was it deliberate, or was it just a lucky touch?" />
 +
    <meta itemprop="duration" content="PT1M5S" />
 +
      <span itemprop="author" itemscope itemtype="http://schema.org/Person">
 +
        <link itemprop="url" href="http://www.youtube.com/user/BBCWorldwide">
 +
      </span>
 +
    <link itemprop="thumbnailUrl" href="http://i4.ytimg.com/vi/oB-q_v_gGvY/hqdefault.jpg">
 +
    <span itemprop="thumbnail" itemscope itemtype="http://schema.org/ImageObject">
 +
      <link itemprop="url" href="http://i4.ytimg.com/vi/oB-q_v_gGvY/mqdefault.jpg">
 +
      <meta itemprop="width" content="320" />
 +
      <meta itemprop="height" content="180" />
 +
    </span>
 +
      <link itemprop="embedURL" href="http://www.youtube.com/v/oB-q_v_gGvY?version=3&amp;autohide=1">
 +
      <meta itemprop="playerType" content="Flash" />
 +
      <meta itemprop="width" content="480" />
 +
      <meta itemprop="height" content="360" />
 +
      <meta itemprop="genre" href="http://www.ebu.ch/metadata/cs/web/ebu_ContentGenreCS_Mapping_p.xml.html#3.2.3.12"/>
 
</div>
 
</div>
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 21:21, 4 June 2012

Notes from Jean-Pierre Evain (EBU) and Dan Brickley.

We are taking a basic schema.org description in microdata and using EBU vocabulary as an 'external enumeration'.

Example is to take genre, "Football (Soccer)" from http://www.ebu.ch/metadata/cs/web/ebu_ContentGenreCS_Mapping_p.xml.html

We will use a video from BBCWorldwide from YouTube: http://www.youtube.com/watch?v=oB-q_v_gGvY

First we take the existing embedded basic microdata, cleaned up a bit.

  1. <div id="watch-container" itemscope itemtype="http://schema.org/VideoObject">
  2.       <link itemprop="url" href="http://www.youtube.com/watch?v=oB-q_v_gGvY">
  3.     <meta itemprop="name" content="Diego Maradona discusses &#39;Hand of God&#39; World Cup goal - BBC">
  4.     <meta itemprop="description" content="Hear the events of the famous allowed hand goal from Maradona&#39;s perspective. Was it deliberate, or was it just a lucky touch?">
  5.     <meta itemprop="duration" content="PT1M5S">
  6.       <span itemprop="author" itemscope itemtype="http://schema.org/Person">
  7.         <link itemprop="url" href="http://www.youtube.com/user/BBCWorldwide">
  8.       </span>
  9.     <link itemprop="thumbnailUrl" href="http://i4.ytimg.com/vi/oB-q_v_gGvY/hqdefault.jpg">
  10.     <span itemprop="thumbnail" itemscope itemtype="http://schema.org/ImageObject">
  11.       <link itemprop="url" href="http://i4.ytimg.com/vi/oB-q_v_gGvY/mqdefault.jpg">
  12.       <meta itemprop="width" content="320">
  13.       <meta itemprop="height" content="180">
  14.     </span>
  15.       <link itemprop="embedURL" href="http://www.youtube.com/v/oB-q_v_gGvY?version=3&amp;autohide=1">
  16.       <meta itemprop="playerType" content="Flash">
  17.       <meta itemprop="width" content="480">
  18.       <meta itemprop="height" content="360">
  19. </div>

All YouTube videos already have this. What might we improve? For XML people, we might close the meta element, but forget that for now.

We can add a link to http://www.ebu.ch/metadata/cs/web/ebu_ContentGenreCS_Mapping_p.xml.html#3.2.3.12 which expressed the idea of the EBU genre code, '3.2.3.12' (Soccer). Note: a future version of the EBU page might better support these IDs (name= etc), and could include embedded RDF/SKOS. Meanwhile, there is a separate SKOS RDF/XML version of the data, see http://www.ebu.ch/metadata/ontologies/skos/ebu_ContentGenreCS.rdf


Here we have closed the meta tags, and added a final genre. Note that the link is human-invisible; however as we are pointing to a human-readable page, it could've used a/href instead.

  1. <div id="watch-container" itemscope itemtype="http://schema.org/VideoObject">
  2.       <link itemprop="url" href="http://www.youtube.com/watch?v=oB-q_v_gGvY">
  3.     <meta itemprop="name" content="Diego Maradona discusses &#39;Hand of God&#39; World Cup goal - BBC" />
  4.     <meta itemprop="description" content="Hear the events of the famous allowed hand goal from Maradona&#39;s perspective. Was it deliberate, or was it just a lucky touch?" />
  5.     <meta itemprop="duration" content="PT1M5S" />
  6.       <span itemprop="author" itemscope itemtype="http://schema.org/Person">
  7.         <link itemprop="url" href="http://www.youtube.com/user/BBCWorldwide">
  8.       </span>
  9.     <link itemprop="thumbnailUrl" href="http://i4.ytimg.com/vi/oB-q_v_gGvY/hqdefault.jpg">
  10.     <span itemprop="thumbnail" itemscope itemtype="http://schema.org/ImageObject">
  11.       <link itemprop="url" href="http://i4.ytimg.com/vi/oB-q_v_gGvY/mqdefault.jpg">
  12.       <meta itemprop="width" content="320" />
  13.       <meta itemprop="height" content="180" />
  14.     </span>
  15.       <link itemprop="embedURL" href="http://www.youtube.com/v/oB-q_v_gGvY?version=3&amp;autohide=1">
  16.       <meta itemprop="playerType" content="Flash" />
  17.       <meta itemprop="width" content="480" />
  18.       <meta itemprop="height" content="360" />
  19.       <meta itemprop="genre" href="http://www.ebu.ch/metadata/cs/web/ebu_ContentGenreCS_Mapping_p.xml.html#3.2.3.12"/>
  20. </div>