outputMode property
The output mode for JSON-LD encoding.
- JsonLdOutputMode.expanded: Produces expanded JSON-LD (no
@context, full IRIs, all values in arrays). - JsonLdOutputMode.compact: Produces compact JSON-LD with a
@contextand abbreviated IRIs (the default). - JsonLdOutputMode.flattened: Produces flattened JSON-LD where all nodes
are collected into a single top-level
@grapharray with no nesting. The output is then compacted using the same context as compact mode.
Implementation
final JsonLdOutputMode outputMode;