Show / Hide Table of Contents

Class SparqlQueryParserContext

Parser Context for SPARQL Query parser.

Inheritance
System.Object
BaseParserContext
TokenisingParserContext
SparqlQueryParserContext
Implements
IParserContext
ITokenisingParserContext
Inherited Members
TokenisingParserContext._queue
TokenisingParserContext._traceTokeniser
TokenisingParserContext._localTokens
TokenisingParserContext.Tokens
TokenisingParserContext.LocalTokens
TokenisingParserContext.TraceTokeniser
BaseParserContext._handler
BaseParserContext._traceParsing
BaseParserContext.Handler
BaseParserContext.UriFactory
BaseParserContext.TraceParsing
BaseParserContext.Namespaces
BaseParserContext.BaseUri
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing.Contexts
Assembly: dotNetRdf.dll
Syntax
public class SparqlQueryParserContext : TokenisingParserContext, IParserContext, ITokenisingParserContext

Constructors

| Improve this Doc View Source

SparqlQueryParserContext(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.

| Improve this Doc View Source

SparqlQueryParserContext(ITokeniser, bool, bool)

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.

| Improve this Doc View Source

SparqlQueryParserContext(ITokeniser, TokenQueueMode, bool, bool, IUriFactory)

Creates a new SPARQL Query Parser Context with custom settings.

Declaration
public SparqlQueryParserContext(ITokeniser tokeniser, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser, IUriFactory uriFactory = null)
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.

IUriFactory uriFactory

URI Factory to use.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

SparqlQueryParserContext(ITokenQueue, Uri, INamespaceMapper)

Creates a new Query Parser Context from the given Token Queue.

Declaration
protected SparqlQueryParserContext(ITokenQueue tokens, Uri baseUri, INamespaceMapper namespaceMap)
Parameters
Type Name Description
ITokenQueue tokens

Token Queue.

System.Uri baseUri

The base URI to use when resolving relative URIS in the query. May be null if there is no initial base URI.

INamespaceMapper namespaceMap

The namespace map to use when resolving QNames in the query. If null, will default to a new empty namespace map.

Properties

| Improve this Doc View Source

BlankNodeID

Gets the last Blank Node ID that was issued.

Declaration
public int BlankNodeID { get; }
Property Value
Type Description
int
| Improve this Doc View Source

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<TKey, TValue><string, int>
| Improve this Doc View Source

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
| Improve this Doc View Source

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<T><ISparqlCustomExpressionFactory>
| Improve this Doc View Source

GraphPatternID

Gets/Sets the current Graph Pattern ID.

Declaration
public int GraphPatternID { get; set; }
Property Value
Type Description
int
| Improve this Doc View Source

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
int
| Improve this Doc View Source

Query

Gets the Query that this Parser Context is populating.

Declaration
public SparqlQuery Query { get; }
Property Value
Type Description
SparqlQuery
| Improve this Doc View Source

SubQueryMode

Returns whether this Parser Context is for a sub-query.

Declaration
public bool SubQueryMode { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SyntaxMode

Gets/Sets the Syntax that should be supported.

Declaration
public SparqlQuerySyntax SyntaxMode { get; set; }
Property Value
Type Description
SparqlQuerySyntax
| Improve this Doc View Source

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 Source

GetNewBlankNodeID()

Gets a new Blank Node ID.

Declaration
public string GetNewBlankNodeID()
Returns
Type Description
string

Implements

IParserContext
ITokenisingParserContext

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • SparqlQueryParserContext(SparqlQueryParserContext, ITokenQueue)
    • SparqlQueryParserContext(ITokeniser, bool, bool)
    • SparqlQueryParserContext(ITokeniser, TokenQueueMode, bool, bool, IUriFactory)
    • SparqlQueryParserContext(ITokeniser, TokenQueueMode)
    • SparqlQueryParserContext(ITokeniser)
    • SparqlQueryParserContext(ITokenQueue, Uri, INamespaceMapper)
  • Properties
    • BlankNodeID
    • BlankNodeIDUsages
    • CheckBlankNodeScope
    • DefaultBaseUri
    • ExpressionFactories
    • GraphPatternID
    • NextAliasID
    • Query
    • SubQueryMode
    • SyntaxMode
    • VerbSeen
  • Methods
    • GetNewBlankNodeID()
  • Implements
  • Extension Methods
Back to top Generated by DocFX