Class TurtleTokeniser
A Class for Reading an Input Stream and generating Turtle Tokens from it.
Implements
Inherited Members
Namespace: VDS.RDF.Parsing.Tokens
Assembly: dotNetRdf.dll
Syntax
public class TurtleTokeniser : BaseTokeniser, ITokeniser
Constructors
| Edit this page View SourceTurtleTokeniser(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. |
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.
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. |
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.
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. |
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 SourceGetNextToken()
Gets the next parseable Token from the Input or raises an Error.
Declaration
public override IToken GetNextToken()
Returns
Type | Description |
---|---|
IToken |
Overrides
Exceptions
Type | Condition |
---|---|
RdfParseException | Occurs when a Token cannot be parsed. |