Fix compaction example
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Mon, 19 Mar 2012 21:30:28 +0800
changeset 388 b990c7443f58
parent 387 c203966412cf
child 389 438505c09b3a
Fix compaction example

The example in the Compaction section used an invalid context as the @context key was missing.
spec/latest/json-ld-api/index.html
spec/latest/json-ld-syntax/index.html
--- a/spec/latest/json-ld-api/index.html	Sun Mar 18 20:47:04 2012 +0800
+++ b/spec/latest/json-ld-api/index.html	Mon Mar 19 21:30:28 2012 +0800
@@ -1129,10 +1129,12 @@
 <pre class="example" data-transform="updateExample">
 <!--
 {
-  "name": "http://xmlns.com/foaf/0.1/name",
-  "homepage": {
-    "@id": "http://xmlns.com/foaf/0.1/homepage",
-    "@type": "@id"
+  "@context": {
+    "name": "http://xmlns.com/foaf/0.1/name",
+    "homepage": {
+      "@id": "http://xmlns.com/foaf/0.1/homepage",
+      "@type": "@id"
+    }
   }
 }
 -->
--- a/spec/latest/json-ld-syntax/index.html	Sun Mar 18 20:47:04 2012 +0800
+++ b/spec/latest/json-ld-syntax/index.html	Mon Mar 19 21:30:28 2012 +0800
@@ -2188,10 +2188,12 @@
 <pre class="example" data-transform="updateExample">
 <!--
 {
-  "name": "http://xmlns.com/foaf/0.1/name",
-  "homepage": {
-    "@id": "http://xmlns.com/foaf/0.1/homepage",
-    "@type": "@id"
+  "@context": {
+    "name": "http://xmlns.com/foaf/0.1/name",
+    "homepage": {
+      "@id": "http://xmlns.com/foaf/0.1/homepage",
+      "@type": "@id"
+    }
   }
 }
 -->