edited syntax example description: same graph
authorGuus Schreiber <guus.schreiber@vu.nl>
Sat, 30 Nov 2013 01:59:57 +0100
changeset 1433 e399fdffa188
parent 1432 043b8cf7aa52
child 1434 ade3902d4a6a
edited syntax example description: same graph
rdf-primer/index.html
--- a/rdf-primer/index.html	Fri Nov 29 22:28:57 2013 +0100
+++ b/rdf-primer/index.html	Sat Nov 30 01:59:57 2013 +0100
@@ -756,8 +756,6 @@
   redesign</figcaption>
 </figure>
 
-
-
 <p>In case of language-tagged strings the tag
 appears directly after the string, separated by a <code>@</code>
 symbol, e.g. <code>"Leonard de Vinci"@fr</code>.</p>
@@ -852,7 +850,15 @@
 
     <p>The two triples specified on lines 30-32 are not part of any
     named graph. Together they form the default graph of this RDF
-    dataset.</p> 
+    dataset.</p>
+
+    <p>The figure below shows the triples resulting from this example.</p>
+
+    <figure id="abstract-graph-multiple">
+      <img src="" width="75%"
+           alt="Triples resulting from the TriG example">
+      <figcaption>Triples resulting from the TriGurtle example. @@ todo</figcaption>
+    </figure>
 
     </section>
 
@@ -860,22 +866,29 @@
 
     <h3>Other concrete syntaxes for RDF</h3>
 
-    Next to Turtle/TriG there are a number of other concrete syntaxes
+    <p>Next to Turtle/TriG there are a number of other concrete syntaxes
     for RDF data. These syntaxes were developed to cater for specific
-    application and/or usage needs:</p>
+    application and/or usage needs. The examples given for each of
+    these syntaxes correspond to the same graph (i.e., the same set of
+    triples) as the Turtle (single-graph, see Fig. <a
+    href="#abstract-graph-single">4</a>) and 
+    TriG (multi-graph, see Fig. <a href="#abstract-graph-single">5</a>) examples. </p>
 
     <dl>
       <dt>RDFa</dt>
-      <dd>RDFa [[RDFA-PRIMER]] (<a href="#subsection-rdfa">example</a>) 
+      <dd>RDFa [[RDFA-PRIMER]] (<a href="#rdfa-example">single-graph example</a>) 
       can be used to embed RDF data within
       HTML documents. This enables for example search engines to aggregate
       this data when crawling the web and use it to enrich search results, e.g.
       <a href="http://schema.org">schema.org</a> 
-      and <a href="https://support.google.com/webmasters/answer/99170?hl=en">Rich Snippets</a>.
+      and <a
+      href="https://support.google.com/webmasters/answer/99170?hl=en">Rich
+      Snippets</a>. 
       </dd>
 
       <dt>JSON-LD</dt>
-      <dd>JSON-LD [[JSON-LD]] (<a href="#subsection-jsonld">example</a>) 
+      <dd>JSON-LD [[JSON-LD]] (<a href="#json-ld-example-single">single-graph
+      example</a>) (<a href="#json-ld-example-multiple">multiple-graphs example</a>)  
       provides a JSON syntax for RDF graphs and datasets.
       JSON-LD can be used to transform JSON documents to RDF with
       minimal changes. JSON-LD offers universal identifiers for
@@ -886,7 +899,8 @@
       through the use of the <code>@graph</code> keyword. </dd>
 
       <dt>N-Triples</dt>
-      <dd>N-Triples [[N-TRIPLES]] ( <a href="#subsection-ntriples">example</a>)
+      <dd>N-Triples [[N-TRIPLES]] ( <a
+      href="#n-triples-example">single-graph example</a>)
       provides a simple line-based, plain text way for serializing RDF
       graphs. Each line represents 
       an RDF triple. Its subject, predicate and object are separated
@@ -895,14 +909,15 @@
       with line-oriented text processing tools. </dd>
 
       <dt>N-Quads</dt>
-      <dd>N-Quads [[N-QUADS]] (<a href="#subsection-nquads">example</a>) is
+      <dd>N-Quads [[N-QUADS]] (<a href="#n-quads-example">multiple-graphs example</a>) is
       a simple extension to N-Triples enabling the exchange of RDF
       datasets. N-Quads adds a fourth 
       element to each line, capturing the graph IRI of the triple
       described on that line. </dd>
 
       <dt>RDF/XML</dt>
-      <dd>RDF/XML [[RDF-SYNTAX-GRAMMAR]] (<a href="#subsection-rdf-xml">example</a>)
+      <dd>RDF/XML [[RDF-SYNTAX-GRAMMAR]] (<a
+      href="#rdf-xml-example">single-graph example</a>)
       provides an XML syntax for RDF
       graphs. RDF/XML was the only normative syntax for RDF when RDF
       1.0 was published in 2004. </dd>
@@ -1017,9 +1032,9 @@
 different concrete syntaxes of RDF are briefly described. Examples are
 given only of the Turtle and TriG syntax. This appendix lists
 corresponding examples for the other syntaxes listed. The
-single-graph examples encode the same information as the <a
+single-graph examples encode the same graph as the <a
    href="#turtle-example">Turtle 
-example</a>; the mutiple-graphs examples encode the same information as the <a href="#trig-example">Trig
+example</a>; the mutiple-graphs examples encode the same graph as the <a href="#trig-example">Trig
 example</a>. </p>
 
 
@@ -1060,7 +1075,7 @@
 
       Single-graph example:
 
-      <pre class="example" id="json-ld-example-signle">
+      <pre class="example" id="json-ld-example-single">
 01    {
 02      "@context": {
 03        "foaf": "http://xmlns.com/foaf/0.1/",