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
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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, 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.

double subjWeight

Default Subject Weight.

double predWeight

Default Predicate Weight.

double objWeight

Default Object Weight.

| 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.

Fields

| Improve this Doc View Source

DefaultObjectWeight

Default Weight for Object Terms.

Declaration
public const double DefaultObjectWeight = 0.6
Field Value
Type Description
double
| Improve this Doc View Source

DefaultPredicateWeight

Default Weight for Predicate Terms.

Declaration
public const double DefaultPredicateWeight = 0.4
Field Value
Type Description
double
| Improve this Doc View Source

DefaultSubjectWeight

Default Weight for Subject Terms.

Declaration
public const double DefaultSubjectWeight = 0.8
Field Value
Type Description
double
| Improve this Doc View Source

DefaultVariableWeight

Default Weight for Variables.

Declaration
public const double DefaultVariableWeight = 1
Field Value
Type Description
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<T><ITriplePattern>
Overrides
BaseQueryOptimiser.GetRankingComparer()

Implements

IQueryOptimiser

Extension Methods

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