+ forward refs in first example
authorEric Prud'hommeaux <eric@w3.org>
Wed, 13 Jun 2012 15:54:11 -0400
changeset 438 6a7497822973
parent 437 57f90d8354f4
child 439 4694671e16b9
+ forward refs in first example
rdf-turtle/index.html
--- a/rdf-turtle/index.html	Wed Jun 13 10:37:22 2012 -0700
+++ b/rdf-turtle/index.html	Wed Jun 13 15:54:11 2012 -0400
@@ -164,21 +164,32 @@
 			<p>
 			  A Turtle document is a textual representations of an RDF graph. The following Turtle document describes the relationship between Green Goblin and Spiderman. 
 			</p>
-			<pre class="example"><script type="text/turtle">@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+			<pre class="example"><script type="text/turtle">@base <http://example.org/> .
+@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 ;
+<#green-goblin>
+    rel:enemyOf <#spiderman> ;
+    a foaf:Person ;    # in the context of the Marvel universe
     foaf:name "Green Goblin" .
 
-<http://example.org/#spiderman>
-    rel:enemyOf <http://example.org/#green-goblin> ;
+<#spiderman>
+    rel:enemyOf <#green-goblin> ;
     a foaf:Person ;
     foaf:name "Spiderman", "Spïdermann"@de .</script></pre>
 
+			<p>
+			  This example introduces many of features of the Turtle language:
+<a href="#relative-iris">@base and Relative IRIs</a>,
+<a href="#turtleIRIs">@prefix and prefixed names</a>,
+<a href="#predicate-lists">predicate lists</a> separated by '<code>;</code>',
+<a href="#object-lists">objects lists</a> separated by '<code>,</code>',
+the token <code><a href="#IRIs">a</a></code>,
+and <a href="#literals">literals</a>.
+			</p>
+
     		<p>
 			  The Turtle grammar for <a href="#grammar-production-triples"><code>triples</code></a> is a subset of the <a href="http://www.w3.org/TR/2008/REC-rdf-sparql-query-20080115/">SPARQL Query Language for RDF</a> [[RDF-SPARQL-QUERY]] grammar for <a href="http://www.w3.org/TR/sparql11-query/#rTriplesBlock"><code>TriplesBlock</code></a>.
 			  The two grammars share production and terminal names where possible.
@@ -189,7 +200,6 @@
 			  The <a href="#sec-grammar">Turtle Grammar</a> and <a href="#sec-parsing">Parsing</a> sections define the construction of an RDF graph from a Turtle document.
 			</p>
 
-
 	</section>
 	<section id="triples">
 		<h2>Triples in Turtle</h2>