RDF/XML example edited
authorGuus Schreiber <guus.schreiber@vu.nl>
Sun, 16 Feb 2014 23:26:43 +0100
changeset 1918 1c5dea2ecf99
parent 1917 d67815dc364e
child 1919 ec6fbb5c2e08
RDF/XML example edited
rdf-primer/index.html
--- a/rdf-primer/index.html	Sun Feb 16 23:12:40 2014 +0100
+++ b/rdf-primer/index.html	Sun Feb 16 23:26:43 2014 +0100
@@ -687,7 +687,7 @@
       In its basic form a triple in Turtle looks this:<P>
 
       <pre class="example">
- &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://xmlns.com/foaf/0.1/knows&gt; &lt;http://example.org/alice#me&gt; .
       </pre>
 
       <p>In Turtle full IRIs are enclosed in angle brackets (<code>&lt;&gt;</code>);
@@ -1156,7 +1156,7 @@
 06      &lt;/p&gt;
 07      &lt;p&gt;
 08        Bob is interested in &lt;a rel="http://xmlns.com/foaf/0.1/topic_interest"
-09          href="http://www.wikidata.org/entity/Q12418"&gt;the Mona Lisa&lt;/a&gt;.
+09        href="http://www.wikidata.org/entity/Q12418"&gt;the Mona Lisa&lt;/a&gt;.
 10      &lt;/p&gt;
 11    &lt;/div&gt;
 12    &lt;div about="http://www.wikidata.org/entity/Q12418"&gt;
@@ -1217,23 +1217,23 @@
 <pre class="example" id="rdf-xml-example">
 01    &lt;?xml version="1.0" encoding="utf-8"?&gt;
 02    &lt;rdf:RDF
-03         xmlns:dcterms="http://purl.org/dc/terms/"
-04         xmlns:foaf="http://xmlns.com/foaf/0.1/"
-05         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-06         xmlns:schema="http://schema.org/"&gt;
-07      &lt;rdf:Description rdf:about="http://example.org/bob#me"&gt;
-08        &lt;rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/&gt;
-09        &lt;schema:birthDate rdf:datatype="http://www.w3.org/2001/XMLSchema#date"&gt;1990-07-04&lt;/schema:birthDate&gt;
-10        &lt;foaf:knows rdf:resource="http://example.org/alice#me"/&gt;
-11        &lt;foaf:topic_interest rdf:resource="http://www.wikidata.org/entity/Q12418"/&gt;
-12      &lt;/rdf:Description&gt;
-13      &lt;rdf:Description rdf:about="http://www.wikidata.org/entity/Q12418"&gt;
-14        &lt;dcterms:title&gt;Mona Lisa&lt;/dcterms:title&gt;
-15        &lt;dcterms:creator rdf:resource="http://dbpedia.org/resource/Leonardo_da_Vinci"/&gt;
-16      &lt;/rdf:Description&gt;
-17      &lt;rdf:Description rdf:about="http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619"&gt;
-18        &lt;dcterms:subject rdf:resource="http://www.wikidata.org/entity/Q12418"/&gt;
-19      &lt;/rdf:Description&gt;
+03             xmlns:dcterms="http://purl.org/dc/terms/"
+04             xmlns:foaf="http://xmlns.com/foaf/0.1/"
+05             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+06             xmlns:schema="http://schema.org/"&gt;
+07       &lt;rdf:Description rdf:about="http://example.org/bob#me"&gt;
+08          &lt;rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/&gt;
+09          &lt;schema:birthDate rdf:datatype="http://www.w3.org/2001/XMLSchema#date"&gt;1990-07-04&lt;/schema:birthDate&gt;
+10          &lt;foaf:knows rdf:resource="http://example.org/alice#me"/&gt;
+11          &lt;foaf:topic_interest rdf:resource="http://www.wikidata.org/entity/Q12418"/&gt;
+12       &lt;/rdf:Description&gt;
+13       &lt;rdf:Description rdf:about="http://www.wikidata.org/entity/Q12418"&gt;
+14          &lt;dcterms:title&gt;Mona Lisa&lt;/dcterms:title&gt;
+15          &lt;dcterms:creator rdf:resource="http://dbpedia.org/resource/Leonardo_da_Vinci"/&gt;
+16       &lt;/rdf:Description&gt;
+17       &lt;rdf:Description rdf:about="http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619"&gt;
+18          &lt;dcterms:subject rdf:resource="http://www.wikidata.org/entity/Q12418"/&gt;
+19       &lt;/rdf:Description&gt;
 20    &lt;/rdf:RDF&gt;
 </pre>
 
@@ -1246,12 +1246,25 @@
 is used to define sets of triples that have as subject the IRI
 specified by the <code>about</code> attribute.  The first description
 block (line 7-12) has four sub-elements. The name of the subelement is
-an IRI representing an RDF proerty, e.g., <code>rdf:type</code> (line 8). Here, each
-subelement represents one triple. In cases where the object of the
-triple is also an IRI
+an IRI representing an RDF property, e.g., <code>rdf:type</code> (line 8). Here, each
+subelement represents one triple. For example, line 10 corresponds to
+the triple:</p>
+
+<pre class="example">
+&lt;http://example.org/bob#me&gt; &lt;http://xmlns.com/foaf/0.1/knows&gt; &lt;http://example.org/alice#me&gt; .
+</pre>
+
+<p>In cases where the object of the triple is also an IRI
 the property subelement has no content and 
 the object IRI is specified using the <code>rdf:resource</code>
-attribute (lines 8, 10-11, 15 and 18). When the object of the
+attribute (lines 8, 10-11, 15 and 18). For example, the triples
+specified by line 10:
+
+<blockquote>
+
+</blockquote>
+
+<p>When the object of the
 triple is a literal the literal value is entered as content of the
 property element (lines 9 and 14). The datatype is specified as
 attribute of the property element (line 9). If the datatype is