Replace last remaining Turtle representation of an example with a table representation
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Mon, 01 Oct 2012 12:46:40 +0200
changeset 892 2232a3bd1e07
parent 891 be6c9e393b30
child 893 167876b4db1a
Replace last remaining Turtle representation of an example with a table representation
spec/latest/json-ld-syntax/index.html
--- a/spec/latest/json-ld-syntax/index.html	Mon Oct 01 12:26:04 2012 +0200
+++ b/spec/latest/json-ld-syntax/index.html	Mon Oct 01 12:46:40 2012 +0200
@@ -1851,6 +1851,7 @@
       "@container": "@list"
     }****
   },
+  "@id": "http://example.com/people#john",
   "name": "John Smith",
   "age": ****"41"****,
   "homepage":
@@ -1862,18 +1863,42 @@
 -->
 </pre>
 
-<p>The example above would generate the following Turtle:</p>
-
-<pre class="example" data-transform="updateExample">
-<!--
[email protected] xsd: <http://www.w3.org/2001/XMLSchema#> .
-
-[ foaf:name "John Smith";
-  foaf:age  "41"^^xsd:integer;
-  foaf:homepage ( <http://personal.example.org/> <http://work.example.com/jsmith/> )
-] .
--->
-</pre>
+<p>The markup shown above would generate the following data. The data has no inherent order
+  except for the values the <code>http://xmlns.com/foaf/0.1/homepage</code> property
+  which represent an ordered list.</p>
+
+<table class="example">
+<thead>
+  <th>Subject</th>
+  <th>Property</th>
+  <th>Object</th>
+  <th>Datatype</th>
+</thead>
+<tbody>
+<tr>
+  <td>http://example.com/people#john</td>
+  <td>http://xmlns.com/foaf/0.1/name</td>
+  <td>John Smith</td>
+  <td>&nbsp;</td>
+</tr>
+<tr>
+  <td>http://example.com/people#john</td>
+  <td>http://xmlns.com/foaf/0.1/age</td>
+  <td>41</td>
+  <td>http://www.w3.org/2001/XMLSchema#integer</td>
+</tr>
+<tr>
+  <td rowspan="2">http://example.com/people#john</td>
+  <td rowspan="2">http://xmlns.com/foaf/0.1/homepage</td>
+  <td>http://personal.example.org/</td>
+  <td>&nbsp;</td>
+</tr>
+<tr>
+  <td>http://work.example.com/jsmith/</td>
+  <td>&nbsp;</td>
+</tr>
+</tbody>
+</table>
 
 <p>Terms may also be defined using <tref title="absolute iri">absolute IRIs</tref> or <tref title="compact_iri">compact IRIs</tref>.
   This allows coercion rules to be applied to keys which are not represented as a simple <tref>term</tref>.