Class AskBgpOptimiser
An Algebra Optimiser that optimises Algebra to use AskBgp's wherever possible.
Implements
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.Query.Optimisation
Assembly: dotNetRDF.dll
Syntax
public class AskBgpOptimiser : BaseAlgebraOptimiser, IAlgebraOptimiser
Methods
| Improve this Doc View SourceIsApplicable(SparqlQuery)
Determines whether the query can be optimised for ASK evaluation.
Declaration
public override bool IsApplicable(SparqlQuery q)
Parameters
Type | Name | Description |
---|---|---|
SparqlQuery | q | Query. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceIsApplicable(SparqlUpdateCommandSet)
Returns that the optimiser does not apply to SPARQL Updates.
Declaration
public override bool IsApplicable(SparqlUpdateCommandSet cmds)
Parameters
Type | Name | Description |
---|---|---|
SparqlUpdateCommandSet | cmds | Updates. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceOptimiseInternal(ISparqlAlgebra, Int32)
Optimises an Algebra to a form that uses AskBgp where possible.
Declaration
protected override ISparqlAlgebra OptimiseInternal(ISparqlAlgebra algebra, int depth)
Parameters
Type | Name | Description |
---|---|---|
ISparqlAlgebra | algebra | Algebra. |
System.Int32 | depth | Depth. |
Returns
Type | Description |
---|---|
ISparqlAlgebra |
Overrides
Remarks
By transforming a query to use AskBgp we can achieve much more efficient processing of some forms of queries.