Adding RDFa example
authorYves Raimond <yves.raimond@bbc.co.uk>
Wed, 14 Aug 2013 22:10:40 +0100
changeset 1001 a80a1f5124b3
parent 1000 88fb508a2db3
child 1002 628809ff480b
Adding RDFa example
rdf-primer/index.html
--- a/rdf-primer/index.html	Wed Aug 14 17:40:30 2013 +0100
+++ b/rdf-primer/index.html	Wed Aug 14 22:10:40 2013 +0100
@@ -463,7 +463,32 @@
 
       <h3>RDFa</h3>
 
-      <p>RDFa [[RDFA-PRIMER]] can be used to embed RDF data within HTML documents. </p>
+      <p>RDFa [[RDFA-PRIMER]] can be used to embed RDF data within HTML documents. Our example
+      can be represented in RDFa as follows.
+      </p>
+
+      <pre>
+&lt;div prefix="
+  rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
+  foaf: http://xmlns.com/foaf/0.1/
+  wd: http://www.wikidata.org/entity/
+  dcterms: http://purl.org/dc/terms/
+  xsd: http://www.w3.org/2001/XMLSchema#"&gt;
+    &lt;div typeof="foaf:Person" about="http://example.org/bob#me"&gt;
+      &lt;p&gt;
+        Bob knows &lt;a rel="foaf:knows" href="http://example.org/alice#me"&gt;Alice&lt;/a&gt;
+        and was born on the &lt;span property="schema:birthDate" datatype="xsd:date"&gt;1990-07-04&lt;/span&gt;.
+      &lt;/p&gt;
+      &lt;p&gt;
+        Bob is interested in &lt;a rel="foaf:topic_interest" resource="wd:Q12418"&gt;the Mona Lisa&lt;/a&gt;.
+      &lt;/p&gt;
+      &lt;div about="wd:Q12418"&gt;
+        The Mona Lisa was painted by &lt;a rev="foaf:maker" typeof="foaf:Person" href="http://viaf.org/viaf/24604287/"&gt;&lt;span property="foaf:name"&gt;Leonardo da Vinci&lt;/span&gt;&lt;/a&gt;
+        and is the subject of this &lt;a rev="dcterms:subject" href="http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619"&gt;video document&lt;/a&gt;.
+      &lt;/div&gt;
+  &lt;/div&gt;
+&lt;/div&gt;
+      </pre>
 
     </section>
 
@@ -472,7 +497,7 @@
       <h3>RDF/XML</h3>
 
       <p>RDF/XML [[RDF-SYNTAX-GRAMMAR]] provides an XML syntax for RDF
-      graphs. RDF/XML was the only normative syntax for RDF before the RDF 1.1 set of recommendations, introducing multiple
+      graphs. RDF/XML was the only normative syntax for RDF before the RDF 1.1 set of recommendations introduced multiple
       syntaxes for RDF graphs. Our example can be represented in RDF/XML as follows.</p>
 
       <pre>