Class AskBgpOptimiser
An Algebra Optimiser that optimises Algebra to use AskBgp's wherever possible.
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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, int)
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. |
int | 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.