Show / Hide Table of Contents

Class OrderByExpression

An ORDER BY which orders based on the values of a Sparql Expression.

Inheritance
object
BaseOrderBy
OrderByExpression
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 OrderByExpression : BaseOrderBy, ISparqlOrderBy

Constructors

| Edit this page View Source

OrderByExpression(ISparqlExpression)

Creates a new Order By using the given Expression.

Declaration
public OrderByExpression(ISparqlExpression expr)
Parameters
Type Name Description
ISparqlExpression expr

Expression to order by.

Properties

| Edit this page View Source

Expression

Gets the Expression used for Ordering.

Declaration
public override ISparqlExpression Expression { get; }
Property Value
Type Description
ISparqlExpression
Overrides
BaseOrderBy.Expression
| Edit this page View Source

IsSimple

Gets whether the Ordering is Simple.

Declaration
public override bool IsSimple { get; }
Property Value
Type Description
bool
Overrides
BaseOrderBy.IsSimple
| Edit this page View Source

Variables

Gets all the Variables used in the Ordering.

Declaration
public override IEnumerable<string> Variables { get; }
Property Value
Type Description
IEnumerable<string>
Overrides
BaseOrderBy.Variables

Methods

| Edit this page 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
IComparer<Triple>
Overrides
BaseOrderBy.GetComparer(IMatchTriplePattern, ISparqlNodeComparer)
| Edit this page 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)
  • Edit this page
  • View Source
In this article
  • Constructors
    • OrderByExpression(ISparqlExpression)
  • Properties
    • Expression
    • IsSimple
    • Variables
  • Methods
    • GetComparer(IMatchTriplePattern, ISparqlNodeComparer)
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX