examples 1-4
authorGuus Schreiber <guus.schreiber@vu.nl>
Mon, 09 Dec 2013 18:03:12 +0100
changeset 1501 16df8b5dac1b
parent 1500 96f490ec53dc
child 1502 4136c3d87f24
examples 1-4
rdf-xml/index.html
--- a/rdf-xml/index.html	Mon Dec 09 17:50:47 2013 +0100
+++ b/rdf-xml/index.html	Mon Dec 09 18:03:12 2013 +0100
@@ -357,20 +357,20 @@
         property elements.
         </p>
 
-        <pre class="example" id="example1">
-        <strong>Striped RDF/XML (nodes and predicate arcs)</strong>
+<pre class="example" id="example1">
+<strong>Striped RDF/XML (nodes and predicate arcs)</strong>
 	
+<code>&lt;rdf:Description&gt;</code>
+  &lt;ex:editor&gt;
+    <code>&lt;rdf:Description&gt;</code>
+      &lt;ex:homePage&gt;
         <code>&lt;rdf:Description&gt;</code>
-          &lt;ex:editor&gt;
-            <code>&lt;rdf:Description&gt;</code>
-              &lt;ex:homePage&gt;
-                <code>&lt;rdf:Description&gt;</code>
-                <code>&lt;/rdf:Description&gt;</code>
-              &lt;/ex:homePage&gt;
-            <code>&lt;/rdf:Description&gt;</code>
-          &lt;/ex:editor&gt;
         <code>&lt;/rdf:Description&gt;</code>
-        </pre>
+      &lt;/ex:homePage&gt;
+    <code>&lt;/rdf:Description&gt;</code>
+  &lt;/ex:editor&gt;
+<code>&lt;/rdf:Description&gt;</code>
+</pre>
 
         <p>The <a href="#figure2">Figure 2</a> graph consists of some nodes
         that are
@@ -380,22 +380,20 @@
         to the RDF/XML using the <code>rdf:about</code> attribute on node
         elements to give the result in <a href="#example2">Example 2</a>:</p>
 
-        <pre class="example" id="example2">
-        &lt;!-- Node Elements with RDF URI references added --&gt;
+<pre class="example" id="example2">
+<strong>Node Elements with RDF URI references added</strong>
 	
-        &lt;rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"&gt;
-          &lt;ex:editor&gt;
-
-            &lt;rdf:Description&gt;
-              &lt;ex:homePage&gt;
-                &lt;rdf:Description rdf:about="http://purl.org/net/dajobe/"&gt;
-                &lt;/rdf:Description&gt;
-              &lt;/ex:homePage&gt;
-            &lt;/rdf:Description&gt;
-
-          &lt;/ex:editor&gt;
+&lt;rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"&gt;
+  &lt;ex:editor&gt;
+    &lt;rdf:Description&gt;
+      &lt;ex:homePage&gt;
+        &lt;rdf:Description rdf:about="http://purl.org/net/dajobe/"&gt;
         &lt;/rdf:Description&gt;
-        </pre>
+      &lt;/ex:homePage&gt;
+    &lt;/rdf:Description&gt;
+  &lt;/ex:editor&gt;
+&lt;/rdf:Description&gt;
+</pre>
 
         <p>Adding the other two paths through the <a href="#figure1">Figure 1</a>
         graph to the RDF/XML in
@@ -405,32 +403,32 @@
         shared between the two paths, see 
         <a href="#section-Syntax-blank-nodes">2.10</a>):</p>
 
-        <pre class="example" id="example3">
-        &lt;-- Complete description of all graph paths --&gt;
-
-        &lt;rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"&gt;
-          &lt;ex:editor&gt;
-            &lt;rdf:Description&gt;
-              &lt;ex:homePage&gt;
-                &lt;rdf:Description rdf:about="http://purl.org/net/dajobe/"&gt;
-                &lt;/rdf:Description&gt;
-              &lt;/ex:homePage&gt;
-            &lt;/rdf:Description&gt;
-          &lt;/ex:editor&gt;
+<pre class="example" id="example3">
+<strong>&lt;-- Complete description of all graph paths</strong>
+
+&lt;rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"&gt;
+  &lt;ex:editor&gt;
+    &lt;rdf:Description&gt;
+      &lt;ex:homePage&gt;
+        &lt;rdf:Description rdf:about="http://purl.org/net/dajobe/"&gt;
         &lt;/rdf:Description&gt;
