Class TokenisingParserContext
Class for Parser Contexts for Tokeniser based Parsing.
Inheritance
Inherited Members
Namespace: VDS.RDF.Parsing.Contexts
Assembly: dotNetRdf.dll
Syntax
public class TokenisingParserContext : BaseParserContext, IParserContext, ITokenisingParserContext
Constructors
| Improve this Doc View SourceTokenisingParserContext(IGraph, ITokeniser, bool, bool)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingParserContext(IGraph g, ITokeniser tokeniser, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
TokenisingParserContext(IGraph, ITokeniser, TokenQueueMode, bool, bool)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingParserContext(IGraph g, ITokeniser tokeniser, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph 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. |
TokenisingParserContext(IGraph, ITokeniser, TokenQueueMode)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingParserContext(IGraph g, ITokeniser tokeniser, TokenQueueMode queueMode)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
TokenisingParserContext(IGraph, ITokeniser)
Creates a new Tokenising Parser Context with default settings.
Declaration
public TokenisingParserContext(IGraph g, ITokeniser tokeniser)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenisingParserContext(IRdfHandler, ITokeniser, bool, bool)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingParserContext(IRdfHandler handler, ITokeniser tokeniser, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
TokenisingParserContext(IRdfHandler, ITokeniser, IUriFactory)
Creates a new tokenising parser context with default settings.
Declaration
public TokenisingParserContext(IRdfHandler handler, ITokeniser tokeniser, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF handler. |
ITokeniser | tokeniser | Tokeniser to use. |
IUriFactory | uriFactory | URI factory to use. |
TokenisingParserContext(IRdfHandler, ITokeniser, TokenQueueMode, bool, bool, IUriFactory)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingParserContext(IRdfHandler handler, ITokeniser tokeniser, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser, IUriFactory uriFactory = null)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF 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. |
IUriFactory | uriFactory | The factory to use when creating URIs during the parse. If null the root URI factory will be used. |
TokenisingParserContext(IRdfHandler, ITokeniser, TokenQueueMode)
Creates a new Tokenising Parser Context with custom settings.
Declaration
public TokenisingParserContext(IRdfHandler handler, ITokeniser tokeniser, TokenQueueMode queueMode)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
TokenisingParserContext(IRdfHandler, ITokeniser)
Creates a new Tokenising Parser Context with default settings.
Declaration
public TokenisingParserContext(IRdfHandler handler, ITokeniser tokeniser)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
Fields
| Improve this Doc View Source_localTokens
Local Tokens.
Declaration
protected Stack<IToken> _localTokens
Field Value
Type | Description |
---|---|
System.Collections.Generic.Stack<T><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<T><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 |