WebSchemas/EBUGenreEnumeration

From W3C Wiki
Jump to: navigation, search

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" 
 5          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?">
 6     <meta itemprop="duration" content="PT1M5S">
 7       <span itemprop="author" itemscope itemtype="http://schema.org/Person">
 8         <link itemprop="url" href="http://www.youtube.com/user/BBCWorldwide">
 9       </span>
10     <link itemprop="thumbnailUrl" href="http://i4.ytimg.com/vi/oB-q_v_gGvY/hqdefault.jpg">
11     <span itemprop="thumbnail" itemscope itemtype="http://schema.org/ImageObject">
12       <link itemprop="url" href="http://i4.ytimg.com/vi/oB-q_v_gGvY/mqdefault.jpg">
13       <meta itemprop="width" content="320">
14       <meta itemprop="height" content="180">
15     </span>
16       <link itemprop="embedURL" href="http://www.youtube.com/v/oB-q_v_gGvY?version=3&amp;autohide=1">
17       <meta itemprop="playerType" content="Flash">
18       <meta itemprop="width" content="480">
19       <meta itemprop="height" content="360">
20 </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" 
 5           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?" />
 6     <meta itemprop="duration" content="PT1M5S" />
 7       <span itemprop="author" itemscope itemtype="http://schema.org/Person">
 8         <link itemprop="url" href="http://www.youtube.com/user/BBCWorldwide">
 9       </span>
10     <link itemprop="thumbnailUrl" href="http://i4.ytimg.com/vi/oB-q_v_gGvY/hqdefault.jpg">
11     <span itemprop="thumbnail" itemscope itemtype="http://schema.org/ImageObject">
12       <link itemprop="url" href="http://i4.ytimg.com/vi/oB-q_v_gGvY/mqdefault.jpg">
13       <meta itemprop="width" content="320" />
14       <meta itemprop="height" content="180" />
15     </span>
16       <link itemprop="embedURL" href="http://www.youtube.com/v/oB-q_v_gGvY?version=3&amp;autohide=1">
17       <meta itemprop="playerType" content="Flash" />
18       <meta itemprop="width" content="480" />
19       <meta itemprop="height" content="360" />
20       <meta itemprop="genre" href="http://www.ebu.ch/metadata/cs/web/ebu_ContentGenreCS_Mapping_p.xml.html#3.2.3.12"/>
21 </div>

The EBU site has a variety of other schemes, for example there is a collection of parental guidance codes. These could be represented also as 'genre' values (for example TV Anytime does this).