includeBaseDeclaration property
final
Whether to include base URI declarations in the output
This option only applies when a baseUri is provided during encoding. When true and a baseUri is provided, the serializer includes the base URI declaration in the format-specific way (e.g., @base in Turtle, @base in JSON-LD context). When false, the baseUri is still used for URI relativization but not declared in the output. Has no effect if no baseUri is provided during encoding.
Implementation
final bool includeBaseDeclaration;