Show / Hide Table of Contents

Interface IAlgebraOptimiser

An Algebra Optimiser is a class that can transform a SPARQL algebra from one form to another typically for optimisation purposes.

Namespace: VDS.RDF.Query.Optimisation
Assembly: dotNetRdf.dll
Syntax
public interface IAlgebraOptimiser

Properties

| Edit this page View Source

UnsafeOptimisation

Determines whether an Optimiser will perform algebra optimizations that are potentially unsafe at execution time.

Declaration
bool UnsafeOptimisation { get; set; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

IsApplicable(SparqlQuery)

Determines whether an Optimiser is applicable based on the Query whose Algebra is being optimised.

Declaration
bool IsApplicable(SparqlQuery q)
Parameters
Type Name Description
SparqlQuery q

SPARQL Query.

Returns
Type Description
bool
| Edit this page View Source

IsApplicable(SparqlUpdateCommandSet)

Determines whether an Optimiser is applicable based on the Update Command Set being optimised.

Declaration
bool IsApplicable(SparqlUpdateCommandSet cmds)
Parameters
Type Name Description
SparqlUpdateCommandSet cmds

Update Command Set.

Returns
Type Description
bool
| Edit this page View Source

Optimise(ISparqlAlgebra)

Optimises the given Algebra.

Declaration
ISparqlAlgebra Optimise(ISparqlAlgebra algebra)
Parameters
Type Name Description
ISparqlAlgebra algebra

Algebra to optimise.

Returns
Type Description
ISparqlAlgebra
Remarks

Important: An Algebra Optimiser must guarantee to return an equivalent algebra to the given algebra. In the event of any error the optimiser should still return a valid algebra (or at least the original algebra).

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Properties
    • UnsafeOptimisation
  • Methods
    • IsApplicable(SparqlQuery)
    • IsApplicable(SparqlUpdateCommandSet)
    • Optimise(ISparqlAlgebra)
  • Extension Methods
Back to top Generated by DocFX