--- a/test-suite/tests/expand-manifest.jsonld Wed Aug 01 15:59:44 2012 +0200
+++ b/test-suite/tests/expand-manifest.jsonld Wed Aug 01 17:17:34 2012 +0200
@@ -4,140 +4,147 @@
"@type": "jld:Manifest",
"rdfs:comment": "JSON-LD to Expansion tests use object compare",
"name": "expand",
- "sequence": [{
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "id",
- "input": "expand-0001-in.jsonld",
- "expect": "expand-0001-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "basic",
- "input": "expand-0002-in.jsonld",
- "expect": "expand-0002-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "drop null and unmapped properties",
- "input": "expand-0003-in.jsonld",
- "expect": "expand-0003-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "optimize @set, keep empty arrays",
- "input": "expand-0004-in.jsonld",
- "expect": "expand-0004-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "do not expand aliased @id/@type",
- "input": "expand-0005-in.jsonld",
- "expect": "expand-0005-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "alias keywords",
- "input": "expand-0006-in.jsonld",
- "expect": "expand-0006-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "date type-coercion",
- "input": "expand-0007-in.jsonld",
- "expect": "expand-0007-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "@value with @language",
- "input": "expand-0008-in.jsonld",
- "expect": "expand-0008-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "@graph with terms",
- "input": "expand-0009-in.jsonld",
- "expect": "expand-0009-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "native types",
- "input": "expand-0010-in.jsonld",
- "expect": "expand-0010-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "coerced @id",
- "input": "expand-0011-in.jsonld",
- "expect": "expand-0011-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "@graph with embed",
- "input": "expand-0012-in.jsonld",
- "expect": "expand-0012-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "expand already expanded",
- "input": "expand-0013-in.jsonld",
- "expect": "expand-0013-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "@set of @value objects with keyword aliases",
- "input": "expand-0014-in.jsonld",
- "expect": "expand-0014-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "collapse set of sets, keep empty lists",
- "input": "expand-0015-in.jsonld",
- "expect": "expand-0015-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "context reset",
- "input": "expand-0016-in.jsonld",
- "expect": "expand-0016-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "@graph and @id aliased",
- "input": "expand-0017-in.jsonld",
- "expect": "expand-0017-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "override default @language in terms",
- "input": "expand-0018-in.jsonld",
- "expect": "expand-0018-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "remove @value = null",
- "input": "expand-0019-in.jsonld",
- "expect": "expand-0019-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "do not remove @graph if not at top-level",
- "input": "expand-0020-in.jsonld",
- "expect": "expand-0020-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "do not remove @graph at top-level if not only property",
- "input": "expand-0021-in.jsonld",
- "expect": "expand-0021-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "expand value with default language",
- "input": "expand-0022-in.jsonld",
- "expect": "expand-0022-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "Expanding lists and sets with properties having coercion coerces list/set values",
- "input": "expand-0023-in.jsonld",
- "expect": "expand-0023-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "Multiple contexts",
- "input": "expand-0024-in.jsonld",
- "expect": "expand-0024-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "Problematic IRI expansion tests",
- "input": "expand-0025-in.jsonld",
- "expect": "expand-0025-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "Expanding term mapping to @type uses @type syntax",
- "input": "expand-0026-in.jsonld",
- "expect": "expand-0026-out.jsonld"
- }, {
- "@type": ["test:TestCase", "jld:ExpandTest"],
- "name": "Keep duplicate values in @list and @set",
- "input": "expand-0027-in.jsonld",
- "expect": "expand-0027-out.jsonld"
- }]
+ "sequence": [
+ {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "id",
+ "input": "expand-0001-in.jsonld",
+ "expect": "expand-0001-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "basic",
+ "input": "expand-0002-in.jsonld",
+ "expect": "expand-0002-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "drop null and unmapped properties",
+ "input": "expand-0003-in.jsonld",
+ "expect": "expand-0003-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "optimize @set, keep empty arrays",
+ "input": "expand-0004-in.jsonld",
+ "expect": "expand-0004-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "do not expand aliased @id/@type",
+ "input": "expand-0005-in.jsonld",
+ "expect": "expand-0005-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "alias keywords",
+ "input": "expand-0006-in.jsonld",
+ "expect": "expand-0006-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "date type-coercion",
+ "input": "expand-0007-in.jsonld",
+ "expect": "expand-0007-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "@value with @language",
+ "input": "expand-0008-in.jsonld",
+ "expect": "expand-0008-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "@graph with terms",
+ "input": "expand-0009-in.jsonld",
+ "expect": "expand-0009-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "native types",
+ "input": "expand-0010-in.jsonld",
+ "expect": "expand-0010-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "coerced @id",
+ "input": "expand-0011-in.jsonld",
+ "expect": "expand-0011-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "@graph with embed",
+ "input": "expand-0012-in.jsonld",
+ "expect": "expand-0012-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "expand already expanded",
+ "input": "expand-0013-in.jsonld",
+ "expect": "expand-0013-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "@set of @value objects with keyword aliases",
+ "input": "expand-0014-in.jsonld",
+ "expect": "expand-0014-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "collapse set of sets, keep empty lists",
+ "input": "expand-0015-in.jsonld",
+ "expect": "expand-0015-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "context reset",
+ "input": "expand-0016-in.jsonld",
+ "expect": "expand-0016-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "@graph and @id aliased",
+ "input": "expand-0017-in.jsonld",
+ "expect": "expand-0017-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "override default @language in terms",
+ "input": "expand-0018-in.jsonld",
+ "expect": "expand-0018-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "remove @value = null",
+ "input": "expand-0019-in.jsonld",
+ "expect": "expand-0019-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "do not remove @graph if not at top-level",
+ "input": "expand-0020-in.jsonld",
+ "expect": "expand-0020-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "do not remove @graph at top-level if not only property",
+ "input": "expand-0021-in.jsonld",
+ "expect": "expand-0021-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "expand value with default language",
+ "input": "expand-0022-in.jsonld",
+ "expect": "expand-0022-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "Expanding lists and sets with properties having coercion coerces list/set values",
+ "input": "expand-0023-in.jsonld",
+ "expect": "expand-0023-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "Multiple contexts",
+ "input": "expand-0024-in.jsonld",
+ "expect": "expand-0024-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "Problematic IRI expansion tests",
+ "input": "expand-0025-in.jsonld",
+ "expect": "expand-0025-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "Expanding term mapping to @type uses @type syntax",
+ "input": "expand-0026-in.jsonld",
+ "expect": "expand-0026-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "Keep duplicate values in @list and @set",
+ "input": "expand-0027-in.jsonld",
+ "expect": "expand-0027-out.jsonld"
+ }, {
+ "@type": ["test:TestCase", "jld:ExpandTest"],
+ "name": "Use @vocab in properties and @type but not in @id",
+ "input": "expand-0028-in.jsonld",
+ "expect": "expand-0028-out.jsonld"
+ }
+ ]
}