TurtleEncoderOptions constructor

const TurtleEncoderOptions({
  1. Map<String, String> customPrefixes = const {},
  2. IriRelativizationOptions iriRelativization = const IriRelativizationOptions.full(),
  3. bool generateMissingPrefixes = true,
  4. bool useNumericLocalNames = false,
  5. bool includeBaseDeclaration = true,
  6. bool renderFragmentsAsPrefixed = true,
})

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;