Class WeightedOptimiser
The Weighted Optimiser is a Query Optimiser that orders Triple Patterns based on weighting computed calculated against.
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 WeightedOptimiser : BaseQueryOptimiser, IQueryOptimiser
Constructors
| Improve this Doc View SourceWeightedOptimiser()
Creates a new Weighted Optimiser.
Declaration
public WeightedOptimiser()
WeightedOptimiser(IGraph)
Creates a new Weighted Optimiser which reads weights from the given RDF Graph.
Declaration
public WeightedOptimiser(IGraph g)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph. |
WeightedOptimiser(IGraph, Double, Double, Double)
Creates a new Weighted Optimiser which reads weights from the given RDF Graph.
Declaration
public WeightedOptimiser(IGraph g, double subjWeight, double predWeight, double objWeight)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph. |
System.Double | subjWeight | Default Subject Weight. |
System.Double | predWeight | Default Predicate Weight. |
System.Double | objWeight | Default Object Weight. |
Fields
| Improve this Doc View SourceDefaultObjectWeight
Default Weight for Object Terms.
Declaration
public const double DefaultObjectWeight = 0.6
Field Value
Type | Description |
---|---|
System.Double |
DefaultPredicateWeight
Default Weight for Predicate Terms.
Declaration
public const double DefaultPredicateWeight = 0.4
Field Value
Type | Description |
---|---|
System.Double |
DefaultSubjectWeight
Default Weight for Subject Terms.
Declaration
public const double DefaultSubjectWeight = 0.8
Field Value
Type | Description |
---|---|
System.Double |
DefaultVariableWeight
Default Weight for Variables.
Declaration
public const double DefaultVariableWeight = 1
Field Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceGetRankingComparer()
Gets the comparer used to order the Triple Patterns based on their computed weightings.
Declaration
protected override IComparer<ITriplePattern> GetRankingComparer()
Returns
Type | Description |
---|---|
System.Collections.Generic.IComparer<ITriplePattern> |