Repeat example 2, except write using different syntax forms.
--- 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:bob@oldcorp.example.org> .
+ _:a foaf:knows _:b .
}
<http://example.org/alice>
{
- _:a foaf:name "Alice" .
- _:a foaf:mbox <mailto:alice@work.example.org> .
+ _:b foaf:name "Alice" .
+ _:b foaf:mbox <mailto:alice@work.example.org> .
} </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.
+
+@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.
+<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:bob@oldcorp.example.org> ;
+ foaf:knows _:b .
+}
+
+GRAPH <http://example.org/alice>
+{
+ _:b foaf:name "Alice" ;
+ foaf:mbox <mailto:alice@work.example.org>
+}</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>',