started adding some text about trig and turtle
authorSandro Hawke <sandro@hawke.org>
Wed, 09 May 2012 12:06:34 -0400
changeset 321 a62faa5be59b
parent 320 77e786f0e533
child 322 95fa9c04da8e
child 326 a7d53fc97cfd
started adding some text about trig and turtle
rdf-spaces/index.html
--- a/rdf-spaces/index.html	Wed May 09 09:19:49 2012 -0400
+++ b/rdf-spaces/index.html	Wed May 09 12:06:34 2012 -0400
@@ -328,40 +328,71 @@
 <section id="syntax">
   <h2>Dataset Languages</h2>
 
+  <p>This section contains specifications of languages for serializing
+  datasets.  N-Quads documents and TriG documents have identical
+  semantics, since they each are just serializations of the datasets
+  and therefore follow <a href="#semantics"
+  class="sectionRef"></a>.</p>
+
   <section>
     <h3>N-Quads</h3>
 
+    <p>The syntax of N-Quads is the same as the syntax of N-Triples,
+    except that a fourth term, identifying an RDF space, may
+    optionally included on each line, after the "object" term.</p>
+
+    <pre class="example">&lt;http://example.org/subject> &lt;http://example.org/predicate> &lt;http://example.org/object1>.
+&lt;http://example.org/subject> &lt;http://example.org/predicate> &lt;http://example.org/object2>.
+&lt;http://example.org/subject> &lt;http://example.org/predicate> &lt;http://example.org/object1> &lt;http://example.org/space1> .
+&lt;http://example.org/subject> &lt;http://example.org/predicate> &lt;http://example.org/object1> &lt;http://example.org/space2>.</pre>
+
+    <p>This example shows a <a>quadset</a> consisting of two triples
+    and two <a>quads</a>.  The quads both use the same triple, but
+    express the fact that is is in two spaces, "space1" and
+    "space2".</p>
+
+    <p class="issue">Can blank node labels be used as space names?</p>
+
+    <p>@@@ grammar, etc, based of Turtle spec</p>
+
   </section>
 
 
   <section>
     <h3>TriG</h3>
 
-  </section>
-
-
-  <section>
-    <h3>Turtle in HTML</h3>
-
-    <div class="note">
-      <p>This is higly speculative.  An interesting idea.</p>
+    <p>The syntax of TriG is the same as the syntax of Turtle except
+    that (name, graph) pairs can be specified by giving an option
+    GRAPH keyword, a "name" term, and a nested Turtle graph expression
+    in curly braces.</p>
 
-      <p>The key challenge is: can we get everyone to agree that when
-      the script tag has an id attribute, those contents are
-      <em>not</em> asserted?  Or maybe we need something like
-      class="unasserted"...  but do we have the right to say either of
-      those things?  Maybe in the Turtle spec...</p>
-    </div>
-    
-    <p>When text/turtle is used inside HTML script tags, if the script
-    tag has an id attribute, then that content goes into a named graph
-    (with its name being that section URL).  The rest goes into the
-    default graph.</p>
+    <pre class="example">@prefix :eg &lt;http://example.org/>.
+eg:subject eg:predicate eg:object1.
+eg:subject eg:predicate eg:object2.
+eg:space1 { eg:subject eg:predicate eg:object1. }
+eg:space2 { eg:subject eg:predicate eg:object1. }</pre>
+
+    <p>This example shows the same dataset as the N-Quads example.</p>
+
+    <p class="issue">Are braces around default-graph triples required,
+    optional, or disallowed?
+    </p>
+
+    <p class="issue">Is the name prefixed by a keyword?  If so, is the
+    keyword "@graph" or "GRAPH">
+    </p>
+
+    <p class="issue">Are blank node labels scoped to the document, the
+    curly-brace expression, the space label, or the space?
+    </p>
+
+    <p class="issue">Can blank node labels be used as space names?</p>
+
+    <p>@@@ grammar, etc, based of Turtle spec</p>
 
   </section>
 
 
-
 </section>
 
 <section>
@@ -727,17 +758,15 @@
 <section>
   <h2>Issues</h2>
 
-  <p>Do the named graphs in a dataset include all the triples in the
-  spaces with those names, or only some of them?  Aka partial-graph or
-  complete-graph semantics.</p>
+  <p class="issue">Do the named graphs in a dataset include all the
+  triples in the spaces with those names, or only some of them?  Aka
+  partial-graph or complete-graph semantics.</p>
 
-  <p>Can blank nodes be shared between spaces?</p>
+  <p class="issue">What do we do about RDF reification.  Should we try
+  to fix it to be talking about spaces?</p>
 
-  <p>What do we do about RDF reification.  Should we try to fix it to
-  be talking about spaces?</p>
-
-  <p>How should we talk about change-over-time?  The archiving example
-  gets into it right now.</p>
+  <p class="issue">How should we talk about change-over-time?  The
+  archiving example gets into it right now.</p>
   
 
 </section>
@@ -746,7 +775,7 @@
 <section class="appendix informative" id="changes">
   <h2>Changes</h2>
   <ul>
-    <li>2012-05-09: Renamed "layers" as "spaces"; some word-smithing in Concepts and the Abstract</li>
+    <li>2012-05-09: Renamed "layers" as "spaces"; some word-smithing in Concepts and the Abstract; removed "Turtle in HTML" as a dataset syntax; added some text about trig and nquads.</li>
     <li>2012-05-02: Removed obsolete text from the introduction, removed the section on datasets borrowed from RDF Concepts, and added many entries to Concepts (and renamed it from Terminology).</li>
     <li>2012-05-01: Starting with a little text from RDF Concepts, a few ideas, and the text from <a href="http://www.w3.org/2011/rdf-wg/wiki/Layers">Layers</a></li>
   </ul>