Class ComparisonHelper
Static Helper class containing standard implementations of Comparison between various Node types.
Inheritance
System.Object
ComparisonHelper
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
Assembly: dotNetRDF.dll
Syntax
public static class ComparisonHelper
Methods
| Improve this Doc View SourceCompareBlankNodes(IBlankNode, IBlankNode)
Compares two Blank Nodes.
Declaration
public static int CompareBlankNodes(IBlankNode a, IBlankNode b)
Parameters
Type | Name | Description |
---|---|---|
IBlankNode | a | First Blank Node. |
IBlankNode | b | Second Blank Node. |
Returns
Type | Description |
---|---|
System.Int32 |
CompareGraphLiterals(IGraphLiteralNode, IGraphLiteralNode)
Compares two Graph Literals.
Declaration
public static int CompareGraphLiterals(IGraphLiteralNode a, IGraphLiteralNode b)
Parameters
Type | Name | Description |
---|---|---|
IGraphLiteralNode | a | First Graph Literal. |
IGraphLiteralNode | b | Second Graph Literal. |
Returns
Type | Description |
---|---|
System.Int32 |
CompareLiterals(ILiteralNode, ILiteralNode)
Compares two Literal Nodes using global default comparison options where applicable.
Declaration
public static int CompareLiterals(ILiteralNode a, ILiteralNode b)
Parameters
Type | Name | Description |
---|---|---|
ILiteralNode | a | First Literal Node. |
ILiteralNode | b | Second Literal Node. |
Returns
Type | Description |
---|---|
System.Int32 |
CompareLiterals(ILiteralNode, ILiteralNode, CultureInfo, CompareOptions)
Compares two Literal Nodes.
Declaration
public static int CompareLiterals(ILiteralNode a, ILiteralNode b, CultureInfo culture, CompareOptions comparisonOptions)
Parameters
Type | Name | Description |
---|---|---|
ILiteralNode | a | First Literal Node. |
ILiteralNode | b | Second Literal Node. |
System.Globalization.CultureInfo | culture | Culture to use for lexical string comparisons where more natural comparisons are not possible/applicable. |
System.Globalization.CompareOptions | comparisonOptions | String Comparison options used for lexical string comparisons where more natural comparisons are not possible/applicable. |
Returns
Type | Description |
---|---|
System.Int32 |
CompareUris(Uri, Uri)
Compares two URIs.
Declaration
public static int CompareUris(Uri a, Uri b)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | a | First URI. |
System.Uri | b | Second URI. |
Returns
Type | Description |
---|---|
System.Int32 |
CompareUris(IUriNode, IUriNode)
Compares two URI Nodes.
Declaration
public static int CompareUris(IUriNode a, IUriNode b)
Parameters
Type | Name | Description |
---|---|---|
IUriNode | a | First URI Node. |
IUriNode | b | Second URI Node. |
Returns
Type | Description |
---|---|
System.Int32 |
CompareVariables(IVariableNode, IVariableNode)
Compares two Variable Nodes.
Declaration
public static int CompareVariables(IVariableNode a, IVariableNode b)
Parameters
Type | Name | Description |
---|---|---|
IVariableNode | a | First Variable Node. |
IVariableNode | b | Second Variable Node. |
Returns
Type | Description |
---|---|
System.Int32 |