--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0053-context.jsonld Wed Feb 13 12:21:36 2013 +0100
@@ -0,0 +1,11 @@
+{
+ "@context": {
+ "name": "http://xmlns.com/foaf/0.1/name",
+ "homepageID": { "@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id" },
+ "homepageV": { "@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@vocab" },
+ "linkID": { "@id": "http://example.com/link", "@type": "@id" },
+ "linkV": { "@id": "http://example.com/link", "@type": "@vocab" },
+ "MarkusHomepage": "http://www.markus-lanthaler.com/",
+ "relative-iri": "http://example.com/error-if-this-is-used-for-link"
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0053-in.jsonld Wed Feb 13 12:21:36 2013 +0100
@@ -0,0 +1,15 @@
+{
+ "@context": {
+ "name": "http://xmlns.com/foaf/0.1/name",
+ "homepageID": { "@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id" },
+ "homepageV": { "@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@vocab" },
+ "linkID": { "@id": "http://example.com/link", "@type": "@id" },
+ "linkV": { "@id": "http://example.com/link", "@type": "@vocab" },
+ "MarkusHomepage": "http://www.markus-lanthaler.com/",
+ "relative-iri": "http://example.com/error-if-this-is-used-for-link"
+ },
+ "@id": "http://me.markus-lanthaler.com/",
+ "name": "Markus Lanthaler",
+ "homepageV": "MarkusHomepage",
+ "linkID": "relative-iri"
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0053-out.jsonld Wed Feb 13 12:21:36 2013 +0100
@@ -0,0 +1,15 @@
+{
+ "@context": {
+ "name": "http://xmlns.com/foaf/0.1/name",
+ "homepageID": { "@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id" },
+ "homepageV": { "@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@vocab" },
+ "linkID": { "@id": "http://example.com/link", "@type": "@id" },
+ "linkV": { "@id": "http://example.com/link", "@type": "@vocab" },
+ "MarkusHomepage": "http://www.markus-lanthaler.com/",
+ "relative-iri": "http://example.com/error-if-this-is-used-for-link"
+ },
+ "@id": "http://me.markus-lanthaler.com/",
+ "name": "Markus Lanthaler",
+ "homepageV": "MarkusHomepage",
+ "linkID": "relative-iri"
+}
--- a/test-suite/tests/compact-manifest.jsonld Wed Feb 13 11:35:05 2013 +0100
+++ b/test-suite/tests/compact-manifest.jsonld Wed Feb 13 12:21:36 2013 +0100
@@ -318,6 +318,12 @@
"input": "compact-0052-in.jsonld",
"context": "compact-0052-context.jsonld",
"expect": "compact-0052-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:CompactTest"],
+ "name": "Round tripping @type: @vocab and @type: @id",
+ "input": "compact-0053-in.jsonld",
+ "context": "compact-0053-context.jsonld",
+ "expect": "compact-0053-out.jsonld"
}
]
}