First, checks whether a context is stored locally before letting the super class do a fetch. This can be used when converting JSON-LD with Comunica-related libraries, such as rdf-parse.
rdf-parse
To use this, add this document loader to the options of the call using the KeysRdfParseJsonLd.documentLoader.name key. All extra keys get passed in the Comunica ActionContext and this is the key that is used to define the document loader. See https://github.com/rubensworks/rdf-parse.js/blob/master/lib/RdfParser.ts and https://github.com/comunica/comunica/blob/master/packages/actor-rdf-parse-jsonld/lib/ActorRdfParseJsonLd.ts
KeysRdfParseJsonLd.documentLoader.name
First, checks whether a context is stored locally before letting the super class do a fetch. This can be used when converting JSON-LD with Comunica-related libraries, such as
rdf-parse
.To use this, add this document loader to the options of the call using the
KeysRdfParseJsonLd.documentLoader.name
key. All extra keys get passed in the Comunica ActionContext and this is the key that is used to define the document loader. See https://github.com/rubensworks/rdf-parse.js/blob/master/lib/RdfParser.ts and https://github.com/comunica/comunica/blob/master/packages/actor-rdf-parse-jsonld/lib/ActorRdfParseJsonLd.ts