Skip to content

Commit

Permalink
[e] (0) Make the microdata spec stand slightly more alone.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@4634 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 29, 2010
1 parent 12cbfa0 commit a89d86c
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 45 deletions.
51 changes: 37 additions & 14 deletions complete.html
Expand Up @@ -2100,7 +2100,12 @@ <h4 id=character-encodings><span class=secno>2.1.6 </span>Character encodings</h




<!--FIXUP microdata +1-->
<!--FIXUP 2dcontext +1-->
<h3 id=conformance-requirements><span class=secno>2.2 </span>Conformance requirements</h3>
<!--FIXUP microdata -1-->
<!--FIXUP 2dcontext -1-->

<p>All diagrams, examples, and notes in this specification are
non-normative, as are all sections explicitly marked non-normative.
Expand Down Expand Up @@ -2129,10 +2134,9 @@ <h3 id=conformance-requirements><span class=secno>2.2 </span>Conformance require
specification applies to implementations regardless of the
conformity of the input documents.</p>


<div class=impl>

<!-- put this list into its own section -->


<p>User agents fall into several (overlapping) categories with
different conformance requirements.</p>
Expand Down Expand Up @@ -2371,6 +2375,8 @@ <h3 id=conformance-requirements><span class=secno>2.2 </span>Conformance require

</div>



