[html5] r4147 - [e] (0) Add an example for Microdata based on http://gavin.carothers.name/2009/0 [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Oct 15 23:16:48 PDT 2009


Author: ianh
Date: 2009-10-15 23:16:47 -0700 (Thu, 15 Oct 2009)
New Revision: 4147

Modified:
   complete.html
   index
   source
Log:
[e] (0) Add an example for Microdata based on http://gavin.carothers.name/2009/08/13/trying-to-understand-microdata-rdfa/comment-page-1/#comment-18

Modified: complete.html
===================================================================
--- complete.html	2009-10-16 05:55:16 UTC (rev 4146)
+++ complete.html	2009-10-16 06:16:47 UTC (rev 4147)
@@ -640,22 +640,23 @@
      <li><a href=#items><span class=secno>5.2.2 </span>Items</a></li>
      <li><a href=#names:-the-itemprop-attribute><span class=secno>5.2.3 </span>Names: the <code>itemprop</code> attribute</a></li>
      <li><a href=#values><span class=secno>5.2.4 </span>Values</a></li>
-     <li><a href=#associating-names-with-items><span class=secno>5.2.5 </span>Associating names with items</a></ol></li>
+     <li><a href=#associating-names-with-items><span class=secno>5.2.5 </span>Associating names with items</a></li>
+     <li><a href=#examples-1><span class=secno>5.2.6 </span>Examples</a></ol></li>
    <li><a href=#microdata-dom-api><span class=secno>5.3 </span>Microdata DOM API</a></li>
    <li><a href=#microdata-vocabularies><span class=secno>5.4 </span>Microdata vocabularies</a>
     <ol>
      <li><a href=#vcard><span class=secno>5.4.1 </span>vCard</a>
       <ol>
        <li><a href=#conversion-to-vcard><span class=secno>5.4.1.1 </span>Conversion to vCard</a></li>
-       <li><a href=#examples-1><span class=secno>5.4.1.2 </span>Examples</a></ol></li>
+       <li><a href=#examples-2><span class=secno>5.4.1.2 </span>Examples</a></ol></li>
      <li><a href=#vevent><span class=secno>5.4.2 </span>vEvent</a>
       <ol>
        <li><a href=#conversion-to-icalendar><span class=secno>5.4.2.1 </span>Conversion to iCalendar</a></li>
-       <li><a href=#examples-2><span class=secno>5.4.2.2 </span>Examples</a></ol></li>
+       <li><a href=#examples-3><span class=secno>5.4.2.2 </span>Examples</a></ol></li>
      <li><a href=#licensing-works><span class=secno>5.4.3 </span>Licensing works</a>
       <ol>
        <li><a href=#conversion-to-rdf><span class=secno>5.4.3.1 </span>Conversion to RDF</a></li>
-       <li><a href=#examples-3><span class=secno>5.4.3.2 </span>Examples</a></ol></ol></li>
+       <li><a href=#examples-4><span class=secno>5.4.3.2 </span>Examples</a></ol></ol></li>
    <li><a href=#converting-html-to-other-formats><span class=secno>5.5 </span>Converting HTML to other formats</a>
     <ol>
      <li><a href=#json><span class=secno>5.5.1 </span>JSON</a></li>
@@ -44868,7 +44869,54 @@
 
 
 
+  <h4 id=examples-1><span class=secno>5.2.6 </span>Examples</h4>
 
+  <p>Here is an example of some HTML using Microdata to express RDF
+  statements:</p>
+
+  <pre><dl itemscope
+    itemtype="http://purl.org/vocab/frbr/core#Work"
+    itemid="http://purl.oreilly.com/works/45U8QJGZSQKDH8N">
+ <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="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">
+  Print
+ </dd>
+ <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">
+  Ebook
+ </dd>
+</dl></pre>
+
+  <p>This is equivalent to the following Turtle:</p>
+
+  <pre>@prefix dc: <http://purl.org/dc/terms/> .
+ at prefix frbr: <http://purl.org/vocab/frbr/core#> .
+
+<http://purl.oreilly.com/works/45U8QJGZSQKDH8N> a frbr:Work ;
+     dc:creator "Wil Wheaton"@en ;
+     dc:title "Just a Geek"@en ;
+     frbr:realization <http://purl.oreilly.com/products/9780596007683.BOOK>,
+         <http://purl.oreilly.com/products/9780596802189.EBOOK> . 
+
+<http://purl.oreilly.com/products/9780596007683.BOOK> a frbr:Expression ;
+     dc:type <http://purl.oreilly.com/product-types/BOOK> . 
+
+<http://purl.oreilly.com/products/9780596802189.EBOOK> a frbr:Expression ;
+     dc:type <http://purl.oreilly.com/product-types/EBOOK> .</pre>
+
+
+
   <h3 id=microdata-dom-api><span class=secno>5.3 </span>Microdata DOM API</h3>
 
   <dl class=domintro><dt><var title="">document</var> . <code title=dom-getItems()>getItems</code>( [ <var title="">types</var> ] )</dt>
@@ -46648,7 +46696,7 @@
 
 
 
-  <h5 id=examples-1><span class=secno>5.4.1.2 </span>Examples</h5>
+  <h5 id=examples-2><span class=secno>5.4.1.2 </span>Examples</h5>
 
   <div class=example>
 
