Change back to < inside of script tags
authorGavin Carothers <gavin@carothers.name>
Tue, 03 Sep 2013 08:40:36 -0700
changeset 1057 6c5276c0b67a
parent 1056 60553e787d51
child 1058 ecb3c4e6cb4e
Change back to < inside of script tags

In HTML (NOT xml) the contents of script tags do not need to be escaped, normal Turtle/Trig works inside of them.
Editing the TriG or Turtle document with an XML not HTML editor is likely to cause a number of errors. oXygen XML should correctly treat the document as HTML
trig/index.html
--- a/trig/index.html	Tue Sep 03 08:35:51 2013 -0700
+++ b/trig/index.html	Tue Sep 03 08:40:36 2013 -0700
@@ -212,13 +212,13 @@
 				<p>A RDF Dataset may contain only a single graph.</p>
 				<pre class="example">
 					<script type="application/trig"># This document encodes one graph.
-@prefix ex: &lt;http://www.example.org/vocabulary#> .
-@prefix : &lt;http://www.example.org/exampleDocument#> .
+@prefix ex: <http://www.example.org/vocabulary#> .
+@prefix : <http://www.example.org/exampleDocument#> .
 
 :G1 { :Monica a ex:Person ;
               ex:name "Monica Murphy" ;      
-              ex:homepage &lt;http://www.monicamurphy.org> ;
-              ex:email &lt;mailto:monica@monicamurphy.org> ;
+              ex:homepage <http://www.monicamurphy.org> ;
+              ex:email <mailto:monica@monicamurphy.org> ;
               ex:hasSkill ex:Management ,
                           ex:Programming . } 
 					</script>
@@ -227,27 +227,27 @@
 				<pre class="example">
 				<script type="application/trig"># This document contains a default graph and two named graphs.
 
-@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix dc: &lt;http://purl.org/dc/terms/> .
-@prefix foaf: &lt;http://xmlns.com/foaf/0.1/> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix dc: <http://purl.org/dc/terms/> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
 
 # default graph
     { 
-      &lt;http://example.org/bob> dc:publisher "Bob" . 
-      &lt;http://example.org/alice> dc:publisher "Alice" .
+      <http://example.org/bob> dc:publisher "Bob" . 
+      <http://example.org/alice> dc:publisher "Alice" .
     }
 
-&lt;http://example.org/bob> 
+<http://example.org/bob> 
     { 
        _:a foaf:name "Bob" . 
-       _:a foaf:mbox &lt;mailto:bob@oldcorp.example.org> .
+       _:a foaf:mbox <mailto:bob@oldcorp.example.org> .
        _:a foaf:knows _:b .
     }
  
-&lt;http://example.org/alice>
+<http://example.org/alice>
     { 
        _:b foaf:name "Alice" . 
-       _:b foaf:mbox &lt;mailto:alice@work.example.org> .
+       _:b foaf:mbox <mailto:alice@work.example.org> .
     }				</script>
 				</pre>
 
@@ -259,27 +259,27 @@
 				<script type="application/trig"># This document contains a same data as the
 previous example.
 
-@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix dc: &lt;http://purl.org/dc/terms/> .
-@prefix foaf: &lt;http://xmlns.com/foaf/0.1/> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix dc: <http://purl.org/dc/terms/> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
 
 # default graph - no {} used.
-&lt;http://example.org/bob> dc:publisher "Bob" . 
-&lt;http://example.org/alice> dc:publisher "Alice" .
+<http://example.org/bob> dc:publisher "Bob" . 
+<http://example.org/alice> dc:publisher "Alice" .
 
 # GRAPH keyword to highlight a named graph
 # Abbreviation of triples using ;
-GRAPH &lt;http://example.org/bob> 
+GRAPH <http://example.org/bob> 
 { 
    [] foaf:name "Bob" ; 
-      foaf:mbox &lt;mailto:bob@oldcorp.example.org> ;
+      foaf:mbox <mailto:bob@oldcorp.example.org> ;
       foaf:knows _:b .
 }
  
-GRAPH &lt;http://example.org/alice>
+GRAPH <http://example.org/alice>
 { 
     _:b foaf:name "Alice" ;
-        foaf:mbox &lt;mailto:alice@work.example.org> 
+        foaf:mbox <mailto:alice@work.example.org> 
 }</script>
                 </pre>