Update examples.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Wed, 16 Nov 2011 17:09:59 -0800
changeset 25 7011f477b9a9
parent 24 77ea431ec4ab
child 26 18305e6c52e5
Update examples.
microdata-rdf/index.html
--- a/microdata-rdf/index.html	Wed Nov 16 15:23:06 2011 -0800
+++ b/microdata-rdf/index.html	Wed Nov 16 17:09:59 2011 -0800
@@ -1338,10 +1338,7 @@
 <works/45U8QJGZSQKDH8N> a frbr:Work ;
   dc:creator "Wil Wheaton"@en ;
   dc:title "Just a Geek"@en ;
-  frbr:realization (
-    <products/9780596007683.BOOK>
-    <products/9780596802189.EBOOK>
-  ) .
+  frbr:realization <products/9780596007683.BOOK>, <products/9780596802189.EBOOK> .
 
 <products/9780596007683.BOOK> a frbr:Expression ;
   dc:type <product-types/BOOK> .
@@ -1376,7 +1373,7 @@
 </pre>
 
 <p>Assuming that <tref>registry</tref> contains a an entry for <code>http://microformats.org/profile/hcard</code>
-  with <tref><code>propertyURI</code></tref> set to <code>type</code>,
+  with <tref><code>propertyURI</code></tref> set to <code>vocabulary</code>,
   it generates these triples expressed in Turtle:</p>
 
 <pre class="example" data-transform="updateExample">
@@ -1400,6 +1397,61 @@
 -->
 </pre>
 
+<p>The following snippet of HTML has microdata for a playlist, and illustrates overriding a property
+  to place elements in an RDF Collection:</p>
+<pre class="example" data-transform="updateExample">
+<!--
+<div itemscope itemtype="http://schema.org/MusicPlaylist">
+  <span itemprop="name">Classic Rock Playlist</span>
+  <meta itemprop="numTracks" content="2"/>
+  <p>Including works by
+    <span itemprop="byArtist">Lynard Skynard</span> and
+    <span itemprop="byArtist">AC/DC</span></p>.
+
+  <div itemprop="tracks" itemscope itemtype="http://schema.org/MusicRecording">
+    1.<span itemprop="name">Sweet Home Alabama</span> -
+    <span itemprop="byArtist">Lynard Skynard</span>
+    <link href="sweet-home-alabama" itemprop="url" />
+   </div>
+
+  <div itemprop="tracks" itemscope itemtype="http://schema.org/MusicRecording">
+    2.<span itemprop="name">Shook you all Night Long</span> -
+    <span itemprop="byArtist">AC/DC</span>
+    <link href="shook-you-all-night-long" itemprop="url" />
+  </div>
+</div>
+-->
+</pre>
+
+<p>Assuming that <tref>registry</tref> contains a an entry for <code>http://schema.org/</code>
+  with <tref><code>propertyURI</code></tref> set to <code>vocabulary</code>,
+  <tref><code>multipleValues</code></tref> set to <code>unordered</code> with the property
+  <code>track</code> having <tref><code>multipleValues</code></tref> set to <code>list</code>,
+  it generates these triples expressed in Turtle:</p>
+
+<pre class="example" data-transform="updateExample">
+<!--
+@prefix md: <http://www.w3.org/1999/xhtml/microdata#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix schema: <http://schema.org/> .
+
+<> md:item [ a schema:MusicPlaylist;
+  schema:name "Classic Rock Playlist";
+  schema:byArtist "Lynard Skynard", "AC/DC";
+  schema:numTracks "2";
+  schema:tracks (
+    [ a schema:MusicRecording;
+      schema:byArtist "Lynard Skynard";
+      schema:name "Sweet Home Alabama";
+      schema:url <sweet-home-alabama>]
+    [ a schema:MusicRecording;
+      schema:byArtist "AC/DC";
+      schema:name "Shook you all Night Long";
+      schema:url <shook-you-all-night-long>]
+  )] .
+-->
+</pre>
+
 </section>
 
 <section class="appendix informative">