--- a/rdf-turtle/index.html Wed Apr 25 17:58:55 2012 -0700
+++ b/rdf-turtle/index.html Wed Apr 25 18:01:46 2012 -0700
@@ -989,7 +989,8 @@
<p>For example,</p>
- <pre class="example untested"><script type="text/turtle">(1 2.0 3E1) :p "w" .</script></pre>
+ <pre class="example untested"><script type="text/turtle">@prefix : <http://example.org/stuff/1.0/> .
+(1 2.0 3E1) :p "w" .</script></pre>
<p>is syntactic sugar for (noting that the blank nodes <code>b0</code>, <code>b1</code> and <code>b2</code> do not occur anywhere else in the RDF graph):</p>
@@ -1004,7 +1005,8 @@
<p>RDF collections can be nested and can involve other syntactic forms:</p>
- <pre class="example untested">(1 [:p :q] ( 2 ) ) .</pre>
+ <pre class="example untested">@prefix : <http://example.org/stuff/1.0/> .
+(1 [:p :q] ( 2 ) ) .</pre>
<p>is syntactic sugar for:</p><pre class="example untested"><script type="text/turtle">@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
_:b0 rdf:first 1 ;
@@ -1060,8 +1062,7 @@
<h2>Turtle in HTML</h2>
<p>HTML ([[!HTML5]]) <code>script</code> <a href="http://dev.w3.org/html5/spec/Overview.html#scripting-1">tags</a>
can be used to embed data blocks in documents. Turtle can be easily embedded in HTML this way.</p>
- <pre class="example">
-<script type="text/turtle">
+ <pre class="example"><script type="text/turtle">
@prefix dc: <http://purl.org/dc/terms/> .
@prefix frbr: <http://purl.org/vocab/frbr/core#> .
@@ -1088,8 +1089,7 @@
Like JavaScript, Turtle authored for HTML (<code>text/html</code>) can break when used in an XHTML
(<code>application/xhtml+xml</code>). The solution is the same one used for JavaScript.
</p>
- <pre class="example">
-<script type="text/turtle">
+ <pre class="example"><script type="text/turtle">
<strong># <![CDATA[</strong>
@prefix frbr: <http://purl.org/vocab/frbr/core#> .
@@ -1107,8 +1107,7 @@
It is possible to display the contents of script tags containing Turtle for use in examples or other guides
using Cascading Style Sheets Selectors Level 3 ([[SELECT]]).
</p>
-<pre class="example">
-script[type='text/turtle'] {
+<pre class="example">script[type='text/turtle'] {
display:block;
white-space: pre;
font-family: monospace;
@@ -1144,7 +1143,7 @@
N-Triples triples are a sequence of RDF terms representing the subject, predicate and object of an RDF Triple. This sequence is terminated by a '.' and a new line (optional at the end of a document).
</p>
- <pre class="example"><script type="text/plain">
+ <pre class="example"><script type="application/n-triples">
_:subject1 <http://an.example/predicate1> "object1" .
_:subject2 <http://an.example/predicate2> "object2" .
</script></pre>