TurtleEncoderOptions constructor
Creates a new TurtleEncoderOptions instance.
Parameters:
customPrefixesCustom 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.generateMissingPrefixesWhen true (default), the encoder will automatically generate prefix declarations for IRIs that don't have a matching prefix.useNumericLocalNamesWhen false (default), IRIs with local names that start with a digit will be written as full IRIs instead of using prefixed notation.includeBaseDeclarationWhether to include base URI declarations in the output. Defaults to true if not provided.renderFragmentsAsPrefixedWhether 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;