Skip to content

Commit e01810b

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 84ff7c8 commit e01810b

File tree

3 files changed

+19
-64
lines changed

3 files changed

+19
-64
lines changed

tests/compact-manifest.html

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h2>JSON-LD Object comparison</h2>
4646
<p>JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.</p>
4747

4848
<ul>
49-
<li>JSON objects are compared entry by entry without regard to the ordering of entries within the object. Each entry must have a corresponding entry in the object being compared to. Values are compared recursively.</li>
49+
<li>JSON objects are compared entry by entry without regard to the ordering of entriess within the object. Each entry must have a corresponding entry in the object being compared to. Values are compared recursively.</li>
5050
<li>JSON arrays are generally compared without regard to order (the lone exception being if the referencing key is <code>@list</code>). Each item within the array must be equivalent to an item in the array being compared to by using the comparison algorithm recursively. For values of <code>@list</code>, the order of these items is significant.</li>
5151
<li>JSON values are compared using strict equality.</li>
5252
<li>Values of <code>@language</code>, and other places where language tags may be used are specified in lowercase in the test results. Implementations should either normalize language tags for testing purposes, or compare language tags in a case-independent way.</li>
@@ -4426,38 +4426,6 @@ <h2>
44264426
</dd>
44274427
</dl>
44284428
</dd>
4429-
<dt id='tep04'>
4430-
Test tep04 Processing mode is implicitly json-ld-1.0
4431-
</dt>
4432-
<dd>
4433-
<dl class='entry'>
4434-
<dt>id</dt>
4435-
<dd>#tep04</dd>
4436-
<dt>Type</dt>
4437-
<dd>jld:NegativeEvaluationTest, jld:CompactTest</dd>
4438-
<dt>Purpose</dt>
4439-
<dd>If not specified using processingMode, processing mode is taken as json-ld-1.0</dd>
4440-
<dt>input</dt>
4441-
<dd>
4442-
<a href='compact/ep04-in.jsonld'>compact/ep04-in.jsonld</a>
4443-
</dd>
4444-
<dt>context</dt>
4445-
<dd>
4446-
<a href='compact/ep04-context.jsonld'>compact/ep04-context.jsonld</a>
4447-
</dd>
4448-
<dt>expect</dt>
4449-
<dd>
4450-
invalid container mapping
4451-
</dd>
4452-
<dt>Options</dt>
4453-
<dd>
4454-
<dl class='options'>
4455-
<dt>specVersion</dt>
4456-
<dd>json-ld-1.1</dd>
4457-
</dl>
4458-
</dd>
4459-
</dl>
4460-
</dd>
44614429
<dt id='tep05'>
44624430
Test tep05 processingMode json-ld-1.0 conflicts with @version: 1.1
44634431
</dt>
@@ -4468,7 +4436,7 @@ <h2>
44684436
<dt>Type</dt>
44694437
<dd>jld:NegativeEvaluationTest, jld:CompactTest</dd>
44704438
<dt>Purpose</dt>
4471-
<dd>If not specified using processingMode, processing mode is taken as json-ld-1.0</dd>
4439+
<dd>If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.</dd>
44724440
<dt>input</dt>
44734441
<dd>
44744442
<a href='compact/ep05-in.jsonld'>compact/ep05-in.jsonld</a>

tests/expand-manifest.html

Lines changed: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3732,6 +3732,8 @@ <h2>
37323732
<dl class='options'>
37333733
<dt>specVersion</dt>
37343734
<dd>json-ld-1.1</dd>
3735+
<dt>processingMode</dt>
3736+
<dd>json-ld-1.0</dd>
37353737
</dl>
37363738
</dd>
37373739
</dl>
@@ -4922,7 +4924,7 @@ <h2>
49224924
</dl>
49234925
</dd>
49244926
<dt id='te042'>
4925-
Test te042 Keywords may not be redefined
4927+
Test te042 Keywords may not be redefined in 1.0
49264928
</dt>
49274929
<dd>
49284930
<dl class='entry'>
@@ -4940,6 +4942,15 @@ <h2>
49404942
<dd>
49414943
keyword redefinition
49424944
</dd>
4945+
<dt>Options</dt>
4946+
<dd>
4947+
<dl class='options'>
4948+
<dt>specVersion</dt>
4949+
<dd>json-ld-1.1</dd>
4950+
<dt>processingMode</dt>
4951+
<dd>json-ld-1.0</dd>
4952+
</dl>
4953+
</dd>
49434954
</dl>
49444955
</dd>
49454956
<dt id='te043'>
@@ -5294,34 +5305,6 @@ <h2>
52945305
</dd>
52955306
</dl>
52965307
</dd>
5297-
<dt id='tep01'>
5298-
Test tep01 Processing mode is implicitly json-ld-1.0
5299-
</dt>
5300-
<dd>
5301-
<dl class='entry'>
5302-
<dt>id</dt>
5303-
<dd>#tep01</dd>
5304-
<dt>Type</dt>
5305-
<dd>jld:NegativeEvaluationTest, jld:ExpandTest</dd>
5306-
<dt>Purpose</dt>
5307-
<dd>If not specified using processingMode, processing mode is taken as json-ld-1.0</dd>
5308-
<dt>input</dt>
5309-
<dd>
5310-
<a href='expand/ep01-in.jsonld'>expand/ep01-in.jsonld</a>
5311-
</dd>
5312-
<dt>expect</dt>
5313-
<dd>
5314-
invalid container mapping
5315-
</dd>
5316-
<dt>Options</dt>
5317-
<dd>
5318-
<dl class='options'>
5319-
<dt>specVersion</dt>
5320-
<dd>json-ld-1.1</dd>
5321-
</dl>
5322-
</dd>
5323-
</dl>
5324-
</dd>
53255308
<dt id='tep02'>
53265309
Test tep02 processingMode json-ld-1.0 conflicts with @version: 1.1
53275310
</dt>
@@ -5332,7 +5315,7 @@ <h2>
53325315
<dt>Type</dt>
53335316
<dd>jld:NegativeEvaluationTest, jld:ExpandTest</dd>
53345317
<dt>Purpose</dt>
5335-
<dd>If not specified using processingMode, processing mode is taken as json-ld-1.0</dd>
5318+
<dd>If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.</dd>
53365319
<dt>input</dt>
53375320
<dd>
53385321
<a href='expand/ep02-in.jsonld'>expand/ep02-in.jsonld</a>
@@ -8968,6 +8951,8 @@ <h2>
89688951
<dl class='options'>
89698952
<dt>specVersion</dt>
89708953
<dd>json-ld-1.1</dd>
8954+
<dt>processingMode</dt>
8955+
<dd>json-ld-1.0</dd>
89718956
</dl>
89728957
</dd>
89738958
</dl>

tests/toRdf-manifest.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8034,6 +8034,8 @@ <h2>
80348034
<dl class='options'>
80358035
<dt>specVersion</dt>
80368036
<dd>json-ld-1.1</dd>
8037+
<dt>processingMode</dt>
8038+
<dd>json-ld-1.0</dd>
80378039
</dl>
80388040
</dd>
80398041
</dl>

0 commit comments

Comments
 (0)