--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0038-in.jsonld Thu Dec 06 23:36:44 2012 +0100
@@ -0,0 +1,59 @@
+{
+ "@context": {
+ "term": "_:term",
+ "termId": { "@id": "term", "@type": "@id" },
+ "termTyped": { "@id": "term", "@type": "_:term" }
+ },
+ "@id": "term",
+ "@type": "_:term",
+ "term": [
+ {
+ "@id": "term",
+ "@type": "term",
+ "termTyped": "typed value term"
+ },
+ {
+ "@id": "_:Bx",
+ "term": "term"
+ },
+ "plain value",
+ {
+ "@id": "_:term"
+ },
+ {
+ "@value": "term: typed value with type set to bnode",
+ "@type": "_:term"
+ },
+ {
+ "@value": "term: typed value with type set to term",
+ "@type": "term"
+ }
+ ],
+ "termId": [
+ {
+ "@id": "term",
+ "@type": "term",
+ "termTyped": "typed value termId"
+ },
+ {
+ "@id": "_:Cx",
+ "term": "termId"
+ },
+ "term:AppendedToBlankNode",
+ "relativeIri",
+ {
+ "@id": "_:term"
+ },
+ {
+ "@value": "termId: typed value with type set to bnode",
+ "@type": "_:term"
+ },
+ {
+ "@value": "ternId: typed value with type set to term",
+ "@type": "term"
+ }
+ ],
+ "termTyped": [
+ "termTyped: value"
+ ]
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0038-out.jsonld Thu Dec 06 23:36:44 2012 +0100
@@ -0,0 +1,85 @@
+[
+ {
+ "@id": "_:t0",
+ "@type": [
+ "_:t0"
+ ],
+ "_:t0": [
+ {
+ "@id": "_:t0",
+ "@type": [
+ "_:t0"
+ ],
+ "_:t0": [
+ {
+ "@value": "typed value term",
+ "@type": "_:t0"
+ }
+ ]
+ },
+ {
+ "@id": "_:t1",
+ "_:t0": [
+ {
+ "@value": "term"
+ }
+ ]
+ },
+ {
+ "@value": "plain value"
+ },
+ {
+ "@id": "_:t0"
+ },
+ {
+ "@type": "_:t0",
+ "@value": "term: typed value with type set to bnode"
+ },
+ {
+ "@type": "_:t0",
+ "@value": "term: typed value with type set to term"
+ },
+ {
+ "@id": "_:t0",
+ "@type": [
+ "_:t0"
+ ],
+ "_:t0": [
+ {
+ "@value": "typed value termId",
+ "@type": "_:t0"
+ }
+ ]
+ },
+ {
+ "@id": "_:t2",
+ "_:t0": [
+ {
+ "@value": "termId"
+ }
+ ]
+ },
+ {
+ "@id": "_:t3"
+ },
+ {
+ "@id": "http://json-ld.org/test-suite/tests/relativeIri"
+ },
+ {
+ "@id": "_:t0"
+ },
+ {
+ "@type": "_:t0",
+ "@value": "termId: typed value with type set to bnode"
+ },
+ {
+ "@type": "_:t0",
+ "@value": "ternId: typed value with type set to term"
+ },
+ {
+ "@value": "termTyped: value",
+ "@type": "_:t0"
+ }
+ ]
+ }
+]
--- a/test-suite/tests/expand-manifest.jsonld Thu Dec 06 20:56:47 2012 +0100
+++ b/test-suite/tests/expand-manifest.jsonld Thu Dec 06 23:36:44 2012 +0100
@@ -191,6 +191,11 @@
"name": "Expanding property generators (no type coercions, language mappings etc.)",
"input": "expand-0037-in.jsonld",
"expect": "expand-0037-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "Ensure all blank nodes are relabeled during expansion.",
+ "input": "expand-0038-in.jsonld",
+ "expect": "expand-0038-out.jsonld"
}
]
}