Class TriGParserContext
Parser Context class for TriG Parsers.
Implements
Inherited Members
Namespace: VDS.RDF.Parsing.Contexts
Assembly: dotNetRdf.dll
Syntax
public class TriGParserContext : TokenisingStoreParserContext, IParserContext
Constructors
| Edit this page View SourceTriGParserContext(IRdfHandler, ITokeniser)
Creates a new TriG Parser Context with default settings.
Declaration
public TriGParserContext(IRdfHandler handler, ITokeniser tokeniser)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | Store to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TriGParserContext(IRdfHandler, ITokeniser, bool, bool)
Creates a new TriG Parser Context with custom settings.
Declaration
public TriGParserContext(IRdfHandler handler, ITokeniser tokeniser, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | Store to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
bool | traceParsing | Whether to trace parsing. |
bool | traceTokeniser | Whether to trace tokenisation. |
TriGParserContext(IRdfHandler, ITokeniser, TokenQueueMode)
Creates a new TrigG Parser Context with custom settings.
Declaration
public TriGParserContext(IRdfHandler handler, ITokeniser tokeniser, TokenQueueMode queueMode)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | Store to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
TriGParserContext(IRdfHandler, ITokeniser, TokenQueueMode, bool, bool)
Creates a new TriG Parser Context with custom settings.
Declaration
public TriGParserContext(IRdfHandler handler, ITokeniser tokeniser, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | Store 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. |
TriGParserContext(IRdfHandler, ITokeniser, TokenQueueMode, bool, bool, IUriFactory)
Creates a new TriG Parser Context with custom settings.
Declaration
public TriGParserContext(IRdfHandler handler, ITokeniser tokeniser, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | Store 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 | URI factory to use. |
TriGParserContext(ITripleStore, ITokeniser)
Creates a new TriG Parser Context with default settings.
Declaration
public TriGParserContext(ITripleStore store, ITokeniser tokeniser)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Store to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TriGParserContext(ITripleStore, ITokeniser, bool, bool)
Creates a new TriG Parser Context with custom settings.
Declaration
public TriGParserContext(ITripleStore store, ITokeniser tokeniser, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Store to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
bool | traceParsing | Whether to trace parsing. |
bool | traceTokeniser | Whether to trace tokenisation. |
TriGParserContext(ITripleStore, ITokeniser, TokenQueueMode)
Creates a new TrigG Parser Context with custom settings.
Declaration
public TriGParserContext(ITripleStore store, ITokeniser tokeniser, TokenQueueMode queueMode)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Store to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
TriGParserContext(ITripleStore, ITokeniser, TokenQueueMode, bool, bool)
Creates a new TriG Parser Context with custom settings.
Declaration
public TriGParserContext(ITripleStore store, ITokeniser tokeniser, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Store 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. |
Properties
| Edit this page View SourceDefaultGraphExists
Gets/Sets whether the Default Graph exists.
Declaration
public bool DefaultGraphExists { get; set; }
Property Value
Type | Description |
---|---|
bool |
QNameUnescapeFunction
Function for unescaping QNames.
Declaration
public Func<string, string> QNameUnescapeFunction { get; }
Property Value
Type | Description |
---|---|
Func<string, string> |
Syntax
Gets/Sets the Syntax to be used.
Declaration
public TriGSyntax Syntax { get; set; }
Property Value
Type | Description |
---|---|
TriGSyntax |