Test keyword aliasing when @vocab is used
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Sun, 09 Dec 2012 00:39:18 +0100
changeset 1012 cb2f80f0beb6
parent 1011 e6a52dc0ea84
child 1013 b51f1be1131f
Test keyword aliasing when @vocab is used

This addresses #186.
test-suite/tests/compact-0028-context.jsonld
test-suite/tests/compact-0028-in.jsonld
test-suite/tests/compact-0028-out.jsonld
test-suite/tests/compact-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0028-context.jsonld	Sun Dec 09 00:39:18 2012 +0100
@@ -0,0 +1,9 @@
+{
+  "@context": {
+    "@vocab": "http://xmlns.com/foaf/0.1/",
+    "homepage": {
+      "@type": "@id"
+    },
+    "uri": "@id"
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0028-in.jsonld	Sun Dec 09 00:39:18 2012 +0100
@@ -0,0 +1,12 @@
+{
+  "@context": {
+    "@vocab": "http://xmlns.com/foaf/0.1/",
+    "homepage": {
+      "@type": "@id"
+    },
+    "uri": "@id"
+  },
+  "uri": "http://me.markus-lanthaler.com/",
+  "name": "Markus Lanthaler",
+  "homepage": "http://www.markus-lanthaler.com/"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0028-out.jsonld	Sun Dec 09 00:39:18 2012 +0100
@@ -0,0 +1,12 @@
+{
+  "@context": {
+    "@vocab": "http://xmlns.com/foaf/0.1/",
+    "homepage": {
+      "@type": "@id"
+    },
+    "uri": "@id"
+  },
+  "uri": "http://me.markus-lanthaler.com/",
+  "name": "Markus Lanthaler",
+  "homepage": "http://www.markus-lanthaler.com/"
+}
--- a/test-suite/tests/compact-manifest.jsonld	Sat Dec 08 14:32:46 2012 -0800
+++ b/test-suite/tests/compact-manifest.jsonld	Sun Dec 09 00:39:18 2012 +0100
@@ -168,5 +168,11 @@
     "input": "compact-0027-in.jsonld",
     "context": "compact-0027-context.jsonld",
     "expect": "compact-0027-out.jsonld"
+  }, {
+    "@type": ["test:TestCase", "jld:CompactTest"],
+    "name": "Alias keywords and use @vocab",
+    "input": "compact-0028-in.jsonld",
+    "context": "compact-0028-context.jsonld",
+    "expect": "compact-0028-out.jsonld"
   }]
 }