Test @vocab-relative IRIs in term definitions
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Tue, 12 Feb 2013 12:14:34 +0100
changeset 1227 94d24e9dd299
parent 1226 5dc427eae946
child 1228 db658c567153
Test @vocab-relative IRIs in term definitions
test-suite/tests/expand-0052-in.jsonld
test-suite/tests/expand-0052-out.jsonld
test-suite/tests/expand-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0052-in.jsonld	Tue Feb 12 12:14:34 2013 +0100
@@ -0,0 +1,8 @@
+{
+  "@context": {
+    "@vocab": "http://example.org/",
+    "property": "vocabRelativeProperty"
+  },
+  "property": "must expand to http://example.org/vocabRelativeProperty",
+  "http://example.org/property": "ok"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0052-out.jsonld	Tue Feb 12 12:14:34 2013 +0100
@@ -0,0 +1,6 @@
+[
+  {
+    "http://example.org/property": [ { "@value": "ok" } ],
+    "http://example.org/vocabRelativeProperty": [ { "@value": "must expand to http://example.org/vocabRelativeProperty" } ]
+  }
+]
--- a/test-suite/tests/expand-manifest.jsonld	Tue Feb 12 12:04:07 2013 +0100
+++ b/test-suite/tests/expand-manifest.jsonld	Tue Feb 12 12:14:34 2013 +0100
@@ -261,6 +261,11 @@
       "name": "Expansion of keyword aliases in term definitions",
       "input": "expand-0051-in.jsonld",
       "expect": "expand-0051-out.jsonld"
+    }, {
+      "@type": ["test:TestCase", "jld:ExpandTest"],
+      "name": "@vocab-relative IRIs in term definitions",
+      "input": "expand-0052-in.jsonld",
+      "expect": "expand-0052-out.jsonld"
     }
   ]
 }