--- a/rdf-turtle/index.html Fri Jun 10 16:18:01 2011 -0700
+++ b/rdf-turtle/index.html Fri Jun 10 16:27:13 2011 -0700
@@ -761,6 +761,130 @@
rdf:rest rdf:nil .
_:b3 rdf:rest rdf:nil .</pre>
</section>
+ <section id="sec-identifiers">
+ <h2>Identifiers for the Turtle Language</h2>
+ <p>The URI that identifies the Turtle language is:<br />
+ <code>http://www.w3.org/2008/turtle#turtle</code>
+ </p>
+
+ <p>The XML (Namespace name, Local name) pair that identifies
+ the Turtle language is:<br />
+ Namespace: <code>http://www.w3.org/2008/turtle#</code><br />
+ Local name: <code>turtle</code><br />
+ The suggested namespace prefix is <code>ttl</code> (informative)
+ which would make this <code>ttl:turtle</code> as an XML QName.
+ </p>
+
+ </section>
+ <section id="sec-conformance">
+ <h2>Conformance</h2>
+ <p>Systems conforming to Turtle MUST pass all the following test cases:</p>
+
+ <ol>
+ <li>The <a href="http://www.w3.org/TR/2004/REC-rdf-testcases-20040210/#ntrip_tests">N-Triples tests</a> in the
+ <a href="http://www.w3.org/TR/2004/REC-rdf-testcases-20040210/">RDF Test Cases</a> W3C Recommendation.</li>
+
+ <li>The <a href="tests/">Turtle Test Suite</a>
+ <br />
+ <p>Passing these tests means:</p>
+ <ol>
+ <li>All the <code>test-n.ttl</code> tests MUST generate equivalent RDF
+ triples to those given in the corresponding <code>test-n.out</code>
+ N-Triples file.</li>
+ <li>All the <code>bad-n.ttl</code> tests MUST NOT generate RDF triples.</li>
+ </ol>
+ </li>
+ </ol>
+ </section>
+ <section id="sec-mime">
+ <h2>Media Type and Content Encoding</h2>
+
+ <p>The media type of Turtle is <code>text/turtle</code>.
+ The content encoding of Turtle content is always UTF-8. Charset
+ parameters on the mime type are required until such time as the
+ <tt>text/</tt> media type tree permits UTF-8 to be sent without a
+ charset parameter. See <a href="#sec-mediaReg">B. Internet Media
+ Type, File Extension and Macintosh File Type</a> for the media type
+ registration form.
+ </p>
+ </section>
+
+
+ <section id="sec-diff-ntriples">
+ <h2>Turtle compared to N-Triples (Informative)</h2>
+ <p class="note">All of the parts of Turtle that talk about being derived from N-Triples need to change if this document also specifies N-Triples.</p>
+ <p>Turtle adds the following syntax to N-Triples:</p>
+
+ <ol>
+ <li>Whitespace restrictions removed</li>
+ <li>Text content-encoding changed from ASCII to UTF-8</li>
+
+ <li>Three additional string syntaxes: <a href="#prod-turtle2-STRING_LITERAL2">STRING_LITERAL2</a>, <a href="#prod-turtle2-STRING_LITERAL_LONG1">STRING_LITERAL_LONG1</a>, <a href="#prod-turtle2-STRING_LITERAL_LONG2">STRING_LITERAL_LONG2</a></li>
+ <li><code><a href="#term-turtle2-BASE">@base</a></code> directive for setting a base IRI</li>
+ <li><code><a href="#term-turtle2-PREFIX">@prefix</a></code> directive for assigning namespace prefixes</li>
+
+ <li><a href="#prod-turtle2-PrefixedName">Prefixed names</a></li>
+ <li><a href="#prod-turtle2-objectList">Object lists</a> separated by <code>,</code></li>
+ <li><a href="#prod-turtle2-predicateObjectList">Predicate object lists</a> separated by <code>;</code></li>
+ <li><a href="#prod-turtle2-ANON">Unlabled blank nodes</a> indicated by <code>[]</code></li>
+
+ <li><code>rdf:type</code> shorthand <code>a</code></li>
+ <li><a href="#prod-turtle2-collection">RDF collection constructor</a> bound by <code>()</code>s</li>
+ <li><a href="#prod-turtle2-INTEGER">Decimal integer literals</a> of type <code>xsd:integer</code></li>
+
+ <li><a href="#prod-turtle2-DECIMAL">Decimal double literals</a> of type <code>xsd:double</code></li>
+ <li><a href="#prod-turtle2-DOUBLE">Decimal arbitrary length literals</a> of type <code>xsd:decimal</code></li>
+ <li><a href="#prod-turtle2-BooleanLiteral">Boolean literals</a> of type <code>xsd:boolean</code></li>
+ </ol>
+ </section>
+ <section id="sec-diff-n3">
+ <h2>Turtle compared to Notation 3 (Informative)</h2>
+
+ <p>Notation 3 (N3) triples are a superset of RDF triples.
+ In particular, N3 formulae (graphs) may be the subject or object of N3 triples.
+ For example here, the formula with <code>_:Bob a foaf:Person</code> is the object of another arc:</p>
+ <pre>_:Bob ex:said { _:Bob a foaf:Person } .</pre>
+
+ <p>Following is a partial list of syntactic features in N3 which are not in Turtle:</p>
+
+ <ol>
+ <li><code>{</code> ... <code>}</code></li>
+ <li><code>is</code> <code>of</code></li>
+
+ <li>paths like <code>:a.:b.:c</code> and <code>:a^:b^:c</code></li>
+ <li><code>@keywords</code></li>
+ <li><code>=></code> implies</li>
+ <li><code>=</code> equivalence</li>
+
+ <li><code>@forAll</code></li>
+ <li><code>@forSome</code></li>
+ <li><=</li>
+ </ol>
+ </section>
+ <section id="sec-diff-sparql">
+ <h2>Turtle compared to SPARQL (Informative)</h2>
+
+ <p>The <a href="http://www.w3.org/TR/2008/REC-rdf-sparql-query-20080115/">SPARQL Query Language for RDF</a> (<acronym title="SPARQL Protocol And RDF Query Language">SPARQL</acronym>) <a href="#ref-sparqlq">[SPARQLQ]</a> uses a Turtle/N3 style syntax for its <a href="../../../2009/sparql/docs/query-1.1/rq25#rTriplesBlock">TriplesBlock production</a>.
+ This production differs from the Turtle langage in that:
+ </p>
+
+ <ol>
+ <li>SPARQL permits RDF Literals as the subject of RDF triples (per <a href="../../../2009/sparql/docs/query-1.1/rq25#rGraphTerm">editor's draft</a>)</li>
+
+ <li>SPARQL permits variables (<code>?</code><em>name</em> or <code>$</code><em>name</em>) in any part of the triple of the form</li>
+ <li>Turtle allows <a href="#prod-turtle2-directive">prefix and base declarations</a> anywhere outside of a triple. In SPARQL, they are only allowed in the <a href="http://www.w3.org/TR/rdf-sparql-query/#rPrologue">Prologue</a> (at the start of the SPARQL query).</li>
+
+ </ol>
+
+ <p>For further information see the
+ <a href="http://www.w3.org/TR/2008/REC-rdf-sparql-query-20080115/#QSynIRI">Syntax for IRIs</a>
+ and <a href="http://www.w3.org/TR/2008/REC-rdf-sparql-query-20080115/#grammar">SPARQL Grammar</a>
+ sections of the SPARQL query document <a href="#ref-sparqlq">[SPARQLQ]</a>.
+ </p>
+ </section>
+
+
+
</body>
</html>