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: true
OptionalmaxMaximum line width before wrapping (0 = no wrapping). Default: 0
OptionalnewlineWhen true (and prettyPrint is enabled), place the subject on its own line and start the predicate list on the next line.
Example: ex:s a ex:T; ex:p ex:o.
Default: false
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.
OptionalprettyWhether to use pretty printing with indentation and line breaks. Default: true
OptionalsortSorting option for quads.
OptionalspaceAdd a space before punctuation (. and ;). Default: false.
OptionaluseWhether to use the 'a' shorthand for rdf:type. Default: true for Turtle/TriG/N3, false for N-Triples/N-Quads
Turtle-specific formatting options.