Repeat example 2, except write using different syntax forms.
authorAndy Seaborne <andy.seaborne@apache.org>
Sun, 01 Sep 2013 13:46:45 +0100
changeset 1045 f5afa2470413
parent 1044 baeb5676942b
child 1046 0c7ae7ba2bb3
Repeat example 2, except write using different syntax forms.
trig/index.html
--- a/trig/index.html	Sat Aug 31 16:12:12 2013 +0100
+++ b/trig/index.html	Sun Sep 01 13:46:45 2013 +0100
@@ -232,15 +232,51 @@
     { 
        _:a foaf:name "Bob" . 
        _:a foaf:mbox <mailto:[email protected]> .
+       _:a foaf:knows _:b .
     }
  
 <http://example.org/alice>
     { 
-       _:a foaf:name "Alice" . 
-       _:a foaf:mbox <mailto:[email protected]> .
+       _:b foaf:name "Alice" . 
+       _:b foaf:mbox <mailto:[email protected]> .
     }				</script>
 				</pre>
+
+                <p>TriG provides various alternative ways to write graphs
+and triples, giving the data writer choices for clarity:
+                </p>
+                
+                <pre class="example">
+				<script type="application/trig"># This document contains a same data as the
+previous example.
+
[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.
+<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 <http://example.org/bob> 
+{ 
+   [] foaf:name "Bob" ; 
+      foaf:mbox <mailto:[email protected]> ;
+      foaf:knows _:b .
+}
+ 
+GRAPH <http://example.org/alice>
+{ 
+    _:b foaf:name "Alice" ;
+        foaf:mbox <mailto:[email protected]> 
+}</script>
+                </pre>
+
+
 			</section>
+
 			<section id="other-terms">
 				<h3>Other Terms</h3>
 				<p>All other terms and directives come from Turtle.</p>
@@ -250,6 +286,9 @@
 				</section>
 			</section>
 		</section>
+
+
+
         <section id="conformance">
         	<p>This specification defines conformance criteria for:</p>
         			<ul>
@@ -510,6 +549,9 @@
 	        <div>
 	          <p>Notes:</p>
 	          <ol>
+                <li>A blank node label represents the same blank node
+                  throughout the TriG document.
+                </li>
 	            <li>
 		          Keywords in single quotes (
                   '<code class="grammar-literal">@base</code>',