--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0035-context.jsonld Tue Dec 11 15:59:35 2012 +0100
@@ -0,0 +1,14 @@
+{
+ "@context": {
+ "site": "http://example.com/",
+ "doesntExist": "http://example.com/doesntExistInInputData",
+ "field_tags_this_matches_all_iris": { "@id": [ "site:vocab/field_tags", "http://schema.org/about" ] },
+ "field_tags_set": { "@id": [ "site:vocab/field_tags", "http://schema.org/about", "doesntExist" ], "@container": "@set" },
+ "field_tags_set_id": { "@id": [ "site:vocab/field_tags", "http://schema.org/about", "doesntExist" ], "@container": "@set", "@type": "@id" },
+ "field_related_this_matches_all_iris": { "@id": [ "site:vocab/field_related", "http://schema.org/about" ] },
+ "field_related_set": { "@id": [ "site:vocab/field_related", "http://schema.org/about", "doesntExist" ], "@container": "@set" },
+ "field_related_list": { "@id": [ "site:vocab/field_related", "http://schema.org/about", "doesntExist" ], "@container": "@list" },
+ "field_related_list_id": { "@id": [ "site:vocab/field_related", "http://schema.org/about", "doesntExist" ], "@container": "@list", "@type": "@id" },
+ "field_related_list_lang": { "@id": [ "site:vocab/field_related", "http://schema.org/about", "doesntExist" ], "@container": "@list", "@language": "en" }
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0035-in.jsonld Tue Dec 11 15:59:35 2012 +0100
@@ -0,0 +1,39 @@
+[
+ {
+ "@id": "http://example.com/node/1",
+ "http://example.com/vocab/field_related": [
+ {
+ "@list": [
+ {
+ "@id": "http://example.com/node/this-is-related-news"
+ },
+ {
+ "@value": "This is a related string",
+ "@language": "en"
+ }
+ ]
+ }
+ ],
+ "http://schema.org/about": [
+ {
+ "@list": [
+ {
+ "@id": "http://example.com/node/this-is-related-news"
+ },
+ {
+ "@value": "This is a related string",
+ "@language": "en"
+ }
+ ]
+ },
+ {
+ "@id": "http://example.com/term/this-is-a-tag"
+ }
+ ],
+ "http://example.com/vocab/field_tags": [
+ {
+ "@id": "http://example.com/term/this-is-a-tag"
+ }
+ ]
+ }
+]
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/compact-0035-out.jsonld Tue Dec 11 15:59:35 2012 +0100
@@ -0,0 +1,33 @@
+{
+ "@context": {
+ "site": "http://example.com/",
+ "doesntExist": "http://example.com/doesntExistInInputData",
+ "field_tags_this_matches_all_iris": { "@id": [ "site:vocab/field_tags", "http://schema.org/about" ] },
+ "field_tags_set": { "@id": [ "site:vocab/field_tags", "http://schema.org/about", "doesntExist" ], "@container": "@set" },
+ "field_tags_set_id": { "@id": [ "site:vocab/field_tags", "http://schema.org/about", "doesntExist" ], "@container": "@set", "@type": "@id" },
+ "field_related_this_matches_all_iris": { "@id": [ "site:vocab/field_related", "http://schema.org/about" ] },
+ "field_related_set": { "@id": [ "site:vocab/field_related", "http://schema.org/about", "doesntExist" ], "@container": "@set" },
+ "field_related_list": { "@id": [ "site:vocab/field_related", "http://schema.org/about", "doesntExist" ], "@container": "@list" },
+ "field_related_list_id": { "@id": [ "site:vocab/field_related", "http://schema.org/about", "doesntExist" ], "@container": "@list", "@type": "@id" },
+ "field_related_list_lang": { "@id": [ "site:vocab/field_related", "http://schema.org/about", "doesntExist" ], "@container": "@list", "@language": "en" }
+ },
+ "@id": "site:node/1",
+ "field_tags_this_matches_all_iris": [
+ {
+ "@id": "site:term/this-is-a-tag"
+ }
+ ],
+ "field_related_this_matches_all_iris": [
+ {
+ "@list": [
+ {
+ "@id": "site:node/this-is-related-news"
+ },
+ {
+ "@value": "This is a related string",
+ "@language": "en"
+ }
+ ]
+ }
+ ]
+}
--- a/test-suite/tests/compact-manifest.jsonld Tue Dec 11 14:49:37 2012 +0100
+++ b/test-suite/tests/compact-manifest.jsonld Tue Dec 11 15:59:35 2012 +0100
@@ -210,5 +210,11 @@
"input": "compact-0034-in.jsonld",
"context": "compact-0034-context.jsonld",
"expect": "compact-0034-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:CompactTest"],
+ "name": "Fall back to more generic property generators",
+ "input": "compact-0035-in.jsonld",
+ "context": "compact-0035-context.jsonld",
+ "expect": "compact-0035-out.jsonld"
}]
}