RDF/XML example
authorYves Raimond <yves.raimond@bbc.co.uk>
Wed, 14 Aug 2013 12:42:39 +0100
changeset 996 83460d4d7810
parent 995 8b9b6d1212d8
child 997 b7c64174ae00
RDF/XML example
rdf-primer/index.html
--- a/rdf-primer/index.html	Wed Aug 14 12:37:59 2013 +0100
+++ b/rdf-primer/index.html	Wed Aug 14 12:42:39 2013 +0100
@@ -386,7 +386,7 @@
       literals. Turtle provides a good trade-off between ease of writing, ease of parsing and readability.</p>
 
       <pre>
-@base &lt;http://example.org/&gt;
+@base &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; .
@@ -463,7 +463,27 @@
       <p>...</p>
 
       <pre>
-
+&lt;?xml version="1.0" encoding="utf-8"?&gt;
+&lt;rdf:RDF
+   xmlns:dcterms="http://purl.org/dc/terms/"
+   xmlns:foaf="http://xmlns.com/foaf/0.1/"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:schema="http://schema.org/"
+   xmlns:wd="http://www.wikidata.org/entity/"
+   xmlns:xsd="http://www.w3.org/2001/XMLSchema#"&gt;
+  &lt;foaf:Person rdf:about="http://example.org/bob#me"&gt;
+    &lt;schema:birthDate rdf:datatype="http://www.w3.org/2001/XMLSchema#date"&gt;1990-07-04&lt;/schema:birthDate&gt;
+    &lt;foaf:knows rdf:resource="http://example.org/alice#me"/&gt;
+    &lt;foaf:topic_interest rdf:resource="http://www.wikidata.org/entity/Q12418"/&gt;
+  &lt;/foaf:Person&gt;
+  &lt;foaf:Person rdf:about="http://viaf.org/viaf/24604287/"&gt;
+    &lt;foaf:made rdf:resource="http://www.wikidata.org/entity/Q12418"/&gt;
+    &lt;foaf:name&gt;Leonardo da Vinci&lt;/foaf:name&gt;
+  &lt;/foaf:Person&gt;
+  &lt;rdf:Description rdf:about="http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619"&gt;
+    &lt;dcterms:subject rdf:resource="http://www.wikidata.org/entity/Q12418"/&gt;
+  &lt;/rdf:Description&gt;
+&lt;/rdf:RDF&gt;
       </pre>
 
     </section>