TurtleEncoderOptions class

Configuration options for Turtle serialization.

This class provides configuration settings that control how RDF graphs are serialized to the Turtle format, including namespace prefix handling and automatic prefix generation.

Example:

final options = TurtleEncoderOptions(
  customPrefixes: {'ex': 'http://example.org/'},
  generateMissingPrefixes: true
);
final encoder = TurtleEncoder(options: options);
Inheritance

Constructors

TurtleEncoderOptions({Map<String, String> customPrefixes = const {}, bool generateMissingPrefixes = true, bool useNumericLocalNames = false})
Creates a new TurtleEncoderOptions instance.
const

Properties

customPrefixes Map<String, String>
Custom namespace prefixes to use during encoding.
finalinherited
generateMissingPrefixes bool
Controls automatic generation of namespace prefixes for IRIs without matching prefixes.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useNumericLocalNames bool
Controls whether local names that start with a digit are written using prefix notation.
final

Methods

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(RdfGraphEncoderOptions options) TurtleEncoderOptions
Creates a TurtleEncoderOptions instance from generic RdfGraphEncoderOptions.