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

    Class TurtleLexer

    A W3C compliant lexer for the Turtle syntax.

    Hierarchy

    • Lexer
      • TurtleLexer

    Implements

    Index

    Constructors

    Properties

    blankNodeIdGenerator?: BlankNodeIdGenerator

    Optional blank node ID generator function. When set or undefined, the lexer will automatically assign blank node IDs to tokens. Set to null to disable automatic blank node ID assignment.

    lexerDefinitionErrors: ILexerDefinitionError[]
    NA: RegExp

    A Constant to mark "abstract" TokenTypes that are used purely as token categories. See: ITokenConfig.categories

    SKIPPED: string

    Methods

    • Tokenizes a string input and optionally assigns blank node IDs to relevant tokens.

      Parameters

      • text: string
      • OptionalinitialMode: string

      Returns ILexingResult