<p>For compatibility with existing content and prior specifications,
this specification describes two authoring formats: one based on XML
(referred to as <a href=#the-xhtml-syntax>the XHTML syntax</a>), and one using a <a href=#writing>custom format</a> inspired by SGML (referred to as
Expand Down Expand Up @@ -6034,7 +6040,9 @@ <h5 id=htmloptionscollection-0><span class=secno>2.7.2.4 </span>HTMLOptionsColle
</ol><!-- see also http://ln.hixie.ch/?start=1161042744&count=1 --></div>


<!--FIXUP microdata -1-->
<h5 id=htmlpropertiescollection-0><span class=secno>2.7.2.5 </span>HTMLPropertiesCollection</h5>
<!--FIXUP microdata +1-->

<p>The <code><a href=#htmlpropertiescollection>HTMLPropertiesCollection</a></code> interface represents a
<a href=#collections title=collections>collection</a> of elements that add
Expand Down Expand Up @@ -47830,6 +47838,8 @@ <h4 id=vcard><span class=secno>5.4.1 </span>vCard</h4>

<h5 id=examples-1><span class=secno>5.4.1.2 </span>Examples</h5>

<p><i>This section is non-normative.</i></p>

<div class=example>

<p>Here is a long example vCard for a fictional character called
Expand Down Expand Up @@ -48641,6 +48651,8 @@ <h4 id=vevent><span class=secno>5.4.2 </span>vEvent</h4>

<h5 id=examples-2><span class=secno>5.4.2.2 </span>Examples</h5>

<p><i>This section is non-normative.</i></p>

<!-- get more from http://www.ietf.org/rfc/rfc2445.txt -->

<div class=example>
Expand Down Expand Up @@ -48826,6 +48838,8 @@ <h4 id=licensing-works><span class=secno>5.4.3 </span>Licensing works</h4>

<h5 id=examples-3><span class=secno>5.4.3.2 </span>Examples</h5>

<p><i>This section is non-normative.</i></p>

<div class=example>

<p>This example shows an embedded image entitled <cite>My
Expand Down Expand Up @@ -49236,10 +49250,14 @@ <h4 id=json><span class=secno>5.5.1 </span>JSON</h4>

</ol><h5 id=examples-4><span class=secno>5.5.2.1 </span>Examples</h5>

<p>Here is an example of some HTML using Microdata to express RDF
statements:</p>
<p><i>This section is non-normative.</i></p>

<div class=example>

<pre>&lt;dl itemscope
<p>Here is an example of some HTML using Microdata to express RDF
statements:</p>

<pre>&lt;dl itemscope
itemtype="http://purl.org/vocab/frbr/core#Work"
itemid="http://purl.oreilly.com/works/45U8QJGZSQKDH8N"&gt;
&lt;dt&gt;Title&lt;/dt&gt;
Expand All @@ -49263,10 +49281,10 @@ <h4 id=json><span class=secno>5.5.1 </span>JSON</h4>
&lt;/dd&gt;
&lt;/dl&gt;</pre>

<p>This is equivalent to the following Turtle:</p>
<p>This is equivalent to the following Turtle:</p>

<pre class=turtle>@prefix dc: &lt;http://purl.org/dc/terms/&gt; .
@prefix frbr: &lt;http://purl.org/vocab/frbr/core#&gt; .
@prefix frbr: &lt;http://purl.org/vocab/frbr/core#&gt; .

&lt;http://purl.oreilly.com/works/45U8QJGZSQKDH8N&gt; a frbr:Work ;
dc:creator "Wil Wheaton"@en ;
Expand All @@ -49280,10 +49298,14 @@ <h4 id=json><span class=secno>5.5.1 </span>JSON</h4>
&lt;http://purl.oreilly.com/products/9780596802189.EBOOK&gt; a frbr:Expression ;
dc:type &lt;http://purl.oreilly.com/product-types/EBOOK&gt; .</pre>

<hr><p>The following snippet of HTML has microdata for two people with
the same address:</p>
</div>

<div class=example>

<p>The following snippet of HTML has microdata for two people with
the same address:</p>

<pre>&lt;p&gt;
<pre>&lt;p&gt;
Both
&lt;span itemscope itemtype="http://microformats.org/profile/hcard" itemref="home"&gt;&lt;span itemprop="fn"&gt;Princeton&lt;/span&gt;&lt;/span&gt;
and
Expand All @@ -49292,11 +49314,11 @@ <h4 id=json><span class=secno>5.5.1 </span>JSON</h4>
&lt;span id="dome" itemprop="adr" itemscope&gt;&lt;span itemprop="street-address"&gt;Avenue Q&lt;/span&gt;.&lt;/span&gt;
&lt;/p&gt;</pre>

<p>...generates these triples expressed in Turtle (including a
triple that in this case is expressed twice, though that is not
meaningful in RDF):</p>
<p>It generates these triples expressed in Turtle (including a
triple that in this case is expressed twice, though that is not
meaningful in RDF):</p>

<pre class=turtle>@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
<pre class=turtle>@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix dct: &lt;http://purl.org/dc/terms/&gt; .
@prefix hcard: &lt;http://www.w3.org/1999/xhtml/microdata#http%3A%2F%2Fmicroformats.org%2Fprofile%2Fhcard%23%3A&gt; .

Expand All @@ -49311,6 +49333,7 @@ <h4 id=json><span class=secno>5.5.1 </span>JSON</h4>
_:n2 hcard:adr%20street-address "Avenue Q" ;
hcard:adr%20street-address "Avenue Q" .</pre>

</div>



Expand Down
51 changes: 37 additions & 14 deletions index
Expand Up @@ -2000,7 +2000,12 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d




<!--FIXUP microdata +1-->
<!--FIXUP 2dcontext +1-->
<h3 id=conformance-requirements><span class=secno>2.2 </span>Conformance requirements</h3>
<!--FIXUP microdata -1-->
<!--FIXUP 2dcontext -1-->

<p>All diagrams, examples, and notes in this specification are
non-normative, as are all sections explicitly marked non-normative.
Expand Down Expand Up @@ -2029,10 +2034,9 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
specification applies to implementations regardless of the
conformity of the input documents.</p>


<div class=impl>

<!-- put this list into its own section -->


<p>User agents fall into several (overlapping) categories with
different conformance requirements.</p>
Expand Down Expand Up @@ -2271,6 +2275,8 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

</div>



<p>For compatibility with existing content and prior specifications,
this specification describes two authoring formats: one based on XML
(referred to as <a href=#the-xhtml-syntax>the XHTML syntax</a>), and one using a <a href=#writing>custom format</a> inspired by SGML (referred to as
Expand Down Expand Up @@ -5934,7 +5940,9 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
</ol><!-- see also http://ln.hixie.ch/?start=1161042744&count=1 --></div>


<!--FIXUP microdata -1-->
<h5 id=htmlpropertiescollection-0><span class=secno>2.7.2.5 </span>HTMLPropertiesCollection</h5>
<!--FIXUP microdata +1-->

<p>The <code><a href=#htmlpropertiescollection>HTMLPropertiesCollection</a></code> interface represents a
<a href=#collections title=collections>collection</a> of elements that add
Expand Down Expand Up @@ -47730,6 +47738,8 @@ document.body.appendChild(outer);</pre>

<h5 id=examples-1><span class=secno>5.4.1.2 </span>Examples</h5>

<p><i>This section is non-normative.</i></p>

<div class=example>

<p>Here is a long example vCard for a fictional character called
Expand Down Expand Up @@ -48541,6 +48551,8 @@ END:VCARD</pre>

<h5 id=examples-2><span class=secno>5.4.2.2 </span>Examples</h5>

<p><i>This section is non-normative.</i></p>

<!-- get more from http://www.ietf.org/rfc/rfc2445.txt -->

<div class=example>
Expand Down Expand Up @@ -48726,6 +48738,8 @@ END:VCARD</pre>

<h5 id=examples-3><span class=secno>5.4.3.2 </span>Examples</h5>

<p><i>This section is non-normative.</i></p>

<div class=example>

<p>This example shows an embedded image entitled <cite>My
Expand Down Expand Up @@ -49136,10 +49150,14 @@ END:VCARD</pre>

</ol><h5 id=examples-4><span class=secno>5.5.2.1 </span>Examples</h5>

<p>Here is an example of some HTML using Microdata to express RDF
statements:</p>
<p><i>This section is non-normative.</i></p>

<div class=example>

<pre>&lt;dl itemscope
<p>Here is an example of some HTML using Microdata to express RDF
statements:</p>

<pre>&lt;dl itemscope
itemtype="http://purl.org/vocab/frbr/core#Work"
itemid="http://purl.oreilly.com/works/45U8QJGZSQKDH8N"&gt;
&lt;dt&gt;Title&lt;/dt&gt;
Expand All @@ -49163,10 +49181,10 @@ END:VCARD</pre>
&lt;/dd&gt;
&lt;/dl&gt;</pre>

<p>This is equivalent to the following Turtle:</p>
<p>This is equivalent to the following Turtle:</p>

<pre class=turtle>@prefix dc: &lt;http://purl.org/dc/terms/&gt; .
@prefix frbr: &lt;http://purl.org/vocab/frbr/core#&gt; .
@prefix frbr: &lt;http://purl.org/vocab/frbr/core#&gt; .

&lt;http://purl.oreilly.com/works/45U8QJGZSQKDH8N&gt; a frbr:Work ;
dc:creator "Wil Wheaton"@en ;
Expand All @@ -49180,10 +49198,14 @@ END:VCARD</pre>
&lt;http://purl.oreilly.com/products/9780596802189.EBOOK&gt; a frbr:Expression ;
dc:type &lt;http://purl.oreilly.com/product-types/EBOOK&gt; .</pre>

<hr><p>The following snippet of HTML has microdata for two people with
the same address:</p>
</div>

<div class=example>

<p>The following snippet of HTML has microdata for two people with
the same address:</p>

<pre>&lt;p&gt;
<pre>&lt;p&gt;
Both
&lt;span itemscope itemtype="http://microformats.org/profile/hcard" itemref="home"&gt;&lt;span itemprop="fn"&gt;Princeton&lt;/span&gt;&lt;/span&gt;
and
Expand All @@ -49192,11 +49214,11 @@ END:VCARD</pre>
&lt;span id="dome" itemprop="adr" itemscope&gt;&lt;span itemprop="street-address"&gt;Avenue Q&lt;/span&gt;.&lt;/span&gt;
&lt;/p&gt;</pre>

<p>...generates these triples expressed in Turtle (including a
triple that in this case is expressed twice, though that is not
meaningful in RDF):</p>
<p>It generates these triples expressed in Turtle (including a
triple that in this case is expressed twice, though that is not
meaningful in RDF):</p>

<pre class=turtle>@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
<pre class=turtle>@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix dct: &lt;http://purl.org/dc/terms/&gt; .
@prefix hcard: &lt;http://www.w3.org/1999/xhtml/microdata#http%3A%2F%2Fmicroformats.org%2Fprofile%2Fhcard%23%3A&gt; .

Expand All @@ -49211,6 +49233,7 @@ _:n1 rdf:type &lt;http://microformats.org/profile/hcard&gt; ;
_:n2 hcard:adr%20street-address "Avenue Q" ;
hcard:adr%20street-address "Avenue Q" .</pre>

</div>



Expand Down

0 comments on commit a89d86c

Please sign in to comment.