@faubulous/mentor-rdf-serializers
    Preparing search index...

    Interface NQuadsFormatterOptions

    N-Quads-specific formatting options.

    interface NQuadsFormatterOptions {
        alignObjects?: boolean;
        alignPredicates?: boolean;
        baseIri?: string;
        blankLinesBetweenSubjects?: boolean;
        blankNodeIdGenerator?: (counter: number) => string;
        blankNodeStyle?: BlankNodeStyle;
        emitDirectives?: boolean;
        groupBySubject?: boolean;
        indent?: string;
        inlineSingleUseBlankNodes?: boolean;
        lineEnd?: string;
        lowercaseDirectives?: boolean;
        maxLineWidth?: number;
        normalizeWhitespace?: boolean;
        objectListStyle?: ObjectListStyle;
        predicateListStyle?: PredicateListStyle;
        prefixes?: Record<string, string>;
        prettyPrint?: boolean;
        sort?: SortingOption;
        useRdfTypeShorthand?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    alignObjects?: boolean

    Whether to align objects in columns (requires alignPredicates). Default: false

    alignPredicates?: boolean

    Whether to align predicates in columns. Default: false

    baseIri?: string

    The base IRI for relative IRI resolution.

    blankLinesBetweenSubjects?: boolean

    Whether to insert blank lines between subjects. Default: true

    blankNodeIdGenerator?: (counter: number) => string

    Custom blank node ID generator. If provided, this function will be called to generate IDs for new blank nodes.

    blankNodeStyle?: BlankNodeStyle

    Blank node formatting style. Default: 'auto'

    emitDirectives?: boolean

    Whether to emit PREFIX/BASE directives in serializer output. Default: true.

    groupBySubject?: boolean

    Whether to group statements by subject (Turtle/TriG style). Default: true for Turtle/TriG, false for N-Triples/N-Quads

    indent?: string

    Indentation string (default: ' ' for 2 spaces).

    inlineSingleUseBlankNodes?: boolean

    Whether to serialize single-use blank nodes as local property lists ([ ... ]) when pretty printing.

    This applies only when prettyPrint is true. Default: true

    lineEnd?: string

    Line ending string (default: '\n').

    lowercaseDirectives?: boolean

    Whether to use lowercase @prefix and @base (Turtle style). When false, uses uppercase PREFIX and BASE (SPARQL style). Default: false (SPARQL style)

    maxLineWidth?: number

    Maximum line width before wrapping (0 = no wrapping). Default: 0

    normalizeWhitespace?: boolean

    Whether to normalize whitespace to single spaces. Default: true

    objectListStyle?: ObjectListStyle

    Object list formatting style. Default: 'auto'

    predicateListStyle?: PredicateListStyle

    Predicate list formatting style. Default: 'first-same-line'

    prefixes?: Record<string, string>

    Prefix mappings for compact IRI serialization. Maps prefix names to namespace IRIs.

    prettyPrint?: boolean

    Whether to use pretty printing with indentation and line breaks. Default: true

    Sorting option for quads.

    useRdfTypeShorthand?: boolean

    Whether to use the 'a' shorthand for rdf:type. Default: true for Turtle/TriG/N3, false for N-Triples/N-Quads