- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 16 Oct 2009 06:05:05 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv9330 Modified Files: Overview.html Log Message: Add an example for Microdata based on http://gavin.carothers.name/2009/08/13/trying-to-understand-microdata-rdfa/comment-page-1/#comment-18 (whatwg r4147) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.3295 retrieving revision 1.3296 diff -u -d -r1.3295 -r1.3296 --- Overview.html 16 Oct 2009 05:43:31 -0000 1.3295 +++ Overview.html 16 Oct 2009 06:05:02 -0000 1.3296 @@ -777,7 +777,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> @@ -39911,7 +39912,43 @@ determined.<p>A document must not contain any elements that have an <code title="attr-itemprop"><a href="#names:-the-itemprop-attribute">itemprop</a></code> attribute that would not be found to be a property of any of the <a href="#concept-item" title="concept-item">items</a> in that document were their <a href="#the-properties-of-an-item" title="the properties of an item">properties</a> all to be determined.<p>An <a href="#concept-item" title="concept-item">item</a> is a <dfn id="top-level-microdata-items" title="top-level microdata items">top-level microdata item</dfn> if - its element does not have an <code title="attr-itemprop"><a href="#names:-the-itemprop-attribute">itemprop</a></code> attribute.<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> + its element does not have an <code title="attr-itemprop"><a href="#names:-the-itemprop-attribute">itemprop</a></code> attribute.<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:<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:<pre>@prefix dc: <http://purl.org/dc/terms/> . +@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> <dd>
Received on Friday, 16 October 2009 06:05:10 UTC