A reader of JSON-LD (commons 0019-mizan-integrationsFR-020, FR-021): the text of an outside ontology published as JSON-LD, in its expanded or its compacted form, as triples, with what the typed form cannot hold named as findings and never dropped silently. It lives here and not in the kernel, which reads no RDF syntax (0012-ontologyFR-007).
It reads the JSON once, with its own small parser that keeps each number's text (JSON-LD tells 1 from 1.0, which JSON.parse does not) and each object's line, then expands it by the JSON-LD 1.1 algorithm for what vocabularies use: an inline @context (an object, an array of them, null, in the document or in a node) with @vocab, @base, @language, terms given as an IRI, a compact IRI or an object (@id, @type as @id, @vocab or a datatype, @language, @container of @set, @list, @language or @index, @reverse, @prefix) and the aliases of keywords; @id, @type, @graph at the top, @included, @value with @type and @language, @set, @list, @reverse, nested node objects (a blank node where there is no @id, genid-N in document order) and numbers and booleans as typed literals. A @list is read as the rdf:first and rdf:rest triples it stands for. Each of these is unsupported, named with its line and not read, where it appears: a remote context (a string, which this layer cannot fetch), @import, a scoped context (on a term or a type), a named graph, @nest, a JSON literal (@type: @json), a container of @graph, @id or @type, and a key that expands to no IRI.
JSON-LD text as triples, with the findings of what the typed form cannot hold; JSON that is not well formed, or a context that is not one, ends the read with one syntax finding and its line. base is the IRI the document was read from, which a relative @id resolves against where the context has no @base.
JSON-LD text as triples, with the findings of what the typed form cannot hold; JSON that is not well formed, or a context that is not one, ends the read with one syntax finding and its line. base is the IRI the document was read from, which a relative @id resolves against where the context has no @base.