Skip to content

Commit 01dd367

Browse files
committed
Add a description for expandContext as being an IRI relative to the containing manifest.
For #369.
1 parent 2870081 commit 01dd367

6 files changed

+27
-0
lines changed

tests/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Tests driven from a top-level [manifest](manifest.jsonld) and are defined into [
1818
* [expand](expand-manifest.jsonld) tests have _input_ and _expected_ documents.
1919
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output.
2020

21+
Expansion tests may have a `expandContext` option, which is treated
22+
as an IRI relative to the manifest.
23+
2124
For *NegativeEvaluationTests*, the result is a string associated with the expected error code.
2225
* [html](html.jsonld) tests have _input_ and _expected_ documents and an optional _context_ document.
2326
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output
@@ -46,6 +49,9 @@ Tests driven from a top-level [manifest](manifest.jsonld) and are defined into [
4649
* [toRdf](toRdf-manifest.jsonld) tests have _input_ and _expected_ documents.
4750
The _expected_ results can be compared using [RDF Dataset Isomorphism](https://www.w3.org/TR/rdf11-concepts/#dfn-dataset-isomorphism).
4851

52+
ToRdf tests may have a `expandContext` option, which is treated
53+
as an IRI relative to the manifest.
54+
4955
Unless `processingMode` is set explicitly in a test entry, `processingMode` is compatible with both `json-ld-1.0` and `json-ld-1.1`.
5056

5157
Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

tests/expand-manifest.html

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ <h3><a href="expand-manifest.jsonld">expand</a> tests have <em>input</em> and <e
3232

3333
<p>The <em>expected</em> results can be compared using <a href="#json-ld-object-comparison">JSON-LD object comparison</a> with the processor output.</p>
3434

35+
<p>Expansion tests may have a <code>expandContext</code> option, which is treated
36+
as an IRI relative to the manifest.</p>
37+
3538
<p>For <em>NegativeEvaluationTests</em>, the result is a string associated with the expected error code.</p>
3639
<p>Unless <code>processingMode</code> is set explicitly in a test entry, <code>processingMode</code> is compatible with both <code>json-ld-1.0</code> and <code>json-ld-1.1</code>.</p>
3740

tests/html-manifest.html

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ <h3><a href="expand-manifest.jsonld">expand</a> tests have <em>input</em> and <e
3737

3838
<p>The <em>expected</em> results can be compared using <a href="#json-ld-object-comparison">JSON-LD object comparison</a> with the processor output.</p>
3939

40+
<p>Expansion tests may have a <code>expandContext</code> option, which is treated
41+
as an IRI relative to the manifest.</p>
42+
4043
<p>For <em>NegativeEvaluationTests</em>, the result is a string associated with the expected error code.</p>
4144
<h3><a href="html.jsonld">html</a> tests have <em>input</em> and <em>expected</em> documents and an optional <em>context</em> document.</h3>
4245

tests/manifest.html

+6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ <h3><a href="expand-manifest.jsonld">expand</a> tests have <em>input</em> and <e
3737

3838
<p>The <em>expected</em> results can be compared using <a href="#json-ld-object-comparison">JSON-LD object comparison</a> with the processor output.</p>
3939

40+
<p>Expansion tests may have a <code>expandContext</code> option, which is treated
41+
as an IRI relative to the manifest.</p>
42+
4043
<p>For <em>NegativeEvaluationTests</em>, the result is a string associated with the expected error code.</p>
4144
<h3><a href="html.jsonld">html</a> tests have <em>input</em> and <em>expected</em> documents and an optional <em>context</em> document.</h3>
4245

@@ -70,6 +73,9 @@ <h3><a href="toRdf-manifest.jsonld">toRdf</a> tests have <em>input</em> and <em>
7073
<p>Some tests require the use of <a href="https://tools.ietf.org/html/draft-rundgren-json-canonicalization-scheme-05">JSON Canonicalization Scheme</a> to properly generate RDF Literals from JSON literal values. This algorithm is non-normative, but is assumed to be used to properly compare results. These tests are marked using the <code>useJCS</code> option.</p>
7174

7275
<p>The <em>expected</em> results can be compared using <a href="https://www.w3.org/TR/rdf11-concepts/#dfn-dataset-isomorphism">RDF Dataset Isomorphism</a>.</p>
76+
77+
<p>ToRdf tests may have a <code>expandContext</code> option, which is treated
78+
as an IRI relative to the manifest.</p>
7379
<p>Unless <code>processingMode</code> is set explicitly in a test entry, <code>processingMode</code> is compatible with both <code>json-ld-1.0</code> and <code>json-ld-1.1</code>.</p>
7480

7581
<p>Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.</p>

tests/remote-doc-manifest.html

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ <h3><a href="expand-manifest.jsonld">expand</a> tests have <em>input</em> and <e
3232

3333
<p>The <em>expected</em> results can be compared using <a href="#json-ld-object-comparison">JSON-LD object comparison</a> with the processor output.</p>
3434

35+
<p>Expansion tests may have a <code>expandContext</code> option, which is treated
36+
as an IRI relative to the manifest.</p>
37+
3538
<p>For <em>NegativeEvaluationTests</em>, the result is a string associated with the expected error code.</p>
3639
<h3><a href="remote-doc-manifest.jsonld">remote-doc</a> tests have <em>input</em> and <em>expected</em> documents.</h3>
3740

tests/template.haml

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242

4343
The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output.
4444

45+
Expansion tests may have a `expandContext` option, which is treated
46+
as an IRI relative to the manifest.
47+
4548
For *NegativeEvaluationTests*, the result is a string associated with the expected error code.
4649

4750
- if manifest['sequence'].first.is_a?(String) || manifest['sequence'].any? {|te| te['@type'].include?('jld:HtmlTest')}
@@ -89,6 +92,9 @@
8992

9093
The _expected_ results can be compared using [RDF Dataset Isomorphism](https://www.w3.org/TR/rdf11-concepts/#dfn-dataset-isomorphism).
9194

95+
ToRdf tests may have a `expandContext` option, which is treated
96+
as an IRI relative to the manifest.
97+
9298
:markdown
9399
Unless `processingMode` is set explicitly in a test entry, `processingMode` is compatible with both `json-ld-1.0` and `json-ld-1.1`.
94100

0 commit comments

Comments
 (0)