JsonLdDecoderOptions class
Configuration options for JSON-LD decoding
Configuration options for the JSON-LD decoder.
These options control context loading, base IRI handling, processing mode, and error behavior during JSON-LD to RDF conversion.
Error handling defaults to fail-fast: invalid RDF terms (for example malformed IRIs or invalid language tags) throw immediately.
To switch to best-effort conversion for compatibility scenarios,
set skipInvalidRdfTerms to true.
Constructors
- JsonLdDecoderOptions({JsonLdContextDocumentProvider? contextDocumentProvider, String? baseUri, JsonValue? expandContext, bool skipInvalidRdfTerms = false, RdfDirection? rdfDirection, JsonLdProcessingMode processingMode = JsonLdProcessingMode.jsonLd11})
-
Creates a new JSON-LD decoder options object with default settings
const
Properties
- baseUri → String?
-
Overrides the document URL as the effective base for resolving relative
IRIs.
final
- contextDocumentProvider → JsonLdContextDocumentProvider?
-
Provider for resolving external
@contextdocuments referenced by IRI.final - expandContext → JsonValue?
-
An optional context that is applied before the document's own
@context.final - hashCode → int
-
The hash code for this object.
no setterinherited
- processingMode → JsonLdProcessingMode
-
JSON-LD processing mode used for version-gated features.
final
- rdfDirection → RdfDirection?
-
Optional RDF direction serialization mode for value objects containing
@direction.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skipInvalidRdfTerms → bool
-
Controls how invalid RDF terms produced during JSON-LD to RDF conversion
are handled.
final
Methods
-
copyWith(
{JsonLdContextDocumentProvider? contextDocumentProvider, String? baseUri, JsonValue? expandContext, bool? skipInvalidRdfTerms, RdfDirection? rdfDirection, JsonLdProcessingMode? processingMode}) → JsonLdDecoderOptions -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
from(
RdfGraphDecoderOptions options) → JsonLdDecoderOptions - Creates a JSON-LD decoder options object from generic RDF decoder options