Test that term definitions don't get inherited
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Tue, 12 Feb 2013 11:47:35 +0100
changeset 1225 93e8f09bbb3e
parent 1224 fe73f1d5f48d
child 1226 5dc427eae946
Test that term definitions don't get inherited
test-suite/tests/expand-0050-in.jsonld
test-suite/tests/expand-0050-out.jsonld
test-suite/tests/expand-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0050-in.jsonld	Tue Feb 12 11:47:35 2013 +0100
@@ -0,0 +1,8 @@
+{
+  "@context": {
+    "issue": { "@id": "http://example.com/issue/", "@type": "@id" },
+    "issue:raisedBy": { "@container": "@set" }
+  },
+  "issue": "/issue/1",
+  "issue:raisedBy": "Markus"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0050-out.jsonld	Tue Feb 12 11:47:35 2013 +0100
@@ -0,0 +1,6 @@
+[
+  {
+    "http://example.com/issue/": [ { "@id": "http://json-ld.org/issue/1" } ],
+    "http://example.com/issue/raisedBy": [ { "@value": "Markus" } ]
+  }
+]
--- a/test-suite/tests/expand-manifest.jsonld	Mon Feb 11 16:54:07 2013 -0500
+++ b/test-suite/tests/expand-manifest.jsonld	Tue Feb 12 11:47:35 2013 +0100
@@ -251,6 +251,11 @@
       "name": "Do not add @id to @value objects when expanding property generators",
       "input": "expand-0049-in.jsonld",
       "expect": "expand-0049-out.jsonld"
+    }, {
+      "@type": ["test:TestCase", "jld:ExpandTest"],
+      "name": "Context definitions using compact IRIs don't inherit the definitions of the prefix",
+      "input": "expand-0050-in.jsonld",
+      "expect": "expand-0050-out.jsonld"
     }
   ]
 }