w3c / w3c/json-ld-api

Step 8.1 of value compaction algorithm is not clear

Open
#661 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ErratumRaised
Dominant language
HTML
Stars
106
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Hi,

Sorry if the question was already raised but I did not find it in the issues.

Step 8.1 of the value compaction algorithm is not clear (at least to me):

Replace any value of @type in result with the result of IRI compacting the value of the @type entry.

Am I correct if I reformulate it this way:

"For each value V of @type entries in result, replace V with the result of IRI compacting V" ?

Since at this point result is a map, it should have only one @type entry. Does it mean that all values of @type entries should be replaced this way recursively in result ?

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 Step 8.1 of the value compaction algorithm and the linked IRI compacting definition in the JSON-LD 1.1 API specification. Resolve whether the wording refers to each @type value or recursive nested values, then update the specification text so the intended scope is unambiguous.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.