Adding some text around n-triples
authorYves Raimond <yves.raimond@bbc.co.uk>
Tue, 19 Mar 2013 12:57:27 +0000
changeset 671 11651ad34cd8
parent 670 381bedd01fbd
child 672 3f10a93d4f06
Adding some text around n-triples
rdf-primer/index.html
--- a/rdf-primer/index.html	Tue Mar 19 11:34:18 2013 +0000
+++ b/rdf-primer/index.html	Tue Mar 19 12:57:27 2013 +0000
@@ -198,6 +198,7 @@
       &lt;Bob&gt; &lt;is born on&gt; &lt;the 4th of July 1990&gt;. 
       &lt;Leonardo da Vinci&gt; &lt;is the creator of&gt; &lt;the Mona Lisa&gt;.
       &lt;The Mona Lisa&gt; &lt;is on display in&gt; &lt;the Louvre&gt;.       
+      &lt;Bob&gt; &lt;likes&gt; &lt;The Mona Lisa&gt;.
     </pre>
 
     <p>Because RDF statements consist of three elements they are called
@@ -268,17 +269,33 @@
 
     <h2>RDF Syntax</h2>
 
-    <p>RDF has many syntactic forms
+    <p>The RDF Data Model can be expressed in many syntactic forms.
+    We give an overview of those various syntaxes below, and illustrate
+    them using the Mona Lisa example above.</p>
 
-    Turtle Syntax
+    <h3>N-Triples</h3>
 
-    Namespace prefixes</p>
+    <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
+    can be represented in N-Triples 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/#bob&gt; &lt;http://example.org/#birth-date&gt; "1990-07-04"^^&lt;http://www.w3.org/2001/XMLSchema#date&gt;.
+&lt;http://example.org/#da-vinci&gt; &lt;http://example.org/#created&gt; &lt;http://example.org/#the-mona-lisa&gt;.
+&lt;http://example.org/#the-mona-lisa&gt; &lt;http://example.org/#on-display-in&gt; &lt;http://example.org/#the-louvre&gt;.
+&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>
 
 </section>
 
 <section id="section-vocabulary">
 
-    <h2>RDF Vocabularies</h2>
+    <h2>RDF Data and Vocabularies</h2>
 
     <p>