Skip to content

relative iri compaction #435

Open
Open
@roptat

Description

@roptat

Hi,

in compaction test 0066, some IRIs are to be compacted relative to the document base IRI. The base IRI is https://w3c.github.io/json-ld-api/tests/compact/0066-in.jsonld and an examples of IRIs to compact is https://w3c.github.io/absolute. The expected result is ../../../absolute, however, /absolute seems to be valid and more compact. Why not compact IRIs more when possible? One could simply choose the shortest between the path of the iri to compact, and the relative path with '..'s.

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