Skip to content

Commit

Permalink
[e] (0) Work around a limitation of Turtle syntax.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13090

git-svn-id: http://svn.whatwg.org/webapps@6280 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 7, 2011
1 parent 5d90505 commit d653dd4
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 51 deletions.
30 changes: 13 additions & 17 deletions complete.html
Expand Up @@ -60406,24 +60406,20 @@ <h4 id=json><span class=secno>5.5.1 </span>JSON</h4>
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; .
@prefix dct: &lt;http://purl.org/dc/terms/&gt; .
@prefix hcard: &lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:&gt; .

&lt;&gt; &lt;http://www.w3.org/1999/xhtml/microdata#item&gt; _:n0 ;
<pre class=turtle>&lt;&gt; &lt;http://www.w3.org/1999/xhtml/microdata#item&gt; _:n0 ;
&lt;http://www.w3.org/1999/xhtml/microdata#item&gt; _:n1 .
_:n0 rdf:type &lt;http://microformats.org/profile/hcard&gt; ;
hcard:fn "Princeton" ;
hcard:n _:n0a
hcard:adr _:n2 .
_:n0a hcard:n%20given-name "Princeton" .
_:n1 rdf:type &lt;http://microformats.org/profile/hcard&gt; ;
hcard:fn "Trekkie" ;
hcard:n _:n1a
hcard:adr _:n2 .
_:n1a hcard:n%20given-name "Trekkie" .
_:n2 hcard:adr%20street-address "Avenue Q" ;
hcard:adr%20street-address "Avenue Q" .</pre>
_:n0 &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt; &lt;http://microformats.org/profile/hcard&gt; ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:fn&gt; "Princeton" ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:n&gt; _:n0a
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:adr&gt; _:n2 .
_:n0a &lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:n%20given-name&gt; "Princeton" .
_:n1 &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt; &lt;http://microformats.org/profile/hcard&gt; ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:fn&gt; "Trekkie" ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:n&gt; _:n1a
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:adr&gt; _:n2 .
_:n1a &lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:n%20given-name&gt; "Trekkie" .
_:n2 &lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:adr%20street-address&gt; "Avenue Q" ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:adr%20street-address&gt; "Avenue Q" .</pre>

</div>

Expand Down
30 changes: 13 additions & 17 deletions index
Expand Up @@ -60278,24 +60278,20 @@ END:VCARD</pre>
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; .
@prefix dct: &lt;http://purl.org/dc/terms/&gt; .
@prefix hcard: &lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:&gt; .

&lt;&gt; &lt;http://www.w3.org/1999/xhtml/microdata#item&gt; _:n0 ;
<pre class=turtle>&lt;&gt; &lt;http://www.w3.org/1999/xhtml/microdata#item&gt; _:n0 ;
&lt;http://www.w3.org/1999/xhtml/microdata#item&gt; _:n1 .
_:n0 rdf:type &lt;http://microformats.org/profile/hcard&gt; ;
hcard:fn "Princeton" ;
hcard:n _:n0a
hcard:adr _:n2 .
_:n0a hcard:n%20given-name "Princeton" .
_:n1 rdf:type &lt;http://microformats.org/profile/hcard&gt; ;
hcard:fn "Trekkie" ;
hcard:n _:n1a
hcard:adr _:n2 .
_:n1a hcard:n%20given-name "Trekkie" .
_:n2 hcard:adr%20street-address "Avenue Q" ;
hcard:adr%20street-address "Avenue Q" .</pre>
_:n0 &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt; &lt;http://microformats.org/profile/hcard&gt; ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:fn&gt; "Princeton" ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:n&gt; _:n0a
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:adr&gt; _:n2 .
_:n0a &lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:n%20given-name&gt; "Princeton" .
_:n1 &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt; &lt;http://microformats.org/profile/hcard&gt; ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:fn&gt; "Trekkie" ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:n&gt; _:n1a
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:adr&gt; _:n2 .
_:n1a &lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:n%20given-name&gt; "Trekkie" .
_:n2 &lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:adr%20street-address&gt; "Avenue Q" ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:adr%20street-address&gt; "Avenue Q" .</pre>

</div>

Expand Down
30 changes: 13 additions & 17 deletions source
Expand Up @@ -68634,24 +68634,20 @@ END:VCARD</pre>
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#> .
@prefix dct: &lt;http://purl.org/dc/terms/> .
@prefix hcard: &lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:> .

&lt;> &lt;http://www.w3.org/1999/xhtml/microdata#item> _:n0 ;
<pre class="turtle">&lt;> &lt;http://www.w3.org/1999/xhtml/microdata#item> _:n0 ;
&lt;http://www.w3.org/1999/xhtml/microdata#item> _:n1 .
_:n0 rdf:type &lt;http://microformats.org/profile/hcard> ;
hcard:fn "Princeton" ;
hcard:n _:n0a
hcard:adr _:n2 .
_:n0a hcard:n%20given-name "Princeton" .
_:n1 rdf:type &lt;http://microformats.org/profile/hcard> ;
hcard:fn "Trekkie" ;
hcard:n _:n1a
hcard:adr _:n2 .
_:n1a hcard:n%20given-name "Trekkie" .
_:n2 hcard:adr%20street-address "Avenue Q" ;
hcard:adr%20street-address "Avenue Q" .</pre>
_:n0 &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type> &lt;http://microformats.org/profile/hcard> ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:fn> "Princeton" ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:n> _:n0a
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:adr> _:n2 .
_:n0a &lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:n%20given-name> "Princeton" .
_:n1 &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type> &lt;http://microformats.org/profile/hcard> ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:fn> "Trekkie" ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:n> _:n1a
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:adr> _:n2 .
_:n1a &lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:n%20given-name> "Trekkie" .
_:n2 &lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:adr%20street-address> "Avenue Q" ;
&lt;http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:adr%20street-address> "Avenue Q" .</pre>

</div>

Expand Down

0 comments on commit d653dd4

Please sign in to comment.