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
Inherited Members
BaseOrderBy.Child
BaseOrderBy.Descending
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Query.Ordering
Assembly: dotNetRdf.dll
Syntax
public class OrderByVariable : BaseOrderBy, ISparqlOrderBy

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

Variable

Declaration
public string Variable { get; }
Property Value
Type Description
string
| 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<T><string>
Overrides
BaseOrderBy.Variables

Methods

| Improve this Doc View Source

GetComparer(IMatchTriplePattern, ISparqlNodeComparer)

Generates a Comparer than can be used to do Ordering based on the given Triple Pattern.

Declaration
public override IComparer<Triple> GetComparer(IMatchTriplePattern pattern, ISparqlNodeComparer nodeComparer)
Parameters
Type Name Description
IMatchTriplePattern pattern

Triple Pattern.

ISparqlNodeComparer nodeComparer

The comparer to use for node ordering.

Returns
Type Description
System.Collections.Generic.IComparer<T><Triple>
Overrides
BaseOrderBy.GetComparer(IMatchTriplePattern, ISparqlNodeComparer)
| Improve this Doc View Source

ToString()

Gets the String representation of the Order By.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
BaseOrderBy.ToString()

Implements

ISparqlOrderBy

Extension Methods

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