Class SparqlTokeniser
A Class for Reading an Input Stream and generating SPARQL Tokens.
Implements
Inherited Members
Namespace: VDS.RDF.Parsing.Tokens
Assembly: dotNetRdf.dll
Syntax
public class SparqlTokeniser : BaseTokeniser, ITokeniser
Constructors
| Edit this page View SourceSparqlTokeniser(StreamReader, SparqlQuerySyntax)
Creates a new Instance of the Tokeniser.
Declaration
public SparqlTokeniser(StreamReader input, SparqlQuerySyntax syntax)
Parameters
Type | Name | Description |
---|---|---|
StreamReader | input | The Input Stream to generate Tokens from. |
SparqlQuerySyntax | syntax | Syntax Mode to use when parsing. |
SparqlTokeniser(TextReader, SparqlQuerySyntax)
Creates a new Instance of the Tokeniser.
Declaration
public SparqlTokeniser(TextReader input, SparqlQuerySyntax syntax)
Parameters
Type | Name | Description |
---|---|---|
TextReader | input | The Input to generate Tokens from. |
SparqlQuerySyntax | syntax | Syntax Mode to use when parsing. |
SparqlTokeniser(ParsingTextReader, SparqlQuerySyntax)
Creates a new Instance of the Tokeniser.
Declaration
public SparqlTokeniser(ParsingTextReader input, SparqlQuerySyntax syntax)
Parameters
Type | Name | Description |
---|---|---|
ParsingTextReader | input | The Input Stream to generate Tokens from. |
SparqlQuerySyntax | syntax | Syntax Mode to use when parsing. |
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. |