TurtleEncoderOptions constructor
Creates a new TurtleEncoderOptions instance.
Parameters:
customPrefixes
Custom namespace prefixes to use during encoding. A mapping of prefix strings to namespace URIs that will be used to generate compact prefix declarations in the Turtle output.generateMissingPrefixes
When true (default), the encoder will automatically generate prefix declarations for IRIs that don't have a matching prefix.useNumericLocalNames
When false (default), IRIs with local names that start with a digit will be written as full IRIs instead of using prefixed notation.includeBaseDeclaration
Whether to include base URI declarations in the output. Defaults to true if not provided.renderFragmentsAsPrefixed
Whether to render fragment IRIs as prefixed IRIs (true, default) or as relative IRIs (false).
Implementation
const TurtleEncoderOptions({
super.customPrefixes = const {},
super.iriRelativization = const IriRelativizationOptions.full(),
this.generateMissingPrefixes = true,
this.useNumericLocalNames = false,
bool includeBaseDeclaration = true,
this.renderFragmentsAsPrefixed = true,
}) : includeBaseDeclaration = includeBaseDeclaration;