Closed
Description
Our current draft explains how HTML's <base>
tag relates to the @base
value in JSON-LD--see Section 7.1.
However, we haven't yet discussed how <base>
might effect @context
IRI resolution. For example:
<base href="http://cdn.example.com/">
<script type="application/ld+json">
{
"@context": "context-file.jsonld",
"@id": "demo-page",
"@type": "WebPage",
"name": "Demo"
}
</script>
Currently we only specify how
@id
would be expanded to `http://cdn.example.com/demo-page"@type
(ifWebPage
was not defined in the context) would expand tohttp://cdn.example.com/WebPage
We do not yet explain how context-file.jsonld
is resolved.
If the processing were done "in page" by a jsonld.js, then the base URL would effect the resolution of context-file.jsonld
. However, it's currently not stated how that same HTML processed via Python, PHP, Go, etc, would "absolutize" that context URL.
Options and scenarios include:
- using the
<base>
tag - using the document URL (if still known)
- using a filesystem path (if processing of disk with no URLs?)
Metadata
Metadata
Assignees
Type
Projects
Status
Errata