relative iri compaction
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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