Blank nodes and literals restructed
authorGavin Carothers <>
Wed, 20 Jun 2012 14:14:53 -0700
changeset 468 977414cb9560
parent 467 eb7170058245
child 469 22b1fb45bca0
Blank nodes and literals restructed
--- a/rdf-turtle/index.html	Wed Jun 20 14:02:17 2012 -0700
+++ b/rdf-turtle/index.html	Wed Jun 20 14:14:53 2012 -0700
@@ -311,16 +311,17 @@
 <> foaf:name "Spiderman" .</script></pre>
+				<section id="turtle-literals">
+				  <h3>Quoted Literals</h3>
-				  Literals in Turtle have a lexical form followed by a language tag, a datatype IRI, or neither.
+				  Quoted Literals (Grammar production <a href="#grammar-production-RDFLiteral">RDFLiteral</a>) in Turtle have a lexical form followed by a language tag, a datatype IRI, or neither.
 				  The representation of the lexical form consists of a delimiting <code>"</code>, a sequence of characters matching the regular expression <code>[^\"\\\n\r]</code> or <a href="#numeric">numeric escape sequence</a> or <a href="#string">string escape sequence</a>, and a final delimiting <code>"</code>.
 				  The corresponding <a href="../rdf-concepts/index.html#dfn-lexical-form">RDF lexical form</a> is the characters between the <code>""</code>s, after processing any escape sequences.
 				  If present, the <a href="../rdf-concepts/index.html#dfn-language-tagged-string">language tag</a> is preceded by a <code>@</code>.
 				  If there is no language tag, there may be a <a href="../rdf-concepts/index.html#dfn-datatype-URI">datatype IRI</a>, preceeded by <code>^^</code>. The datatype IRI in Turtle may be written using either an <a href="#iri-summary">absolute IRI, a relative IRI or prefixed name</a>. If there is no datatype IRI and no language tag, the datatype is <code>xsd:string</code>.
-				<section id="turtle-literals">
-				  <h3>Other Lexical Representations in Turtle</h3>
 				  Besides the <code>"</code> delimited literal there are three other representations of the lexical form:
@@ -343,7 +344,7 @@
 				<section id="abbrev">
-				<h3 >Representing Numbers in Turtle</h3>
+				<h3>Numbers</h3>
 				<p>Numbers can be written with lexical form and datatype (Example: <code>"-5.0"^^xsd:decimal</code>) but Turtle has syntax for writing integer values, arbitrary precision decimal values, double precision floating point values and boolean values.</p>
@@ -396,7 +397,7 @@
-				<h3>Representing Booleans in Turtle</h3>
+				<h3>Booleans</h3>
 				<p>Boolean values may be written as either <code>true</code> or <code>false</code> (case-sensitive) and represent RDF literals with the datatype <a href="">xsd:boolean</a>.</p>
 				<pre class="example"><script type="text/turtle">@prefix : <> .
@@ -425,7 +426,7 @@
 _:alice foaf:knows _:bob .
 _:bob foaf:knows _:alice .
+	</section>
 				<section id="unlabeled-bnodes">
 				  <h3>Nesting Unlabeled Blank Nodes in Turtle</h3>
@@ -434,7 +435,7 @@
 				    That subject or object is a fresh RDF blank node.
 				    This blank node also serves as the subject of the triples produced by matching the <a href="#grammar-production-predicateObjectList">predicateObjectList</a> production embedded in a blankNodePropertyList.
 				    The generation of these triples is described in <a href="#predicate-lists">Predicate  Lists</a>.
-				    Blank nodes are also allocated for <a href="#collections">Collections in Turtle</a> (below).
+				    Blank nodes are also allocated for <a href="#collections">collections</a> described below.
 				  <pre class="example"><script type="text/turtle">@prefix foaf: <> .
@@ -474,9 +475,8 @@
 				<div style="clear:both;"></div>
-			</section>
 				<section id="collections">
-				<h3>Collections in Turtle</h3>
+				<h3>Collections</h3>
 				  RDF provides a <a href="">Collection</a> [[RDF-MT]] structure for lists of RDF nodes.