Click or drag to resize

GraphPatternOptimise Method (IQueryOptimiser, IEnumerableString)

Optimises the Graph Pattern using the given optimiser and with the given variables.

Namespace:  VDS.RDF.Query.Patterns
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public void Optimise(
	IQueryOptimiser optimiser,
	IEnumerable<string> vars
)

Parameters

optimiser
Type: VDS.RDF.Query.OptimisationIQueryOptimiser
Query Optimiser.
vars
Type: System.Collections.GenericIEnumerableString
Variables.
Remarks

Important: If a Pattern has already been optimized then calling this again is a no-op.

For finer grained control of what gets optimized you can use QueryOptimisation to disable automatic optimisation and then manually call this method as necessary.

The vars parameter contains Variables mentioned in the parent Graph Pattern (if any) that can be used to guide optimisation of child graph patterns.

See Also