Add missing prefix definitions, and update some examples that were using undefined prefixes.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Sat, 06 Aug 2011 11:27:18 -0700
changeset 121 04c784a68f26
parent 117 e34a1d48155d
child 122 be959ad4f9f9
Add missing prefix definitions, and update some examples that were using undefined prefixes.
spec/latest/index.html
--- a/spec/latest/index.html	Fri Aug 05 08:12:57 2011 -0700
+++ b/spec/latest/index.html	Sat Aug 06 11:27:18 2011 -0700
@@ -339,6 +339,10 @@
   Examples may contain references to existing vocabularies and use abbreviations in CURIEs and source code. The following is a list of all vocabularies and their abbreviations, as used in this document:
 </p>
 <ul>
+  <li>The <a href="http://purl.org/dc/terms/">Dublin Core</a>
+  vocabulary (abbreviation: <code>dc</code>, e.g., <code>dc:title</code>)</li>
+  <li>The <a href="http://xmlns.com/foaf/0.1/">Friend of a Friend</a>
+  vocabulary (abbreviation: <code>foaf</code>, e.g., <code>foaf:knows</code>)</li>
   <li>The <a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#">RDF</a>
   vocabulary (abbreviation: <code>rdf</code>, e.g., <code>rdf:type</code>)</li>
   <li>The <a href="http://www.w3.org/2001/XMLSchema#">XSD</a>
@@ -747,7 +751,8 @@
 <!--
 {****
   "@context": 
-  { 
+  {
+    ...
     "@coerce": 
     {
       "@iri": "foaf:homepage"
@@ -889,7 +894,8 @@
 <!--
 {****
   "@context": 
-  { 
+  {
+    "dc":  "http://purl.org/dc/terms/",
     "xsd": "http://www.w3.org/2001/XMLSchema#"
     "@coerce": 
     {
@@ -1167,6 +1173,10 @@
 <pre class="example" data-transform="updateExample">
 <!--
 {
+   "@coerce": {
+    "dc":  "http://purl.org/dc/terms/",
+    "ex":  "http://example.org/"
+   },
    "@subject": 
    [{
       "@subject": "http://example.org/library",
@@ -1232,7 +1242,7 @@
    "@context": 
    {
       "ex": "http://example.org/vocab#",
-      "dc": "http://purl.org/dc/elements/1.1/"
+      "dc":  "http://purl.org/dc/terms/",
    }
    "@subject": "http://example.org/library",
    "@type": "ex:Library",
@@ -2365,6 +2375,9 @@
 <pre class="example" data-transform="updateExample">
 <!--
 {
+  "@coerce": {
+    "foaf": "http://xmlns.com/foaf/0.1/"
+  },
   "@subject": 
   [
     {
@@ -2387,11 +2400,11 @@
 [
   {
     "@subject": "http://example.org/people#john",
-    "@type": "foaf:Person"
+    "@type": "http://xmlns.com/foaf/0.1/Person"
   },
   {
     "@subject": "http://example.org/people#jane",
-    "@type": "foaf:Person"
+    "@type": "http://xmlns.com/foaf/0.1/Person"
   }
 ]
 -->
@@ -2550,26 +2563,29 @@
 
 <pre class="example" data-transform="updateExample">
 <!--
-[
- {
-   "@subject": "_:bnode1",
-   "@type": "foaf:Person",
-   "foaf:homepage": "http://example.com/bob/",
-   "foaf:name": "Bob"
- },
- {
-   "@subject": "_:bnode2",
-   "@type": "foaf:Person",
-   "foaf:homepage": "http://example.com/eve/",
-   "foaf:name": "Eve"
- },
- {
-   "@subject": "_:bnode3",
-   "@type": "foaf:Person",
-   "foaf:homepage": "http://example.com/manu/",
-   "foaf:name": "Manu"
- }
-]
+{
+  "@context": { "foaf": "http://xmlns.com/foaf/0.1/"},
+  "@subject": [
+   {
+     "@subject": "_:bnode1",
+     "@type": "foaf:Person",
+     "foaf:homepage": "http://example.com/bob/",
+     "foaf:name": "Bob"
+   },
+   {
+     "@subject": "_:bnode2",
+     "@type": "foaf:Person",
+     "foaf:homepage": "http://example.com/eve/",
+     "foaf:name": "Eve"
+   },
+   {
+     "@subject": "_:bnode3",
+     "@type": "foaf:Person",
+     "foaf:homepage": "http://example.com/manu/",
+     "foaf:name": "Manu"
+   }
+  ]
+}
 -->
 </pre>