Show / Hide Table of Contents

Class OrderByVariable

An ORDER BY which orders on the values bound to a particular variable.
Inheritance
System.Object
BaseOrderBy
OrderByVariable
Implements
ISparqlOrderBy
System.Collections.Generic.IComparer<ISet>
Inherited Members
BaseOrderBy._child
BaseOrderBy._context
BaseOrderBy._modifier
BaseOrderBy.Child
BaseOrderBy.Context
BaseOrderBy.Descending
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)
Namespace: VDS.RDF.Query.Ordering
Assembly: dotNetRDF.dll
Syntax
public class OrderByVariable : BaseOrderBy, ISparqlOrderBy, IComparer<ISet>

Constructors

| Improve this Doc View Source

OrderByVariable(String)

Creates a new Ordering based on the Value of a given Variable.
Declaration
public OrderByVariable(string name)
Parameters
Type Name Description
System.String name Variable to order upon.

Properties

| Improve this Doc View Source

Expression

Gets the Variable Expression Term used in the Ordering.
Declaration
public override ISparqlExpression Expression { get; }
Property Value
Type Description
ISparqlExpression
Overrides
BaseOrderBy.Expression
| Improve this Doc View Source

IsSimple

Gets whether the Ordering is Simple.
Declaration
public override bool IsSimple { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseOrderBy.IsSimple
| Improve this Doc View Source

Variables

Gets all the Variables used in the Ordering.
Declaration
public override IEnumerable<string> Variables { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.String>
Overrides
BaseOrderBy.Variables

Methods

| Improve this Doc View Source

Compare(ISet, ISet)

Compares Sets on the basis of their values for the Variable the class was instaniated with.
Declaration
public override int Compare(ISet x, ISet y)
Parameters
Type Name Description
ISet x A Set.
ISet y A Set.
Returns
Type Description
System.Int32
Overrides
BaseOrderBy.Compare(ISet, ISet)
| Improve this Doc View Source

GetComparer(IMatchTriplePattern)

Generates a Comparer than can be used to do Ordering based on the given Triple Pattern.
Declaration
public override IComparer<Triple> GetComparer(IMatchTriplePattern pattern)
Parameters
Type Name Description
IMatchTriplePattern pattern Triple Pattern.
Returns
Type Description
System.Collections.Generic.IComparer<Triple>
Overrides
BaseOrderBy.GetComparer(IMatchTriplePattern)
| Improve this Doc View Source

ToString()

Gets the String representation of the Order By.
Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
BaseOrderBy.ToString()

Implements

ISparqlOrderBy
System.Collections.Generic.IComparer<T>

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • OrderByVariable(String)
  • Properties
    • Expression
    • IsSimple
    • Variables
  • Methods
    • Compare(ISet, ISet)
    • GetComparer(IMatchTriplePattern)
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX