Jsonld2DataSetOptions: { allowRemoteContexts?: boolean; strict?: boolean }

Type declaration

  • OptionalallowRemoteContexts?: boolean

    false (default): a @context given as a URL fails the conversion. Loading it would make the caller's process request an address chosen by whoever wrote the document, and let that document decide which predicates its keys map to. true: remote contexts are fetched — for files a user imports on purpose.

  • Optionalstrict?: boolean

    true (default): an invalid IRI or language tag, or a key the context does not map, fails the conversion. false: such values are left out, as JSON-LD processing does by default — for documents from foreign sources.