Show / Hide Table of Contents

Class TurtleTokeniser

A Class for Reading an Input Stream and generating Turtle Tokens from it.

Inheritance
object
BaseTokeniser
TurtleTokeniser
Implements
ITokeniser
Inherited Members
BaseTokeniser.Format
BaseTokeniser.StartNewToken()
BaseTokeniser.Peek()
BaseTokeniser.Backtrack()
BaseTokeniser.Value
BaseTokeniser.Length
BaseTokeniser.CurrentLine
BaseTokeniser.CurrentPosition
BaseTokeniser.StartLine
BaseTokeniser.StartPosition
BaseTokeniser.EndLine
BaseTokeniser.EndPosition
BaseTokeniser.LastTokenType
BaseTokeniser.HasBacktracked
BaseTokeniser.ConsumeCharacter()
BaseTokeniser.ConsumeCharacter(bool)
BaseTokeniser.ConsumeNewLine(bool)
BaseTokeniser.ConsumeNewLine(bool, bool)
BaseTokeniser.SkipCharacter()
BaseTokeniser.DiscardWhiteSpace()
BaseTokeniser.HandleEscapes(TokeniserEscapeMode)
BaseTokeniser.HandleComplexLocalNameEscapes()
BaseTokeniser.IsHexDigit(char)
BaseTokeniser.Error(string)
BaseTokeniser.UnexpectedCharacter(char, string)
BaseTokeniser.UnexpectedEndOfInput(string)
BaseTokeniser.UnexpectedNewLine(string)
BaseTokeniser.UnexpectedToken(string, IToken)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing.Tokens
Assembly: dotNetRdf.dll
Syntax
public class TurtleTokeniser : BaseTokeniser, ITokeniser

Constructors

| Edit this page View Source

TurtleTokeniser(StreamReader, bool)

Creates a new Turtle Tokeniser.

Declaration
public TurtleTokeniser(StreamReader input, bool validateIris = false)
Parameters
Type Name Description
StreamReader input

The Input Stream to generate Tokens from.

bool validateIris

Whether to validate IRI tokens.

| Edit this page View Source

TurtleTokeniser(StreamReader, TurtleSyntax, bool, bool)

Creates a new Turtle Tokeniser.

Declaration
public TurtleTokeniser(StreamReader input, TurtleSyntax syntax, bool validateIris = false, bool withTrig = false)
Parameters
Type Name Description
StreamReader input

The Input Stream to generate Tokens from.

TurtleSyntax syntax

Turtle Syntax.

bool validateIris

Whether to validate IRI tokens.

bool withTrig

Whether to support emitting TRiG-specific tokens.

Remarks

IRIs will only be validated if syntax is set to W3C and validateIris is true.

| Edit this page View Source

TurtleTokeniser(TextReader, bool, bool)

Creates a new Turtle Tokeniser.

Declaration
public TurtleTokeniser(TextReader input, bool validateIris = false, bool withTrig = false)
Parameters
Type Name Description
TextReader input

Input to read from.

bool validateIris

Whether to validate IRI tokens.

bool withTrig

Whether to support emitting TRiG-specific tokens.

| Edit this page View Source

TurtleTokeniser(TextReader, TurtleSyntax, bool, bool)

Creates a new Turtle Tokeniser.

Declaration
public TurtleTokeniser(TextReader input, TurtleSyntax syntax, bool validateIris = false, bool withTrig = false)
Parameters
Type Name Description
TextReader input

Input to read from.

TurtleSyntax syntax

Turtle Syntax.

bool validateIris

Whether to validate IRI tokens.

bool withTrig

Whether to support emitting TRiG-specific tokens.

Remarks

IRIs will only be validated if syntax is set to W3C and validateIris is true.

| Edit this page View Source

TurtleTokeniser(ParsingTextReader, bool)

Creates a new Turtle Tokeniser.

Declaration
public TurtleTokeniser(ParsingTextReader input, bool validateIris = false)
Parameters
Type Name Description
ParsingTextReader input

The Input Stream to generate Tokens from.

bool validateIris

Whether to validate IRI tokens.

| Edit this page View Source

TurtleTokeniser(ParsingTextReader, TurtleSyntax, bool, bool)

Creates a new Turtle Tokeniser.

Declaration
public TurtleTokeniser(ParsingTextReader input, TurtleSyntax syntax, bool validateIris = false, bool withTrig = false)
Parameters
Type Name Description
ParsingTextReader input

The Input Stream to generate Tokens from.

TurtleSyntax syntax

Turtle Syntax.

bool validateIris

Whether to validate IRI tokens.

bool withTrig

Whether to support emitting TRiG-specific tokens.

Remarks

IRIs will only be validated if syntax is set to W3C and validateIris is true.

Methods

| Edit this page View Source

GetNextToken()

Gets the next parseable Token from the Input or raises an Error.

Declaration
public override IToken GetNextToken()
Returns
Type Description
IToken
Overrides
BaseTokeniser.GetNextToken()
Exceptions
Type Condition
RdfParseException

Occurs when a Token cannot be parsed.

Implements

ITokeniser

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • TurtleTokeniser(StreamReader, bool)
    • TurtleTokeniser(StreamReader, TurtleSyntax, bool, bool)
    • TurtleTokeniser(TextReader, bool, bool)
    • TurtleTokeniser(TextReader, TurtleSyntax, bool, bool)
    • TurtleTokeniser(ParsingTextReader, bool)
    • TurtleTokeniser(ParsingTextReader, TurtleSyntax, bool, bool)
  • Methods
    • GetNextToken()
  • Implements
  • Extension Methods
Back to top Generated by DocFX