diff --git a/index.html b/index.html index e8952b7e..cf186565 100644 --- a/index.html +++ b/index.html @@ -1069,7 +1069,7 @@
If context is a map, it is a context definition. We first update - the base IRI, + the base IRI, the default base direction, the default language, context propagation, @@ -1159,10 +1159,11 @@
Then, for every other entry in local context, we update the term definition in result. Since @@ -1223,20 +1224,25 @@
false
- and both base IRI and original base URL to the value of
- original base URL in active context.false
,
+ previous context in result
+ to the previous value of result.
@base
entry.null
, remove the
- base IRI of result.null
,
- set the base IRI of result to the result of
- resolving value against the current base IRI
+ the base IRI of result is not null
,
+ set the base IRI of result to the result of
+ resolving value against the current base IRI
of result.null
,
protected which defaults to false
,
and override protected, defaulting to false
,
which is used to allow changes to protected terms..
@@ -3206,7 +3215,7 @@ true
set value to the result of resolving value against
- the base IRI from active context. Only the basic algorithm in
+ the base IRI from active context. Only the basic algorithm in
section 5.2
of [[RFC3986]] is used; neither
Syntax-Based Normalization nor
@@ -4178,7 +4187,7 @@ false
,
transform var to a relative IRI reference using
- the base IRI from active context, if it exists.null
.
- If set, the {{JsonLdOptions/base}} option from options overrides the base IRI.@context
entry,
- pass that entry's value instead.dictionary JsonLdOptions { - USVString? base; + USVString? base = null; boolean compactArrays = true; boolean compactToRelative = true; LoadDocumentCallback? documentLoader = null; diff --git a/tests/README.md b/tests/README.md index 0ea120a1..770c48ac 100644 --- a/tests/README.md +++ b/tests/README.md @@ -18,6 +18,9 @@ Tests driven from a top-level [manifest](manifest.jsonld) and are defined into [ * [expand](expand-manifest.jsonld) tests have _input_ and _expected_ documents. The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output. + Expansion tests may have a `expandContext` option, which is treated + as an IRI relative to the manifest. + For *NegativeEvaluationTests*, the result is a string associated with the expected error code. * [html](html.jsonld) tests have _input_ and _expected_ documents and an optional _context_ document. 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 [ * [toRdf](toRdf-manifest.jsonld) tests have _input_ and _expected_ documents. The _expected_ results can be compared using [RDF Dataset Isomorphism](https://www.w3.org/TR/rdf11-concepts/#dfn-dataset-isomorphism). + ToRdf tests may have a `expandContext` option, which is treated + as an IRI relative to the manifest. + Unless `processingMode` is set explicitly in a test entry, `processingMode` is compatible with both `json-ld-1.0` and `json-ld-1.1`. 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. diff --git a/tests/context.jsonld b/tests/context.jsonld index dd15e370..25e9cee0 100644 --- a/tests/context.jsonld +++ b/tests/context.jsonld @@ -23,7 +23,7 @@ "compactArrays": { "@type": "xsd:boolean" }, "compactToRelative": { "@type": "xsd:boolean" }, "contentType": { "@type": "xsd:boolean" }, - "expandContext": { "@type": "xsd:string" }, + "expandContext": { "@type": "@id" }, "httpLink": { "@type": "xsd:string", "@container": "@set" }, "httpStatus": { "@type": "xsd:integer" }, "processingMode": { "@type": "xsd:string" }, diff --git a/tests/expand-manifest.html b/tests/expand-manifest.html index 8420f334..63e8fb7c 100644 --- a/tests/expand-manifest.html +++ b/tests/expand-manifest.html @@ -32,6 +32,9 @@expand tests have input and
The expected results can be compared using JSON-LD object comparison with the processor output. + Expansion tests may have a
+expandContext
option, which is treated +as an IRI relative to the manifest.For NegativeEvaluationTests, the result is a string associated with the expected error code.
Unless
diff --git a/tests/expand-manifest.jsonld b/tests/expand-manifest.jsonld index 4a64055a..8afec4f0 100644 --- a/tests/expand-manifest.jsonld +++ b/tests/expand-manifest.jsonld @@ -550,7 +550,7 @@ "name": "expandContext option", "purpose": "Use of the expandContext option to expand the input document", "option": { - "expandContext": "0077-context.jsonld" + "expandContext": "expand/0077-context.jsonld" }, "input": "expand/0077-in.jsonld", "expect": "expand/0077-out.jsonld" diff --git a/tests/html-manifest.html b/tests/html-manifest.html index 11c927ae..a58b077a 100644 --- a/tests/html-manifest.html +++ b/tests/html-manifest.html @@ -37,6 +37,9 @@processingMode
is set explicitly in a test entry,processingMode
is compatible with bothjson-ld-1.0
andjson-ld-1.1
.expand tests have input and
The expected results can be compared using JSON-LD object comparison with the processor output. + Expansion tests may have a
+expandContext
option, which is treated +as an IRI relative to the manifest.For NegativeEvaluationTests, the result is a string associated with the expected error code.
html tests have input and expected documents and an optional context document.
diff --git a/tests/manifest.html b/tests/manifest.html index 76c5731a..fb7f792c 100644 --- a/tests/manifest.html +++ b/tests/manifest.html @@ -37,6 +37,9 @@expand tests have input and
The expected results can be compared using JSON-LD object comparison with the processor output. + Expansion tests may have a
+expandContext
option, which is treated +as an IRI relative to the manifest.For NegativeEvaluationTests, the result is a string associated with the expected error code.
html tests have input and expected documents and an optional context document.
@@ -70,6 +73,9 @@toRdf tests have input and
Some tests require the use of JSON Canonicalization Scheme 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
useJCS
option.The expected results can be compared using RDF Dataset Isomorphism.
+ +ToRdf tests may have a
expandContext
option, which is treated +as an IRI relative to the manifest.Unless
processingMode
is set explicitly in a test entry,processingMode
is compatible with bothjson-ld-1.0
andjson-ld-1.1
.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.
diff --git a/tests/remote-doc-manifest.html b/tests/remote-doc-manifest.html index 9ab5aea1..3306022e 100644 --- a/tests/remote-doc-manifest.html +++ b/tests/remote-doc-manifest.html @@ -32,6 +32,9 @@expand tests have input and
The expected results can be compared using JSON-LD object comparison with the processor output. + Expansion tests may have a
+expandContext
option, which is treated +as an IRI relative to the manifest.For NegativeEvaluationTests, the result is a string associated with the expected error code.
remote-doc tests have input and expected documents.
diff --git a/tests/template.haml b/tests/template.haml index 7d2baa02..4d50a1df 100644 --- a/tests/template.haml +++ b/tests/template.haml @@ -42,6 +42,9 @@ The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output. + Expansion tests may have a `expandContext` option, which is treated + as an IRI relative to the manifest. + For *NegativeEvaluationTests*, the result is a string associated with the expected error code. - if manifest['sequence'].first.is_a?(String) || manifest['sequence'].any? {|te| te['@type'].include?('jld:HtmlTest')} @@ -89,6 +92,9 @@ The _expected_ results can be compared using [RDF Dataset Isomorphism](https://www.w3.org/TR/rdf11-concepts/#dfn-dataset-isomorphism). + ToRdf tests may have a `expandContext` option, which is treated + as an IRI relative to the manifest. + :markdown Unless `processingMode` is set explicitly in a test entry, `processingMode` is compatible with both `json-ld-1.0` and `json-ld-1.1`. diff --git a/tests/toRdf-manifest.jsonld b/tests/toRdf-manifest.jsonld index 1fca1871..f246f52c 100644 --- a/tests/toRdf-manifest.jsonld +++ b/tests/toRdf-manifest.jsonld @@ -1324,7 +1324,7 @@ "name": "expandContext option", "purpose": "Use of the expandContext option to expand the input document", "option": { - "expandContext": "e077-context.jsonld" + "expandContext": "toRdf/e077-context.jsonld" }, "input": "toRdf/e077-in.jsonld", "expect": "toRdf/e077-out.nq"