-
-        &lt;rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"&gt;
-          &lt;ex:editor&gt;
-            &lt;rdf:Description&gt;
-              &lt;ex:fullName&gt;Dave Beckett&lt;/ex:fullName&gt;
-            &lt;/rdf:Description&gt;
-          &lt;/ex:editor&gt;
-        &lt;/rdf:Description&gt;
-
-        &lt;rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"&gt;
-          &lt;dc:title&gt;RDF/XML Syntax Specification (Revised)&lt;/dc:title&gt;
-        &lt;/rdf:Description&gt;
-        </pre>
+      &lt;/ex:homePage&gt;
+    &lt;/rdf:Description&gt;
+  &lt;/ex:editor&gt;
+&lt;/rdf:Description&gt;
+
+&lt;rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"&gt;
+  &lt;ex:editor&gt;
+    &lt;rdf:Description&gt;
+      &lt;ex:fullName&gt;Dave Beckett&lt;/ex:fullName&gt;
+    &lt;/rdf:Description&gt;
+  &lt;/ex:editor&gt;
+&lt;/rdf:Description&gt;
+
+&lt;rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"&gt;
+  &lt;dc:title&gt;RDF/XML Syntax Specification (Revised)&lt;/dc:title&gt;
+&lt;/rdf:Description&gt;
+</pre>
 
         </section>
         
@@ -457,22 +455,22 @@
         gives the result shown in <a href="#example4">Example 4</a>
         (this example does show that there is a single blank node):</p>
 
-        <pre class="example" id="example4">
-	&lt;!-- Using multiple property elements on a node element --&gt;
+<pre class="example" id="example4">
+<strong>Using multiple property elements on a node element</strong>
 	  
-        &lt;rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"&gt;
-          &lt;ex:editor&gt;
-            &lt;rdf:Description&gt;
-              &lt;ex:homePage&gt;
-                &lt;rdf:Description rdf:about="http://purl.org/net/dajobe/"&gt;
-                &lt;/rdf:Description&gt;
-              &lt;/ex:homePage&gt;
-              &lt;ex:fullName&gt;Dave Beckett&lt;/ex:fullName&gt;
-            &lt;/rdf:Description&gt;
-          &lt;/ex:editor&gt;
-          &lt;dc:title&gt;RDF/XML Syntax Specification (Revised)&lt;/dc:title&gt;
+&lt;rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"&gt;
+  &lt;ex:editor&gt;
+    &lt;rdf:Description&gt;
+      &lt;ex:homePage&gt;
+        &lt;rdf:Description rdf:about="http://purl.org/net/dajobe/"&gt;
         &lt;/rdf:Description&gt;
-        </pre>
+      &lt;/ex:homePage&gt;
+      &lt;ex:fullName&gt;Dave Beckett&lt;/ex:fullName&gt;
+    &lt;/rdf:Description&gt;
+  &lt;/ex:editor&gt;
+  &lt;dc:title&gt;RDF/XML Syntax Specification (Revised)&lt;/dc:title&gt;
+&lt;/rdf:Description&gt;
+</pre>
 
         </section>
 
@@ -581,27 +579,24 @@
         <a href="#figure1">Figure 1</a> graph
         in <a href="#example7">Example 7</a>:</p>
 
-        <pre class="example" id="example7">
-       <strong>Complete RDF/XML description of Figure 1 graph 
-	     (<a href="example07.rdf">example07.rdf</a> output <a href="example07.nt">example07.nt</a>)
-	--&gt;
-
-        &lt;?xml version="1.0"?&gt;
-        &lt;rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-                 xmlns:dc="http://purl.org/dc/elements/1.1/"
-                 xmlns:ex="http://example.org/stuff/1.0/"&gt;
-
-          &lt;rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"
-                   dc:title="RDF/XML Syntax Specification (Revised)"&gt;
-            &lt;ex:editor&gt;
-              &lt;rdf:Description ex:fullName="Dave Beckett"&gt;
-            &lt;ex:homePage rdf:resource="http://purl.org/net/dajobe/" /&gt;
-              &lt;/rdf:Description&gt;
-            &lt;/ex:editor&gt;
-          &lt;/rdf:Description&gt;
-
-        &lt;/rdf:RDF&gt;
-        </pre>
+<pre class="example" id="example7">
+<strong>Complete RDF/XML description of Figure 1 graph 
+(<a href="example07.rdf">example07.rdf</a> output <a href="example07.nt">example07.nt</a>)</strong>
+
+&lt;?xml version="1.0"?&gt;
+&lt;rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+            xmlns:dc="http://purl.org/dc/elements/1.1/"
+            xmlns:ex="http://example.org/stuff/1.0/"&gt;
+  &lt;rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"
+             dc:title="RDF/XML Syntax Specification (Revised)"&gt;
+    &lt;ex:editor&gt;
+      &lt;rdf:Description ex:fullName="Dave Beckett"&gt;
+        &lt;ex:homePage rdf:resource="http://purl.org/net/dajobe/" /&gt;
+      &lt;/rdf:Description&gt;
+    &lt;/ex:editor&gt;
+  &lt;/rdf:Description&gt;
+&lt;/rdf:RDF&gt;
+</pre>
 
         <p>It is possible to omit <code>rdf:RDF</code> in
         <a href="#example7">Example 7</a> above since there is only one