--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0064-in.jsonld Mon Mar 11 19:04:49 2013 +0100
@@ -0,0 +1,16 @@
+{
+ "@context": {
+ "name": "http://xmlns.com/foaf/0.1/name",
+ "isKnownBy": { "@reverse": "http://xmlns.com/foaf/0.1/knows" }
+ },
+ "@id": "http://example.com/people/markus",
+ "name": "Markus Lanthaler",
+ "isKnownBy": [
+ {
+ "name": "Dave Longley"
+ },
+ {
+ "name": "Gregg Kellogg"
+ }
+ ]
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0064-out.jsonld Mon Mar 11 19:04:49 2013 +0100
@@ -0,0 +1,16 @@
+[
+ {
+ "@id": "http://example.com/people/markus",
+ "@reverse": {
+ "http://xmlns.com/foaf/0.1/knows": [
+ {
+ "http://xmlns.com/foaf/0.1/name": [ { "@value": "Dave Longley" } ]
+ },
+ {
+ "http://xmlns.com/foaf/0.1/name": [ { "@value": "Gregg Kellogg" } ]
+ }
+ ]
+ },
+ "http://xmlns.com/foaf/0.1/name": [ { "@value": "Markus Lanthaler" } ]
+ }
+]
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0065-in.jsonld Mon Mar 11 19:04:49 2013 +0100
@@ -0,0 +1,18 @@
+{
+ "@context": {
+ "name": "http://xmlns.com/foaf/0.1/name",
+ "knows": "http://xmlns.com/foaf/0.1/knows"
+ },
+ "@id": "http://example.com/people/markus",
+ "name": "Markus Lanthaler",
+ "@reverse": {
+ "knows": {
+ "@id": "http://example.com/people/dave",
+ "name": "Dave Longley"
+ },
+ "relative-iri": {
+ "@id": "relative-node",
+ "name": "Keys that are not mapped to an IRI in a reverse-map are dropped"
+ }
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/expand-0065-out.jsonld Mon Mar 11 19:04:49 2013 +0100
@@ -0,0 +1,14 @@
+[
+ {
+ "@id": "http://example.com/people/markus",
+ "@reverse": {
+ "http://xmlns.com/foaf/0.1/knows": [
+ {
+ "@id": "http://example.com/people/dave",
+ "http://xmlns.com/foaf/0.1/name": [ { "@value": "Dave Longley" } ]
+ }
+ ]
+ },
+ "http://xmlns.com/foaf/0.1/name": [ { "@value": "Markus Lanthaler" } ]
+ }
+]
--- a/test-suite/tests/expand-manifest.jsonld Mon Mar 11 18:52:56 2013 +0100
+++ b/test-suite/tests/expand-manifest.jsonld Mon Mar 11 19:04:49 2013 +0100
@@ -323,6 +323,16 @@
"name": "Expand a reverse property with an index-container",
"input": "expand-0063-in.jsonld",
"expect": "expand-0063-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "Expand reverse property whose values are unlabeled blank nodes",
+ "input": "expand-0064-in.jsonld",
+ "expect": "expand-0064-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "Keys that are not mapped to an IRI in a reverse-map are dropped",
+ "input": "expand-0065-in.jsonld",
+ "expect": "expand-0065-out.jsonld"
}
]
}