generateMissingPrefixes property

bool generateMissingPrefixes
final

Controls automatic generation of namespace prefixes for IRIs without matching prefixes.

When true (default), the encoder will automatically generate namespace prefixes for IRIs that don't have a matching prefix in either the custom prefixes or the standard namespace mappings.

Applies to JsonLdOutputMode.compact and JsonLdOutputMode.flattened. Has no effect in JsonLdOutputMode.expanded (which has no @context).

Implementation

final bool generateMissingPrefixes;