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

    Class SparqlLexer

    A SPARQL 1.2 compliant lexer.

    Hierarchy

    • Lexer
      • SparqlLexer

    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

    • Will lex(Tokenize) a string. Note that this can be called repeatedly on different strings as this method does not modify the state of the Lexer.

      Parameters

      • text: string

        The string to lex

      • OptionalinitialMode: string

        The initial Lexer Mode to start with, by default this will be the first mode in the lexer's definition. If the lexer has no explicit modes it will be the implicit single 'default_mode' mode.

      Returns ILexingResult