NQuadsEncoderOptions class

Options for configuring the N-Quads encoder behavior.

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

The N-Quads 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

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

Properties

canonical bool
Whether to produce canonical N-Quads 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}) NQuadsEncoderOptions
Creates a copy of this NquadsEncoderOptions with the given fields replaced with new values.
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) NQuadsEncoderOptions
Creates an instance of NquadsEncoderOptions from generic encoder options.