Thetype exposes the following members.
Gets/Sets the locally scoped Algebra Optimisers that are used to optimise the Query Algebra in addition to (but before) any global optimisers (specified by SparqlOptimiser.AlgebraOptimisers) that are applied.
Gets/Sets the Base Uri for the Query.
Gets/Sets the VALUES Clause for the Query which are bindings that should be applied.
Gets/Sets the Construct Template for a Construct Query.
Gets the Default Graph URIs for the Query.
Gets/Sets the ISparqlDescribe which provides the Describe algorithm you wish to use.
Gets the Variables, QNames and URIs used in the Describe Query.
Gets/Sets the locally scoped Expression Factories that may be used if the query is using the CALL() function to do dynamic function invocation.
Gets/Sets the Grouping for the Query.
Gets whether a Query has a DISTINCT modifier.
Gets whether the Query has a Solution Modifier (a GROUP BY, HAVING, ORDER BY, LIMIT or OFFSET).
Gets/Sets the Having Clause for the Query.
Gets whether the Query has an Aggregate as its Result.
Gets whether Optimisation has been applied to the query.
Gets whether this Query is a Sub-Query in another Query.
Gets the Result Set Limit for the Query.
Gets the Named Graph URIs for the Query.
Gets the Namespace Map for the Query.
Gets/Sets the Result Set Offset for the Query.
Gets/Sets the Ordering for the Query.
Gets/Sets whether Partial Results should be returned in the event of Query Timeout.
Gets/Sets the locally scoped Property Function factories that may be used by the PropertyFunctionOptimiser when generating the algebra for the query.
Gets the Time taken to execute a Query.
Gets the type of the Query.
Gets the top level Graph Pattern of the Query.
Gets the Special Type of the Query (if any).
Gets/Sets the Query Execution Timeout in milliseconds.
Gets whether a Query uses the Default Dataset against which it is evaluated.
Gets the Variables used in the Query.
The number of results that would be returned without any limit clause to a query or -1 if not supported. Defaults to the same value as the Count member.
Adds a Default Graph URI.
Adds a Named Graph URI.
Removes all Default Graph URIs.
Removes all Named Graph URIs.
Creates a copy of the query.
Creates a Blank Node with a new automatically generated ID.(Inherited from NodeFactory.)
Creates a Blank Node with the given Node ID.(Inherited from NodeFactory.)
Creates a Graph Literal Node which represents the empty Subgraph.(Inherited from NodeFactory.)
Creates a Graph Literal Node which represents the given Subgraph.(Inherited from NodeFactory.)
Creates a Literal Node with the given Value.(Inherited from NodeFactory.)
Creates a Literal Node with the given Value and Language.(Inherited from NodeFactory.)
Creates a Literal Node with the given Value and Data Type.(Inherited from NodeFactory.)
Creates a URI Node for the given URI.(Inherited from NodeFactory.)
Creates a Variable Node for the given Variable Name.(Inherited from NodeFactory.)
Determines whether the specified object is equal to the current object.(Inherited from Object.)
|Evaluate(IInMemoryQueryableStore)|| Obsolete. |
Evaluates the SPARQL Query against the given Triple Store.
|Evaluate(ISparqlDataset)|| Obsolete. |
Evaluates the SPARQL Query against the given Dataset.
|Evaluate(IRdfHandler, ISparqlResultsHandler, IInMemoryQueryableStore)|| Obsolete. |
Evaluates the SPARQL Query against the given Triple Store processing the results with the appropriate handler from those provided.
|Evaluate(IRdfHandler, ISparqlResultsHandler, ISparqlDataset)|| Obsolete. |
Evaluates the SPARQL Query against the given Dataset processing the results with an appropriate handler form those provided.
Serves as the default hash function.(Inherited from Object.)
Creates a new unused Blank Node ID and returns it.(Inherited from NodeFactory.)
Gets the Type of the current instance.(Inherited from Object.)
Applies optimisation to a Query using the default global optimiser.
Applies optimisation to a Query using the specific optimiser.
Processes the Query using the given Query Processor.
Converts the Query into it's SPARQL Algebra representation (as represented in the Leviathan API).
Generates a String representation of the Query.(Overrides ObjectToString.)
Note: This class is purposefully sealed and most setters are private/protected internal since generally you create a query by using the SparqlQueryParser to parse a query string/file.
To build a query programmatically you can use the QueryBuilder class to generate a new query and then various extension methods to modify that query using a fluent style API. A query is not immutable so if you use that API you are modifying the query, if you want to generate new queries by modifying an existing query consider using the Copy method to take a copy of the existing query.