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

    Class N3Lexer

    A W3C compliant lexer for the N3 (Notation3) syntax.

    Hierarchy

    • Lexer
      • N3Lexer

    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