Show / Hide Table of Contents

Class WeightedOptimiser

The Weighted Optimiser is a Query Optimiser that orders Triple Patterns based on weighting computed calculated against.
Inheritance
System.Object
BaseQueryOptimiser
WeightedOptimiser
Implements
IQueryOptimiser
Inherited Members
BaseQueryOptimiser.Optimise(GraphPattern, IEnumerable<String>)
BaseQueryOptimiser.ShouldReorder
BaseQueryOptimiser.ShouldSplitFilters
BaseQueryOptimiser.ShouldPlaceFilters
BaseQueryOptimiser.ShouldPlaceAssignments
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 Source

WeightedOptimiser()

Creates a new Weighted Optimiser.
Declaration
public WeightedOptimiser()
| Improve this Doc View Source

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.
| Improve this Doc View Source

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 Source

DefaultObjectWeight

Default Weight for Object Terms.
Declaration
public const double DefaultObjectWeight = 0.6
Field Value
Type Description
System.Double
| Improve this Doc View Source

DefaultPredicateWeight

Default Weight for Predicate Terms.
Declaration
public const double DefaultPredicateWeight = 0.4
Field Value
Type Description
System.Double
| Improve this Doc View Source

DefaultSubjectWeight

Default Weight for Subject Terms.
Declaration
public const double DefaultSubjectWeight = 0.8
Field Value
Type Description
System.Double
| Improve this Doc View Source

DefaultVariableWeight

Default Weight for Variables.
Declaration
public const double DefaultVariableWeight = 1
Field Value
Type Description
System.Double

Methods

| Improve this Doc View Source

GetRankingComparer()

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>
Overrides
BaseQueryOptimiser.GetRankingComparer()

Implements

IQueryOptimiser

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • WeightedOptimiser()
    • WeightedOptimiser(IGraph)
    • WeightedOptimiser(IGraph, Double, Double, Double)
  • Fields
    • DefaultObjectWeight
    • DefaultPredicateWeight
    • DefaultSubjectWeight
    • DefaultVariableWeight
  • Methods
    • GetRankingComparer()
  • Implements
  • Extension Methods
Back to top Generated by DocFX