Adding N-Quads
authorYves Raimond <yves.raimond@bbc.co.uk>
Mon, 15 Apr 2013 14:52:51 +0100
changeset 803 d2b8ee0172a9
parent 802 d59254401d57
child 804 a587dc7bb1bd
Adding N-Quads
rdf-primer/index.html
--- a/rdf-primer/index.html	Thu Apr 11 09:34:29 2013 +0100
+++ b/rdf-primer/index.html	Mon Apr 15 14:52:51 2013 +0100
@@ -243,7 +243,7 @@
 
    <h3>IRI</h3>
 
-   <p>
+   <p></p>
    
    </section>
 
@@ -251,7 +251,7 @@
 
    <h3>Literal</h3>
 
-   <p>
+   <p></p>
    
    </section>
 
@@ -259,10 +259,24 @@
 
    <h3>Blank node</h3>
 
-   <p>
+   <p></p>
    
    </section>
 
+  <section id="subsection-graphs">
+    <h3>Graphs</h3>
+
+    <p></p>
+
+  </section>
+
+  <section id="subsection-datasets">
+    <h3>Datasets</h3>
+
+    <!-- needed? -->
+
+  </section>
+
 </section>
 
 <section id="section-syntax">
@@ -276,8 +290,8 @@
     <h3>N-Triples</h3>
 
     <p><a href="http://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/n-triples.html">N-Triples</a>
-    provides a simple line-based, plain text way for serializing RDF data. Each line represents
-    an RDF triple. Its subject, predicate and object are separated by white space. The example above
+    provides a simple line-based, plain text way for serializing RDF graphs. Each line represents
+    an RDF triple. Its subject, predicate and object are separated by white space. Our Mona Lisa example
     can be represented in N-Triples as follows.</p>
 
     <pre>
@@ -288,8 +302,19 @@
 &lt;http://example.org/#bob&gt; &lt;http://example.org/#likes&gt; &lt;http://example.org/#the-mona-lisa&gt;.
     </pre>
 
-    <p>N-Triples is often used for RDF examples, exchanging large RDF datasets, and processing large datasets
-    using standard text processing tools.</p>
+    <p>N-Triples is often used for RDF examples, exchanging large RDF datasets, and processing large RDF graphs
+    with text processing tools.</p>
+
+    <h3>N-quads</h3>
+
+    <p><a href="https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/index.html">N-Quads</a> is
+    a simple extension to N-Triples enabling the exchange of RDF datasets. N-Quads adds a fourth
+    element to each line, capturing the graph IRI of the triple described on that line. For example, 
+    we could write the first triple of our Mona Lisa example as follows.</p>
+
+    <pre>
+&lt;http://example.org/#bob&gt; &lt;http://example.org/#knows&gt; &lt;http://example.org/#alice&gt; &lt;http://example.org/#graph-1&gt;.
+    </pre>
 
 </section>