Test all defined properties in compact-0015
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Wed, 02 May 2012 23:11:14 +0800
changeset 613 bb1439f14ffb
parent 611 f5082cc1e77e
child 614 5259a1abcf03
Test all defined properties in compact-0015

This also tests the default language in the context.
test-suite/tests/compact-0015-in.jsonld
test-suite/tests/compact-0015-out.jsonld
--- a/test-suite/tests/compact-0015-in.jsonld	Tue May 01 16:34:07 2012 -0400
+++ b/test-suite/tests/compact-0015-in.jsonld	Wed May 02 23:11:14 2012 +0800
@@ -2,10 +2,11 @@
   "@id": "http://example.com/id1",
   "@type": ["http://example.com/t1"],
   "http://example.com/term": [
-    "v1",
+    {"@value": "v1", "@language": "de"},
     {"@value": "v2", "@type": "http://example.com/t2"},
     {"@value": "v3", "@language": "en"},
     {"@list": [1, 2]},
+    "v5",
     {"@value": "plain literal"}
   ]
-}]
\ No newline at end of file
+}]
--- a/test-suite/tests/compact-0015-out.jsonld	Tue May 01 16:34:07 2012 -0400
+++ b/test-suite/tests/compact-0015-out.jsonld	Wed May 02 23:11:14 2012 +0800
@@ -12,8 +12,9 @@
   },
   "@id": "id1",
   "@type": "t1",
-  "term5": ["v1", "plain literal"],
+  "term1": "v1",
   "term2": "v2",
   "term3": "v3",
-  "term4": [1, 2]
+  "term4": [ 1, 2 ],
+  "term5": [ "v5", "plain literal" ]
 }