Skip to content

Does HTML's <base> effect @context IRI resolution? #134

Closed
@BigBlueHat

Description

@BigBlueHat

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

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

No one assigned

    Type

    No type

    Projects

    Status

    Errata

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions