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 |
---|---|---|
IBlank |
a | First Blank Node. |
IBlank |
b | Second Blank Node. |
Returns
Type | Description |
---|---|
System. |
CompareGraphLiterals(IGraphLiteralNode, IGraphLiteralNode)
Compares two Graph Literals.
Declaration
public static int CompareGraphLiterals(IGraphLiteralNode a, IGraphLiteralNode b)
Parameters
Type | Name | Description |
---|---|---|
IGraph |
a | First Graph Literal. |
IGraph |
b | Second Graph Literal. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
ILiteral |
a | First Literal Node. |
ILiteral |
b | Second Literal Node. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
ILiteral |
a | First Literal Node. |
ILiteral |
b | Second Literal Node. |
System. |
culture | Culture to use for lexical string comparisons where more natural comparisons are not possible/applicable. |
System. |
comparisonOptions | String Comparison options used for lexical string comparisons where more natural comparisons are not possible/applicable. |
Returns
Type | Description |
---|---|
System. |
CompareUris(Uri, Uri)
Compares two URIs.
Declaration
public static int CompareUris(Uri a, Uri b)
Parameters
Type | Name | Description |
---|---|---|
System. |
a | First URI. |
System. |
b | Second URI. |
Returns
Type | Description |
---|---|
System. |
CompareUris(IUriNode, IUriNode)
Compares two URI Nodes.
Declaration
public static int CompareUris(IUriNode a, IUriNode b)
Parameters
Returns
Type | Description |
---|---|
System. |
CompareVariables(IVariableNode, IVariableNode)
Compares two Variable Nodes.
Declaration
public static int CompareVariables(IVariableNode a, IVariableNode b)
Parameters
Type | Name | Description |
---|---|---|
IVariable |
a | First Variable Node. |
IVariable |
b | Second Variable Node. |
Returns
Type | Description |
---|---|
System. |