Click or drag to resize

SparqlOptimiserQueryOptimiser Property

Gets/Sets the global Query Optimiser that is used by default.

Namespace:  VDS.RDF.Query.Optimisation
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
public static IQueryOptimiser QueryOptimiser { get; set; }

Property Value

Type: IQueryOptimiser

Note: May be overridden by the Optimiser setting on a SparqlQueryParser.

Unlike previous releases a Query may be reoptimised using a different optimiser if desired by calling the Optimise() method again and providing a different Optimiser. This may not always fully reoptimise the query since the first optimisation will have caused any Filters and Assignments to be placed in the Triple Pattern.

Warning: Setting this to null has no effect, to disable automatic optimisation use the global property Options.QueryOptimisation. Even with this option disabled a Query can still be optimised manually by calling its Optimise() method.

See Also