Class TokenisingResultParserContext
Class for Tokenising SPARQL Results Parser Contexts.
Implements
Inherited Members
Namespace: VDS.RDF.Parsing.Contexts
Assembly: dotNetRdf.dll
Syntax
public class TokenisingResultParserContext : BaseResultsParserContext, IResultsParserContext
Constructors
| Edit this page View SourceTokenisingResultParserContext(ISparqlResultsHandler, ITokeniser, bool, bool, IUriFactory)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingResultParserContext(ISparqlResultsHandler handler, ITokeniser tokeniser, bool traceParsing, bool traceTokeniser, IUriFactory uriFactory = null)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsHandler | handler | Results Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
bool | traceParsing | Whether to trace parsing. |
bool | traceTokeniser | Whether to trace tokenisation. |
IUriFactory | uriFactory | The factory to use when creating URIs while tokenising. |
TokenisingResultParserContext(ISparqlResultsHandler, ITokeniser, IUriFactory)
Creates a new Tokenising Parser Context with default settings.
Declaration
public TokenisingResultParserContext(ISparqlResultsHandler handler, ITokeniser tokeniser, IUriFactory uriFactory = null)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsHandler | handler | Results Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
IUriFactory | uriFactory | The factory to use when creating URIs while tokenising. |
TokenisingResultParserContext(ISparqlResultsHandler, ITokeniser, TokenQueueMode, bool, bool, IUriFactory)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingResultParserContext(ISparqlResultsHandler handler, ITokeniser tokeniser, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser, IUriFactory uriFactory = null)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsHandler | handler | Results Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
bool | traceParsing | Whether to trace parsing. |
bool | traceTokeniser | Whether to trace tokenisation. |
IUriFactory | uriFactory | The factory to use when creating URIs while tokenising. |
TokenisingResultParserContext(ISparqlResultsHandler, ITokeniser, TokenQueueMode, IUriFactory)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingResultParserContext(ISparqlResultsHandler handler, ITokeniser tokeniser, TokenQueueMode queueMode, IUriFactory uriFactory = null)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResultsHandler | handler | Results Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
IUriFactory | uriFactory | The factory to use when creating URIs while tokenising. |
TokenisingResultParserContext(SparqlResultSet, ITokeniser, bool, bool, IUriFactory)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingResultParserContext(SparqlResultSet results, ITokeniser tokeniser, bool traceParsing, bool traceTokeniser, IUriFactory uriFactory = null)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
bool | traceParsing | Whether to trace parsing. |
bool | traceTokeniser | Whether to trace tokenisation. |
IUriFactory | uriFactory | The factory to use when creating URIs while tokenising. |
TokenisingResultParserContext(SparqlResultSet, ITokeniser, IUriFactory)
Creates a new Tokenising Parser Context with default settings.
Declaration
public TokenisingResultParserContext(SparqlResultSet results, ITokeniser tokeniser, IUriFactory uriFactory = null)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
IUriFactory | uriFactory | The factory to use when creating URIs while tokenising. |
TokenisingResultParserContext(SparqlResultSet, ITokeniser, TokenQueueMode, bool, bool, IUriFactory)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingResultParserContext(SparqlResultSet results, ITokeniser tokeniser, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser, IUriFactory uriFactory = null)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
bool | traceParsing | Whether to trace parsing. |
bool | traceTokeniser | Whether to trace tokenisation. |
IUriFactory | uriFactory | The factory to use when creating URIs while tokenising. |
TokenisingResultParserContext(SparqlResultSet, ITokeniser, TokenQueueMode, IUriFactory)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingResultParserContext(SparqlResultSet results, ITokeniser tokeniser, TokenQueueMode queueMode, IUriFactory uriFactory = null)
Parameters
Type | Name | Description |
---|---|---|
SparqlResultSet | results | Result Set to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
IUriFactory | uriFactory | The factory to use when creating URIs while tokenising. |
Fields
| Edit this page View Source_localTokens
Local Tokens.
Declaration
protected Stack<IToken> _localTokens
Field Value
Type | Description |
---|---|
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 |
---|---|
bool |
Properties
| Edit this page View SourceLocalTokens
Gets the Local Tokens stack.
Declaration
public Stack<IToken> LocalTokens { get; }
Property Value
Type | Description |
---|---|
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 |
---|---|
bool |