includeBaseDeclaration property
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 encoder includes @base in the
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.
Applies to JsonLdOutputMode.compact and JsonLdOutputMode.flattened.
Has no effect in JsonLdOutputMode.expanded (which has no @context).
Implementation
final bool includeBaseDeclaration;