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
| Improve this Doc View SourceTurtleTokeniser(StreamReader, bool)
Creates a new Turtle Tokeniser.
Declaration
public TurtleTokeniser(StreamReader input, bool validateIris = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.StreamReader | input | The Input Stream to generate Tokens from. |
| System.Boolean | 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 |
|---|---|---|
| System.IO.StreamReader | input | The Input Stream to generate Tokens from. |
| TurtleSyntax | syntax | Turtle Syntax. |
| System.Boolean | validateIris | Whether to validate IRI tokens. |
| System.Boolean | withTrig |
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 |
|---|---|---|
| System.IO.TextReader | input | Input to read from. |
| System.Boolean | validateIris | Whether to validate IRI tokens. |
| System.Boolean | withTrig |
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 |
|---|---|---|
| System.IO.TextReader | input | Input to read from. |
| TurtleSyntax | syntax | Turtle Syntax. |
| System.Boolean | validateIris | Whether to validate IRI tokens. |
| System.Boolean | withTrig |
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. |
| System.Boolean | 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. |
| System.Boolean | validateIris | Whether to validate IRI tokens. |
| System.Boolean | withTrig |
Remarks
IRIs will only be validated if syntax is set to W3C and validateIris is true.
Methods
| Improve this Doc 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. |