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.
[email protected] ex: &lt;http://www.example.org/vocabulary#> .
[email protected] : &lt;http://www.example.org/exampleDocument#> .
[email protected] ex: <http://www.example.org/vocabulary#> .
[email protected] : <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:[email protected]> ;
+              ex:homepage <http://www.monicamurphy.org> ;
+              ex:email <mailto:[email protected]> ;
               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.
 
[email protected] rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
[email protected] dc: &lt;http://purl.org/dc/terms/> .
[email protected] foaf: &lt;http://xmlns.com/foaf/0.1/> .
[email protected] rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
[email protected] dc: <http://purl.org/dc/terms/> .
[email protected] 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:[email protected]> .
+       _:a foaf:mbox <mailto:[email protected]> .
        _:a foaf:knows _:b .
     }
  
-&lt;http://example.org/alice>
+<http://example.org/alice>
     { 
        _:b foaf:name "Alice" . 
-       _:b foaf:mbox &lt;mailto:[email protected]> .
+       _:b foaf:mbox <mailto:[email protected]> .
     }				</script>
 				</pre>
 
@@ -259,27 +259,27 @@
 				<script type="application/trig"># This document contains a same data as the
 previous example.
 
[email protected] rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
[email protected] dc: &lt;http://purl.org/dc/terms/> .
[email protected] foaf: &lt;http://xmlns.com/foaf/0.1/> .
[email protected] rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
[email protected] dc: <http://purl.org/dc/terms/> .
[email protected] 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:[email protected]> ;
+      foaf:mbox <mailto:[email protected]> ;
       foaf:knows _:b .
 }
  
-GRAPH &lt;http://example.org/alice>
+GRAPH <http://example.org/alice>
 { 
     _:b foaf:name "Alice" ;
-        foaf:mbox &lt;mailto:[email protected]> 
+        foaf:mbox <mailto:[email protected]> 
 }</script>
                 </pre>