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

    Class TurtleFormatter

    Formatter for Turtle (Terse RDF Triple Language).

    Uses the W3C-compliant TurtleLexer from mentor-rdf-parsers for tokenization.

    This formatter can:

    • Format Turtle documents with consistent indentation
    • Normalize prefix directive style
    • Apply consistent spacing around punctuation
    • Preserve comments
    • Support RDF 1.2 features (triple terms, annotations)

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    syntax: RdfSyntax = RdfSyntax.Turtle

    The RDF syntax this formatter handles.

    Methods