@@ -47458,7 +47506,7 @@
 
 
 
-  <h5 id=examples-2><span class=secno>5.4.2.2 </span>Examples</h5>
+  <h5 id=examples-3><span class=secno>5.4.2.2 </span>Examples</h5>
 
 <!-- get more from http://www.ietf.org/rfc/rfc2445.txt -->
 
@@ -47634,7 +47682,7 @@
 
 
 
-  <h5 id=examples-3><span class=secno>5.4.3.2 </span>Examples</h5>
+  <h5 id=examples-4><span class=secno>5.4.3.2 </span>Examples</h5>
 
   <div class=example>
 

Modified: index
===================================================================
--- index	2009-10-16 05:55:16 UTC (rev 4146)
+++ index	2009-10-16 06:16:47 UTC (rev 4147)
@@ -630,7 +630,8 @@
      <li><a href=#items><span class=secno>5.2.2 </span>Items</a></li>
      <li><a href=#names:-the-itemprop-attribute><span class=secno>5.2.3 </span>Names: the <code>itemprop</code> attribute</a></li>
      <li><a href=#values><span class=secno>5.2.4 </span>Values</a></li>
-     <li><a href=#associating-names-with-items><span class=secno>5.2.5 </span>Associating names with items</a></ol></li>
+     <li><a href=#associating-names-with-items><span class=secno>5.2.5 </span>Associating names with items</a></li>
+     <li><a href=#examples-1><span class=secno>5.2.6 </span>Examples</a></ol></li>
    <li><a href=#microdata-dom-api><span class=secno>5.3 </span>Microdata DOM API</a></li>
    <li><a href=#converting-html-to-other-formats><span class=secno>5.4 </span>Converting HTML to other formats</a>
     <ol>
@@ -44697,7 +44698,54 @@
 
 
 
+  <h4 id=examples-1><span class=secno>5.2.6 </span>Examples</h4>
 
+  <p>Here is an example of some HTML using Microdata to express RDF
+  statements:</p>
+
+  <pre><dl itemscope
+    itemtype="http://purl.org/vocab/frbr/core#Work"
+    itemid="http://purl.oreilly.com/works/45U8QJGZSQKDH8N">
+ <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="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">
+  Print
+ </dd>
+ <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">
+  Ebook
+ </dd>
+</dl></pre>
+
+  <p>This is equivalent to the following Turtle:</p>
+
+  <pre>@prefix dc: <http://purl.org/dc/terms/> .
+ at prefix frbr: <http://purl.org/vocab/frbr/core#> .
+
+<http://purl.oreilly.com/works/45U8QJGZSQKDH8N> a frbr:Work ;
+     dc:creator "Wil Wheaton"@en ;
+     dc:title "Just a Geek"@en ;
+     frbr:realization <http://purl.oreilly.com/products/9780596007683.BOOK>,
+         <http://purl.oreilly.com/products/9780596802189.EBOOK> . 
+
+<http://purl.oreilly.com/products/9780596007683.BOOK> a frbr:Expression ;
+     dc:type <http://purl.oreilly.com/product-types/BOOK> . 
+
+<http://purl.oreilly.com/products/9780596802189.EBOOK> a frbr:Expression ;
+     dc:type <http://purl.oreilly.com/product-types/EBOOK> .</pre>
+
+
+
   <h3 id=microdata-dom-api><span class=secno>5.3 </span>Microdata DOM API</h3>
 
   <dl class=domintro><dt><var title="">document</var> . <code title=dom-getItems()>getItems</code>( [ <var title="">types</var> ] )</dt>

Modified: source
===================================================================
--- source	2009-10-16 05:55:16 UTC (rev 4146)
+++ source	2009-10-16 06:16:47 UTC (rev 4147)
@@ -49960,7 +49960,54 @@
 
 
 
+  <h4>Examples</h4>
 
+  <p>Here is an example of some HTML using Microdata to express RDF
+  statements:</p>
+
+  <pre><dl itemscope
+    itemtype="http://purl.org/vocab/frbr/core#Work"
+    itemid="http://purl.oreilly.com/works/45U8QJGZSQKDH8N">
+ <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="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">
+  Print
+ </dd>
+ <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">
+  Ebook
+ </dd>
+</dl></pre>
+
+  <p>This is equivalent to the following Turtle:</p>
+
+  <pre>@prefix dc: <http://purl.org/dc/terms/> .
+ at prefix frbr: <http://purl.org/vocab/frbr/core#> .
+
+<http://purl.oreilly.com/works/45U8QJGZSQKDH8N> a frbr:Work ;
+     dc:creator "Wil Wheaton"@en ;
+     dc:title "Just a Geek"@en ;
+     frbr:realization <http://purl.oreilly.com/products/9780596007683.BOOK>,
+         <http://purl.oreilly.com/products/9780596802189.EBOOK> . 
+
+<http://purl.oreilly.com/products/9780596007683.BOOK> a frbr:Expression ;
+     dc:type <http://purl.oreilly.com/product-types/BOOK> . 
+
+<http://purl.oreilly.com/products/9780596802189.EBOOK> a frbr:Expression ;
+     dc:type <http://purl.oreilly.com/product-types/EBOOK> .</pre>
+
+
+
   <h3>Microdata DOM API</h3>
 
   <dl class="domintro">




More information about the Commit-Watchers mailing list