Skip to content

Base URL is not always absolute in Context Processing #369

@kasei

Description

@kasei

(Related to #265, #356)

Context Processing step 5.2.1:

Initialize context to the result of resolving context against base URL.

This base URL comes directly as the argument to this algorithm. However, in at least one case, the value of base URL is not an absolute IRI.

The expand() defintion in JsonLdProcessor Interface step 5 says:

If the expandContext option in options is set, update the active context using the Context Processing algorithm, passing the expandContext as local context and expandContext as base URL.

In test t0077, the value of "expandContext" is simply "0077-context.jsonld", which will cause Context Processing to attempt to resolve a relative IRI against another relative IRI. I don't think that's what is intended here.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions