Test compacting unmapped key using @context with default @language
authorFabian Steeg <fsteeg@gmail.com>
Mon, 17 Mar 2014 10:33:13 +0100
changeset 2136 c448ba3aea56
parent 2135 98606e2bba6b
child 2137 b438624b27d0
Test compacting unmapped key using @context with default @language

Covers an issue in the jsonld-java implementation, see
https://github.com/jsonld-java/jsonld-java/pull/103
test-suite/tests/compact-0072-context.jsonld
test-suite/tests/compact-0072-in.jsonld
test-suite/tests/compact-0072-out.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0072-context.jsonld	Mon Mar 17 10:33:13 2014 +0100
@@ -0,0 +1,5 @@
+{
+  "@context": {
+    "@language": "en"
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0072-in.jsonld	Mon Mar 17 10:33:13 2014 +0100
@@ -0,0 +1,3 @@
+{
+  "http://example.com/foo": "foo-value"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0072-out.jsonld	Mon Mar 17 10:33:13 2014 +0100
@@ -0,0 +1,8 @@
+{
+  "http://example.com/foo": {
+    "@value": "foo-value"
+  },
+  "@context": {
+    "@language": "en"
+  }
+}