json-ld-api
json-ld-api copied to clipboard
JSON-LD 1.1 Processing Algorithms and API Specification
There is currently a limitation in the JSON-LD 1.1 expansion algorithm which ignores property-scoped contexts for nested properties. My specific case is: ```json { "@context": { "@version": 1.1, "@vocab": "http://purl.org/dc/terms/",...
Following the discussion in #380, I have a question: Consider the following data: ```json { "@context": { "foo": "http://example.org/foo", "bar": "http://example.org/bar", "baz": "http://example.org/baz", "n1": "@nest", "n2": "@nest" }, "foo": "FOO",...
Currently, `@prefix` has boolean as range, and can be used as follows: ```json { "@context": { "@version": 1.1, "compact-iris": { "@id": "http://example.com/compact-iris-", "@prefix": true } }, } ``` In most...
This may be way too late... however. I wonder whether it is possible to bring the types defined in [9.2 RDF Dataset Interfaces](https://w3c.github.io/json-ld-api/#rdf-dataset-interfaces) to the interfaces defined in the [RDF/JS:...
My use case was to determine whether `{ "@context": { p: { "@id": "e:", "@container": "@list" } }, "p:1": ["", ""], "p:7891": ["dup", "dup"] }` would treat the `p:1` and...
- Add tests for `@graph` `@container` with and without nullified context with an array of plain literals. - Add tests for `@graph` `@id` `@container` with and without nullified context with...
Recent versions of the "Latest editor's draft" have changed many of the references of "lexicographic [order]" to "Unicode code point order" which is great. I'm having trouble getting my implementation...
As described in [Process HTML](https://www.w3.org/TR/json-ld11-api/#process-html) section of the specification, it is described how `expand()` behaves on HTML documents with `extractAllScripts` option. * If that option is `false` then it will...
The Context Processing Algorithm deals with dereferencing remote documents at 2 occasions: `5.2` and `5.6`. Both look very similar to the point where I do not understand why there are...
In JSON-LD 1.1, [IRI Expansion within a Context](https://www.w3.org/TR/json-ld11/#iri-expansion-within-a-context) defines a rule with a Warning: > If a compact IRI is used as a term, it must expand to the value...