Skip to content

Commit 84ff7c8

Browse files
committed
Lazy-Eval processingMode.
* Updates to existing tests to make json-ld-1.1 the presumed version, unless json-ld-1.0 is set explicitly. For #161.
1 parent cca49c0 commit 84ff7c8

File tree

6 files changed

+7
-45
lines changed

6 files changed

+7
-45
lines changed

tests/compact-manifest.jsonld

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,20 +1265,11 @@
12651265
"context": "compact/en01-context.jsonld",
12661266
"expect": "invalid @nest value",
12671267
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
1268-
}, {
1269-
"@id": "#tep04",
1270-
"@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"],
1271-
"name": "Processing mode is implicitly json-ld-1.0",
1272-
"purpose": "If not specified using processingMode, processing mode is taken as json-ld-1.0",
1273-
"option": {"specVersion": "json-ld-1.1"},
1274-
"input": "compact/ep04-in.jsonld",
1275-
"context": "compact/ep04-context.jsonld",
1276-
"expect": "invalid container mapping"
12771268
}, {
12781269
"@id": "#tep05",
12791270
"@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"],
12801271
"name": "processingMode json-ld-1.0 conflicts with @version: 1.1",
1281-
"purpose": "If not specified using processingMode, processing mode is taken as json-ld-1.0",
1272+
"purpose": "If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.",
12821273
"input": "compact/ep05-in.jsonld",
12831274
"context": "compact/ep05-context.jsonld",
12841275
"expect": "processing mode conflict",

tests/compact/ep04-context.jsonld

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/compact/ep04-in.jsonld

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/expand-manifest.jsonld

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@
10991099
"purpose": "@propagate is invalid in 1.0",
11001100
"input": "expand/c029-in.jsonld",
11011101
"expect": "invalid context member",
1102-
"option": {"specVersion": "json-ld-1.1"}
1102+
"option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.0"}
11031103
}, {
11041104
"@id": "#tc030",
11051105
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
@@ -1476,8 +1476,9 @@
14761476
}, {
14771477
"@id": "#te042",
14781478
"@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ],
1479-
"name": "Keywords may not be redefined",
1479+
"name": "Keywords may not be redefined in 1.0",
14801480
"purpose": "Verifies that an exception is raised on expansion when processing an invalid context attempting to define @container on a keyword",
1481+
"option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.0"},
14811482
"input": "expand/e042-in.jsonld",
14821483
"expect": "keyword redefinition"
14831484
}, {
@@ -1576,19 +1577,11 @@
15761577
"input": "expand/en06-in.jsonld",
15771578
"expect": "invalid reverse property",
15781579
"option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}
1579-
}, {
1580-
"@id": "#tep01",
1581-
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
1582-
"name": "Processing mode is implicitly json-ld-1.0",
1583-
"purpose": "If not specified using processingMode, processing mode is taken as json-ld-1.0",
1584-
"option": {"specVersion": "json-ld-1.1"},
1585-
"input": "expand/ep01-in.jsonld",
1586-
"expect": "invalid container mapping"
15871580
}, {
15881581
"@id": "#tep02",
15891582
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
15901583
"name": "processingMode json-ld-1.0 conflicts with @version: 1.1",
1591-
"purpose": "If not specified using processingMode, processing mode is taken as json-ld-1.0",
1584+
"purpose": "If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.",
15921585
"input": "expand/ep02-in.jsonld",
15931586
"expect": "processing mode conflict",
15941587
"option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"}
@@ -2605,7 +2598,7 @@
26052598
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
26062599
"name": "@type: @none is illegal in 1.0.",
26072600
"purpose": "@type: @none is illegal in json-ld-1.0.",
2608-
"option": {"specVersion": "json-ld-1.1"},
2601+
"option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.0"},
26092602
"input": "expand/tn01-in.jsonld",
26102603
"expect": "invalid type mapping"
26112604
}, {

tests/expand/ep01-in.jsonld

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/toRdf-manifest.jsonld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2379,7 +2379,7 @@
23792379
"@type": ["jld:NegativeEvaluationTest", "jld:ToRDFTest"],
23802380
"name": "@type: @none is illegal in 1.0.",
23812381
"purpose": "@type: @none is illegal in json-ld-1.0.",
2382-
"option": {"specVersion": "json-ld-1.1"},
2382+
"option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.0"},
23832383
"input": "toRdf/tn01-in.jsonld",
23842384
"expect": "invalid type mapping"
23852385
}, {

0 commit comments

Comments
 (0)