Class TokenisingResultParserContext
Class for Tokenising SPARQL Results Parser Contexts.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Parsing.Contexts
Assembly: dotNetRDF.dll
Syntax
public class TokenisingResultParserContext : BaseResultsParserContext, IResultsParserContext
Constructors
| Improve this Doc View SourceTokenisingResultParserContext(ISparqlResultsHandler, ITokeniser)
Creates a new Tokenising Parser Context with default settings.
Declaration
public TokenisingResultParserContext(ISparqlResultsHandler handler, ITokeniser tokeniser)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsHandler | handler | Results Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenisingResultParserContext(ISparqlResultsHandler, ITokeniser, Boolean, Boolean)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingResultParserContext(ISparqlResultsHandler handler, ITokeniser tokeniser, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsHandler | handler | Results Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
TokenisingResultParserContext(ISparqlResultsHandler, ITokeniser, TokenQueueMode)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingResultParserContext(ISparqlResultsHandler handler, ITokeniser tokeniser, TokenQueueMode queueMode)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsHandler | handler | Results Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
TokenisingResultParserContext(ISparqlResultsHandler, ITokeniser, TokenQueueMode, Boolean, Boolean)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingResultParserContext(ISparqlResultsHandler handler, ITokeniser tokeniser, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsHandler | handler | Results Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
TokenisingResultParserContext(SparqlResultSet, ITokeniser)
Creates a new Tokenising Parser Context with default settings.
Declaration
public TokenisingResultParserContext(SparqlResultSet results, ITokeniser tokeniser)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenisingResultParserContext(SparqlResultSet, ITokeniser, Boolean, Boolean)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingResultParserContext(SparqlResultSet results, ITokeniser tokeniser, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
TokenisingResultParserContext(SparqlResultSet, ITokeniser, TokenQueueMode)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingResultParserContext(SparqlResultSet results, ITokeniser tokeniser, TokenQueueMode queueMode)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
TokenisingResultParserContext(SparqlResultSet, ITokeniser, TokenQueueMode, Boolean, Boolean)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingResultParserContext(SparqlResultSet results, ITokeniser tokeniser, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
Fields
| Improve this Doc View Source_localTokens
Local Tokens.
Declaration
protected Stack<IToken> _localTokens
Field Value
Type | Description |
---|---|
System.Collections.Generic.Stack<IToken> |
_queue
Tokeniser.
Declaration
protected ITokenQueue _queue
Field Value
Type | Description |
---|---|
ITokenQueue |
_traceTokeniser
Is Tokeniser traced?.
Declaration
protected bool _traceTokeniser
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
| Improve this Doc View SourceLocalTokens
Gets the Local Tokens stack.
Declaration
public Stack<IToken> LocalTokens { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Stack<IToken> |
Tokens
Gets the Token Queue.
Declaration
public ITokenQueue Tokens { get; }
Property Value
Type | Description |
---|---|
ITokenQueue |
TraceTokeniser
Gets/Sets whether tokeniser tracing is used.
Declaration
public bool TraceTokeniser { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |