Update examples.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Fri, 18 Nov 2011 17:50:28 -0800
changeset 39 4df57f530c0e
parent 38 d2b7c65dd941
child 40 224e6c581ddb
Update examples.
microdata-rdf/index.html
--- a/microdata-rdf/index.html	Fri Nov 18 14:44:04 2011 -0800
+++ b/microdata-rdf/index.html	Fri Nov 18 17:50:28 2011 -0800
@@ -1287,25 +1287,25 @@
 <!--
 <dl itemscope
     itemtype="http://purl.org/vocab/frbr/core#Work"
-    itemid="http://purl.oreilly.com/works/45U8QJGZSQKDH8N"
+    itemid="http://books.example.com/works/45U8QJGZSQKDH8N"
     lang="en">
  <dt>Title</dt>
  <dd><cite itemprop="http://purl.org/dc/terms/title">Just a Geek</cite></dd>
  <dt>By</dt>
  <dd><span itemprop="http://purl.org/dc/terms/creator">Wil Wheaton</span></dd>
  <dt>Format</dt>
- <dd itemprop="realization"
+ <dd itemprop="http://purl.org/vocab/frbr/core#realization"
      itemscope
      itemtype="http://purl.org/vocab/frbr/core#Expression"
-     itemid="http://purl.oreilly.com/products/9780596007683.BOOK">
-  <link itemprop="http://purl.org/dc/terms/type" href="http://purl.oreilly.com/product-types/BOOK">
+     itemid="http://books.example.com/products/9780596007683.BOOK">
+  <link itemprop="http://purl.org/dc/terms/type" href="http://books.example.com/product-types/BOOK">
   Print
  </dd>
- <dd itemprop="realization"
+ <dd itemprop="http://purl.org/vocab/frbr/core#realization"
      itemscope
      itemtype="http://purl.org/vocab/frbr/core#Expression"
-     itemid="http://purl.oreilly.com/products/9780596802189.EBOOK">
-  <link itemprop="http://purl.org/dc/terms/type" href="http://purl.oreilly.com/product-types/EBOOK">
+     itemid="http://books.example.com/products/9780596802189.EBOOK">
+  <link itemprop="http://purl.org/dc/terms/type" href="http://books.example.com/product-types/EBOOK">
   Ebook
  </dd>
 </dl>
@@ -1317,23 +1317,23 @@
   this is equivalent to the following Turtle:</p>
 <pre class="example" data-transform="updateExample">
 <!--
-@base <http://books.example.com/> .
 @prefix dc: <http://purl.org/dc/terms/> .
 @prefix md: <http://www.w3.org/ns/md#> .
 @prefix frbr: <http://purl.org/vocab/frbr/core#> .
 
-<> md:item (<works/45U8QJGZSQKDH8N>) .
+<> md:item (<http://books.example.com/works/45U8QJGZSQKDH8N>) .
 
-<works/45U8QJGZSQKDH8N> a frbr:Work ;
+<http://books.example.com/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 <http://books.example.com/products/9780596007683.BOOK>,
+    <http://books.example.com/products/9780596802189.EBOOK> .
 
-<products/9780596007683.BOOK> a frbr:Expression ;
-  dc:type <product-types/BOOK> .
+<http://books.example.com/products/9780596007683.BOOK> a frbr:Expression ;
+  dc:type <http://books.example.com/product-types/BOOK> .
 
-<products/9780596802189.EBOOK> a frbr:Expression ;
-  dc:type <product-types/EBOOK> .
+<http://books.example.com/products/9780596802189.EBOOK> a frbr:Expression ;
+  dc:type <http://books.example.com/product-types/EBOOK> .
 -->
 </pre>
 
@@ -1344,19 +1344,19 @@
 <!--
 <p>
  Both
- <span itemscope itemtype="http://microformats.org/profile/hcard" itemref="home">
+ <span itemscope="" itemtype="http://microformats.org/profile/hcard" itemref="home">
    <span itemprop="fn"
-       ><span itemprop="n" itemscope
+       ><span itemprop="n" itemscope=""
        ><span itemprop="given-name">Princeton</span></span></span>
   </span>
  and
- <span itemscope itemtype="http://microformats.org/profile/hcard" itemref="home">
+ <span itemscope="" itemtype="http://microformats.org/profile/hcard" itemref="home">
    <span itemprop="fn"
-     ><span itemprop="n" itemscope
+     ><span itemprop="n" itemscope=""
        ><span itemprop="given-name">Trekkie</span></span></span>
   </span>
  live at
- <span id="home" itemprop="adr" itemscope>
+ <span id="home" itemprop="adr" itemscope="">
    <span itemprop="street-address">Avenue Q</span>.
  </span>
 </p>
@@ -1370,19 +1370,19 @@
 <pre class="example" data-transform="updateExample">
 <!--
 @prefix md: <http://www.w3.org/ns/md#> .
-@prefix hcard: <http://microformats.org/profile/hcard> .
+@prefix hcard: <http://microformats.org/profile/hcard#> .
 
-<> md:item
-  [ a hcard:;
+<> md:item (
+  [ a <http://microformats.org/profile/hcard>;
     hcard:fn "Princeton";
     hcard:n [ hcard:given-name "Princeton" ];
     hcard:adr _:a
-  ],
-  [ a hcard:;
+  ]
+  [ a <http://microformats.org/profile/hcard>;
     hcard:fn "Trekkie";
     hcard:n [ hcard:given-name "Trekkie" ];
     hcard:adr _:a
-  ] .
+  ]) .
 
 _:a hcard:street-address "Avenue Q" .
 -->
@@ -1392,20 +1392,20 @@
   to place elements in an RDF Collection:</p>
 <pre class="example" data-transform="updateExample">
 <!--
-<div itemscope itemtype="http://schema.org/MusicPlaylist">
+<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">
+  <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">
+  <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" />
@@ -1416,30 +1416,30 @@
 
 <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>,
+  <tref><code>multipleValues</code></tref> set to <code>unordered</code> with the properties
+  <code>track</code> and <code>byArtist</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 md: <http://www.w3.org/ns/md#> .
 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
 @prefix schema: <http://schema.org/> .
 
-<> md:item [ a schema:MusicPlaylist;
+<> md:item ([ a schema:MusicPlaylist;
   schema:name "Classic Rock Playlist";
-  schema:byArtist "Lynard Skynard", "AC/DC";
+  schema:byArtist ("Lynard Skynard" "AC/DC");
   schema:numTracks "2";
   schema:tracks (
     [ a schema:MusicRecording;
-      schema:byArtist "Lynard Skynard";
+      schema:byArtist ("Lynard Skynard");;
       schema:name "Sweet Home Alabama";
       schema:url <sweet-home-alabama>]
     [ a schema:MusicRecording;
-      schema:byArtist "AC/DC";
+      schema:byArtist ("AC/DC");;
       schema:name "Shook you all Night Long";
       schema:url <shook-you-all-night-long>]
-  )] .
+  )]); .
 -->
 </pre>