w3c / w3c/json-ld-api

Default value of produceGeneralizedRdf should be false

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

Nobody has claimed this yet.

defer-future-version Errata spec:bug spec:substantive
Dominant language
HTML
Stars
106
Forks
40
PR merge metrics
No merged PRs in 30d

Description

The definition of the JsonLdOptions Type specifies that the default value for produceGeneralizedRdf is true. However, there are tests that fail if this is the case (e.g. the toRdf test case e068 has an expected output that excludes the statement with a blank node property), and I note that the test manifests explicitly set the option to true when it is required for the test. That, plus the fact that this option is deprecated leads me to suspect that the definition of the options type is perhaps incorrect and that the default value for this property should be false.

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 JsonLdOptions Type definition and compare its stated default for produceGeneralizedRdf with the toRdf test case e068 and the test manifests that explicitly set the option. Confirm the intended default against the failing expected output and update the specification and relevant tests so the default behavior is consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
api, documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.