- Remove N3 from introduction
authorGavin Carothers <gavin@carothers.name>
Fri, 30 Mar 2012 09:22:18 -0700
changeset 248 15dd128775ec
parent 247 e9c09e1e985e
child 249 7f93978f04a9
- Remove N3 from introduction
+ Add AWESOME example from Leigh Dodds
rdf-turtle/index.html
--- 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#> .
[email protected] rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
[email protected] foaf: <http://xmlns.com/foaf/0.1/> .
[email protected] 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>