OptionalalignWhether to align objects in columns (requires alignPredicates). Default: false
OptionalalignWhether to align predicates in columns. Default: false
OptionalbaseThe base IRI for relative IRI resolution.
OptionalblankWhether to insert blank lines between subjects. Default: true
OptionalblankCustom blank node ID generator. If provided, this function will be called to generate IDs for new blank nodes.
OptionalblankBlank node formatting style. Default: 'auto'
OptionalemitWhether to emit PREFIX/BASE directives in serializer output.
Default: true.
OptionalgroupWhether to group statements by subject (Turtle/TriG style). Default: true for Turtle/TriG, false for N-Triples/N-Quads
OptionalindentIndentation string (default: ' ' for 2 spaces).
OptionalinlineWhether to serialize single-use blank nodes as local property lists
([ ... ]) when pretty printing.
This applies only when prettyPrint is true.
Default: true
OptionallineLine ending string (default: '\n').
OptionallowercaseWhether to use lowercase @prefix and @base (Turtle style).
When false, uses uppercase PREFIX and BASE (SPARQL style).
Default: false (SPARQL style)
OptionalmaxMaximum line width before wrapping (0 = no wrapping). Default: 0
OptionalobjectObject list formatting style. Default: 'auto'
OptionalpredicatePredicate list formatting style. Default: 'first-same-line'
OptionalprefixesPrefix mappings for compact IRI serialization. Maps prefix names to namespace IRIs.
OptionalpreserveWhether to preserve the original blank node IDs from tokens. When true, uses the blankNodeId from token payloads. Default: true
OptionalpreserveWhether to preserve comments from the source. When true, comments are included in the output. Default: true
OptionalprettyWhether to use pretty printing with indentation and line breaks. Default: true
OptionalsortSorting option for quads.
OptionaluseWhether to use the 'a' shorthand for rdf:type. Default: true for Turtle/TriG/N3, false for N-Triples/N-Quads
Options for token-based serialization.