w3c / w3c/json-ld-api

relative iri compaction

Open
#435 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Editorial editorial:class 2 ErratumRaised spec:editorial wr:pending
Dominant language
HTML
Stars
106
Forks
40
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with compaction test 0066 and compare the base IRI, the example absolute IRI, and the expected ../../../absolute result. Review the compaction behavior for relative IRIs and determine whether the requested shorter /absolute form is consistent with the JSON-LD API rules; done means the expected behavior and corresponding test outcome are resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.