w3c / w3c/json-ld-api

Playground does not give expected result for expansion test c037

Open
#568 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi,

from expansion algorithm, I don't understand how nesting is supposed to work, especially when step 14.2.2 specifies to "Recursively repeat steps 13 and 14 using nested value for element", but steps 13 and 14 do not modify the active context, so nested values are expanded using the current active context, not the context associated to the nesting key.

I must precise that I'm implementing in a functional language, and it it not clear to me from the wording of the algorithm if active context is passed by reference along recursive calls. By now I assume that it is not the case but I way be wrong. It may be useful to indicate for each algorithm which arguments are passed by rerefence.

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 the JSON-LD 1.1 expansion algorithm, especially steps 13, 14, and 14.2.2, and compare them with playground expansion test c037. Determine whether active context is intended to be shared through recursive calls and whether the specification should state argument-passing semantics; done means the nesting behavior and wording are unambiguous.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.