Adapting Turtle example
authorYves Raimond <yves.raimond@bbc.co.uk>
Tue, 13 Aug 2013 20:02:31 +0100
changeset 992 170484a1c37e
parent 989 7ff07dbd7d63
child 993 130af6c43bf8
Adapting Turtle example
rdf-primer/index.html
--- a/rdf-primer/index.html	Tue Aug 13 19:55:40 2013 +0100
+++ b/rdf-primer/index.html	Tue Aug 13 20:02:31 2013 +0100
@@ -314,7 +314,6 @@
 
       <pre>
         &lt;Bob&gt; &lt;is a&gt; &lt;person&gt;.
-        &lt;Alice&gt; &lt;is a&gt; &lt;person&gt;.
         &lt;Bob&gt; &lt;is a friend of&gt; &lt;Alice&gt;.
         &lt;Bob&gt; &lt;is born on&gt; &lt;the 4th of July 1990&gt;.
         &lt;Bob&gt; &lt;is interested in&gt; &lt;the Mona Lisa&gt;.
@@ -364,7 +363,6 @@
 
       <pre>
 &lt;http://example.org/bob#me&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#me&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#me&gt; &lt;http://xmlns.com/foaf/0.1/knows&gt; &lt;http://example.org/alice#me&gt;.
 &lt;http://example.org/bob#me&gt; &lt;http://schema.org/birthDate&gt; "1990-07-04"^^&lt;http://www.w3.org/2001/XMLSchema#date&gt;.
 &lt;http://example.org/bob#me&gt; &lt;http://xmlns.com/foaf/0.1/topic_interest&gt; &lt;http://www.wikidata.org/entity/Q12418&gt;.
@@ -388,23 +386,26 @@
       literals. Turtle provides a good trade-off between ease of writing, ease of parsing and readability.</p>
 
       <pre>
[email protected] &lt;http://example.org/&gt;
 @prefix foaf: &lt;http://xmlns.com/foaf/0.1/&gt; .
 @prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
 @prefix schema: &lt;http://schema.org/&gt; .
[email protected] : &lt;http://example.org/#&gt; .
[email protected] dcterms: &lt;http://purl.org/dc/terms/&gt; .
[email protected] wd: &lt;http://www.wikidata.org/entity/&gt; .
 
-:me
+&lt;bob#me&gt;
   a foaf:Person ;
-  foaf:knows :alice ;
+  foaf:knows &lt;alice#me&gt; ;
   schema:birthDate "1990-07-04"^^xsd:date ;
-  :likes :the-mona-lisa .
-:alice
-  a foaf:Person .
-:da-vinci
+  foaf:topic_interest wd:Q12418 .
+
+&lt;http://viaf.org/viaf/24604287/&gt;
   a foaf:Person ;
-  foaf:made :the-mona-lisa .
-:the-mona-lisa
-  :on-display-in :the-louvre .
+  foaf:name "Leonardo da Vinci" ;
+  foaf:made wd:Q12418 .
+
+&lt;http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619&gt;
+  dcterms:subject wd:Q12418 .
       </pre>
 
     </section>