Adding schema.org namespace
authorYves Raimond <yves.raimond@bbc.co.uk>
Mon, 15 Apr 2013 16:22:46 +0100
changeset 805 9a93c0ffa86b
parent 804 a587dc7bb1bd
child 806 b3a49f528625
Adding schema.org namespace
rdf-primer/index.html
--- a/rdf-primer/index.html	Mon Apr 15 16:07:31 2013 +0100
+++ b/rdf-primer/index.html	Mon Apr 15 16:22:46 2013 +0100
@@ -298,7 +298,7 @@
 &lt;http://example.org/#bob&gt; &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt; &lt;http://xmlns.com/foaf/0.1/Person&gt;.
 &lt;http://example.org/#alice&gt; &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt; &lt;http://xmlns.com/foaf/0.1/Person&gt;.
 &lt;http://example.org/#bob&gt; &lt;http://xmlns.com/foaf/0.1/knows&gt; &lt;http://example.org/#alice&gt;.
-&lt;http://example.org/#bob&gt; &lt;http://example.org/#birth-date&gt; "1990-07-04"^^&lt;http://www.w3.org/2001/XMLSchema#date&gt;.
+&lt;http://example.org/#bob&gt; &lt;http://schema.org/birthDate&gt; "1990-07-04"^^&lt;http://www.w3.org/2001/XMLSchema#date&gt;.
 &lt;http://example.org/#da-vinci&gt; &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt; &lt;http://xmlns.com/foaf/0.1/Person&gt;.
 &lt;http://example.org/#da-vinci&gt; &lt;http://xmlns.com/foaf/0.1/made&gt; &lt;http://example.org/#the-mona-lisa&gt;.
 &lt;http://example.org/#the-mona-lisa&gt; &lt;http://example.org/#on-display-in&gt; &lt;http://example.org/#the-louvre&gt;.
@@ -316,7 +316,7 @@
     we could write the first triple of our Mona Lisa example as follows.</p>
 
     <pre>
-&lt;http://example.org/#bob&gt; &lt;http://example.org/#knows&gt; &lt;http://example.org/#alice&gt; &lt;http://example.org/#graph-1&gt;.
+&lt;http://example.org/#bob&gt; &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt; &lt;http://xmlns.com/foaf/0.1/Person&gt; &lt;http://example.org/#graph-1&gt;.
     </pre>
 
     <h3>Turtle</h3>
@@ -327,13 +327,14 @@
 
     <pre>
 @prefix foaf: &lt;http://xmlns.com/foaf/0.1/&gt; .
-@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
+@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
+@prefix schema: &lt;http://schema.org/&gt; .
 @prefix : &lt;http://example.org/#&gt; .
 
 :bob
   a foaf:Person ;
   foaf:knows :alice ;
-  :birth-date "1990-07-04"^^xsd:date ;
+  schema:birthDate "1990-07-04"^^xsd:date ;
   :likes :the-mona-lisa .
 :alice
   a foaf:Person .