--- a/rdf-turtle/index.html Wed Mar 28 11:02:31 2012 -0400
+++ b/rdf-turtle/index.html Fri Mar 30 09:22:18 2012 -0700
@@ -154,12 +154,27 @@
<p>
This document defines two syntaxes for <a href="../rdf-concepts/index.html">RDF</a> ([[!RDF-CONCEPTS]]), Turtle, the Terse RDF Triple Language, and N-Triples.
- N-Triples is a sublanguage of Turtle, which in turn borrows much of its syntax from <a href="http://www.w3.org/DesignIssues/Notation3">Notation 3</a> ([[N3]]).
+ N-Triples is a sublanguage of Turtle intended for machines.
</p>
<p>
Turtle and N-Triples documents are textual representation of a RDF graphs.
- A Turtle document consists parsing directives and triples.
+ </p>
+ <pre class="example"><script type="text/turtle">@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix rel: <http://www.perceive.net/schemas/relationship/> .
+
+<http://example.org/#green-goblin>
+ rel:enemyOf <http://example.org/#spiderman> ;
+ a foaf:Person ;
+ foaf:name "Green Goblin" .
+
+<http://example.org/#spiderman>
+ rel:enemyOf <http://example.org/#green-goblin> ;
+ a foaf:Person ;
+ foaf:name "Spiderman" .</script></pre>
+ <p>
An N-Triples document contains no parsing directives.
Comments in either language may be given after a <code>#</code> that is not part of another lexical token and continue to the end of the line.
</p>