Class SparqlNodeComparer
Comparer class for implementing the SPARQL semantics for the relational operators.
Implements
System.Collections.Generic.IComparer<INode>
System.Collections.Generic.IComparer<IValuedNode>
Inherited Members
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
Assembly: dotNetRDF.dll
Syntax
public class SparqlNodeComparer : IComparer<INode>, IComparer<IValuedNode>
Methods
| Improve this Doc View SourceCompare(INode, INode)
Compares two Nodes.
Declaration
public virtual int Compare(INode x, INode y)
Parameters
Type | Name | Description |
---|---|---|
INode | x | Node. |
INode | y | Node. |
Returns
Type | Description |
---|---|
System.Int32 |
Compare(IValuedNode, IValuedNode)
Compares two valued Nodes.
Declaration
public virtual int Compare(IValuedNode x, IValuedNode y)
Parameters
Type | Name | Description |
---|---|---|
IValuedNode | x | Node. |
IValuedNode | y | Node. |
Returns
Type | Description |
---|---|
System.Int32 |
DateCompare(INode, INode)
Compares two Dates for Date ordering.
Declaration
protected virtual int DateCompare(INode x, INode y)
Parameters
Type | Name | Description |
---|---|---|
INode | x | Node. |
INode | y | Node. |
Returns
Type | Description |
---|---|
System.Int32 |
DateCompare(IValuedNode, IValuedNode)
Compares two Dates for Date ordering.
Declaration
protected virtual int DateCompare(IValuedNode x, IValuedNode y)
Parameters
Type | Name | Description |
---|---|---|
IValuedNode | x | Node. |
IValuedNode | y | Node. |
Returns
Type | Description |
---|---|
System.Int32 |
DateTimeCompare(INode, INode)
Compares two Date Times for Date Time ordering.
Declaration
protected virtual int DateTimeCompare(INode x, INode y)
Parameters
Type | Name | Description |
---|---|---|
INode | x | Node. |
INode | y | Node. |
Returns
Type | Description |
---|---|
System.Int32 |
DateTimeCompare(IValuedNode, IValuedNode)
Compares two Date Times for Date Time ordering.
Declaration
protected virtual int DateTimeCompare(IValuedNode x, IValuedNode y)
Parameters
Type | Name | Description |
---|---|---|
IValuedNode | x | Node. |
IValuedNode | y | Node. |
Returns
Type | Description |
---|---|
System.Int32 |
NumericCompare(INode, INode, SparqlNumericType)
Compares two Nodes for Numeric Ordering.
Declaration
protected virtual int NumericCompare(INode x, INode y, SparqlNumericType type)
Parameters
Type | Name | Description |
---|---|---|
INode | x | Node. |
INode | y | Node. |
SparqlNumericType | type | Numeric Type. |
Returns
Type | Description |
---|---|
System.Int32 |
NumericCompare(IValuedNode, IValuedNode, SparqlNumericType)
Compares two Nodes for Numeric Ordering.
Declaration
protected virtual int NumericCompare(IValuedNode x, IValuedNode y, SparqlNumericType type)
Parameters
Type | Name | Description |
---|---|---|
IValuedNode | x | Node. |
IValuedNode | y | Node. |
SparqlNumericType | type | Numeric Type. |
Returns
Type | Description |
---|---|
System.Int32 |
Implements
System.Collections.Generic.IComparer<T>
System.Collections.Generic.IComparer<T>