json-ld-api
json-ld-api copied to clipboard
JSON-LD 1.1 Processing Algorithms and API Specification
Rules for dropping free-floating values in Expansion Algorithm
The wording of step 19.1 is: > If result is a map which is empty, or contains only the entries `@value` or `@list`, set result to null. That *only* indicates...
What to do with value entries outside value objects?
In my current implementation of the expansion algorithm, when the expanded node only contains value entries (i.e. `@language` or `@direction` entries), then it is dropped. In my interpretation of the...
Invalid '@base' IRI is accepted by the context processing algorithm in deserialization test suite.
From the step 5.7 of the context processing algorithm it is clear that a `@base` value is accepted iff it is `null` (step 5.7.2) or an IRI (5.7.3) or a...
Possible mistake in Context Processing Algorithm
Hi, Step 5.5.1 of the Context Processing Algorithm says: > If `override protected` is false and `active context` contains any protected term definitions, an `invalid context nullification` has been detected...
Test compact#t0080 is wrong
The test [compact#t0080] is wrong, IMO. The input (which is in expanded form) corresponds to the following dataset: ``` _:b0 . _:b1 "x" . ``` however, the expected compacted result...
integer JSON value should be expanded to an IRI in presence of a base IRI
Point 8 in IRI Expansion https://www.w3.org/TR/json-ld11-api/#iri-expansion says nothing about an integer JSON value that is expanded to an IRI in presence of a base IRI . So this should be...
Default value of produceGeneralizedRdf should be false
The definition of the [JsonLdOptions Type](https://www.w3.org/TR/json-ld11-api/#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...
Which context should be used to get the term definition in compaction algorithm step 6?
I was trying to get my implementation of the compaction algorithm to pass test c013 and I think that the spec may be misleading. Step 5 reverts `active context` if...
Blank node as predicate tests
From https://github.com/digitalbazaar/jsonld.js/issues/498. cc/ @pchampin @davidlehn (the same issue is present in PyLD: https://github.com/digitalbazaar/pyld/issues/167) Consider the following: ``` { "@context": { "t": "_:b" }, "@type": "t:x" } ``` It expands to...
missing instructions in Node Map generation
I believe that an instruction is missing from step 6.10 of [Node Map Generation](https://www.w3.org/TR/json-ld11-api/#node-map-generation), namely: - if node map does not contain an id entry, create one and initialize its...