Class SparqlQueryParserContext
Parser Context for SPARQL Query parser.
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 SparqlQueryParserContext : TokenisingParserContext, IParserContext, ITokenisingParserContext
Constructors
| Improve this Doc View SourceSparqlQueryParserContext(SparqlQueryParserContext, ITokenQueue)
Creates a new SPARQL Query Parser Context for parsing sub-queries.
Declaration
protected SparqlQueryParserContext(SparqlQueryParserContext parent, ITokenQueue tokens)
Parameters
Type | Name | Description |
---|---|---|
SparqlQueryParserContext | parent | Parent Query Parser Context. |
ITokenQueue | tokens | Tokens that need parsing to form a subquery. |
SparqlQueryParserContext(ITokeniser)
Creates a new SPARQL Query Parser Context with default settings.
Declaration
public SparqlQueryParserContext(ITokeniser tokeniser)
Parameters
Type | Name | Description |
---|---|---|
ITokeniser | tokeniser | Tokeniser to use. |
SparqlQueryParserContext(ITokeniser, Boolean, Boolean)
Creates a new SPARQL Query Parser Context with custom settings.
Declaration
public SparqlQueryParserContext(ITokeniser tokeniser, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
ITokeniser | tokeniser | Tokeniser to use. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
SparqlQueryParserContext(ITokeniser, TokenQueueMode)
Creates a new SPARQL Query Parser Context with custom settings.
Declaration
public SparqlQueryParserContext(ITokeniser tokeniser, TokenQueueMode queueMode)
Parameters
Type | Name | Description |
---|---|---|
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
SparqlQueryParserContext(ITokeniser, TokenQueueMode, Boolean, Boolean)
Creates a new SPARQL Query Parser Context with custom settings.
Declaration
public SparqlQueryParserContext(ITokeniser tokeniser, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
SparqlQueryParserContext(ITokenQueue)
Creates a new Query Parser Context from the given Token Queue.
Declaration
protected SparqlQueryParserContext(ITokenQueue tokens)
Parameters
Type | Name | Description |
---|---|---|
ITokenQueue | tokens | Token Queue. |
Properties
| Improve this Doc View SourceBlankNodeID
Gets the last Blank Node ID that was issued.
Declaration
public int BlankNodeID { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
BlankNodeIDUsages
Gets the mapping of in use Blank Nodes IDs.
Declaration
public Dictionary<string, int> BlankNodeIDUsages { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Int32> |
CheckBlankNodeScope
Gets/Sets whether Blank Node scoping must be checked.
Declaration
public bool CheckBlankNodeScope { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
If false then only name tracking will be done to prevent auto-generated IDs colliding with user allocated IDs.
|
Improve this Doc
View Source
DefaultBaseUri
Gets/Sets the default Base Uri to resolve relative URIs against.
Declaration
public Uri DefaultBaseUri { get; set; }
Property Value
Type | Description |
---|---|
System.Uri |
ExpressionFactories
Gets the Custom Expression Factories valid for this Parser.
Declaration
public IEnumerable<ISparqlCustomExpressionFactory> ExpressionFactories { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ISparqlCustomExpressionFactory> |
GraphPatternID
Gets/Sets the current Graph Pattern ID.
Declaration
public int GraphPatternID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NextAliasID
Gets the Next Available Alias ID for aliasing Project Expressions and Aggregates which don't have an Aggregate Specified.
Declaration
public int NextAliasID { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Query
Gets the Query that this Parser Context is populating.
Declaration
public SparqlQuery Query { get; }
Property Value
Type | Description |
---|---|
SparqlQuery |
SubQueryMode
Returns whether this Parser Context is for a sub-query.
Declaration
public bool SubQueryMode { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
SyntaxMode
Gets/Sets the Syntax that should be supported.
Declaration
public SparqlQuerySyntax SyntaxMode { get; set; }
Property Value
Type | Description |
---|---|
SparqlQuerySyntax |
VerbSeen
Gets/Sets whether the Query Verb has been seen.
Declaration
public bool VerbSeen { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceGetNewBlankNodeID()
Gets a new Blank Node ID.
Declaration
public string GetNewBlankNodeID()
Returns
Type | Description |
---|---|
System.String |