NTriplesEncoderOptions class

Options for configuring the N-Triples encoder behavior.

N-Triples has a very simple serialization format with minimal configurable options compared to other RDF serialization formats.

The N-Triples format specification doesn't support namespace prefixes, so the customPrefixes property is implemented to return an empty map to satisfy the interface requirement.

Inheritance

Constructors

NTriplesEncoderOptions.new({bool canonical = false})
Creates a new instance of NTriplesEncoderOptions with default settings.
const

Properties

canonical bool
Whether to produce canonical N-Triples output.
final
customPrefixes Map<String, String>
Custom namespace prefixes to use during encoding.
no setteroverride
hashCode int
The hash code for this object.
no setteroverride
iriRelativization IriRelativizationOptions
Options for controlling IRI relativization behavior.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Map<String, String>? customPrefixes, IriRelativizationOptions? iriRelativization, bool? canonical}) NTriplesEncoderOptions
Creates a copy of this NTriplesEncoderOptions with the given fields replaced with new values.
override
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.
override

Static Methods

from(RdfGraphEncoderOptions options) NTriplesEncoderOptions
Creates an instance of NTriplesEncoderOptions from generic encoder options.