Class EqualityHelper
Static Helper class containing standard implementations of Equality between various Node types.
Inheritance
System.Object
EqualityHelper
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 EqualityHelper
Methods
| Improve this Doc View SourceAreBlankNodesEqual(IBlankNode, IBlankNode)
Determines whether two Blank Nodes are equal.
Declaration
public static bool AreBlankNodesEqual(IBlankNode a, IBlankNode b)
Parameters
Type | Name | Description |
---|---|---|
IBlank |
a | First Blank Node. |
IBlank |
b | Second Blank Node. |
Returns
Type | Description |
---|---|
System. |
AreGraphLiteralsEqual(IGraphLiteralNode, IGraphLiteralNode)
Determines whether two Graph Literals are equal.
Declaration
public static bool AreGraphLiteralsEqual(IGraphLiteralNode a, IGraphLiteralNode b)
Parameters
Type | Name | Description |
---|---|---|
IGraph |
a | First Blank Node. |
IGraph |
b | Second Blank Node. |
Returns
Type | Description |
---|---|
System. |
AreLiteralsEqual(ILiteralNode, ILiteralNode)
Determines whether two Literals are equal.
Declaration
public static bool AreLiteralsEqual(ILiteralNode a, ILiteralNode b)
Parameters
Type | Name | Description |
---|---|---|
ILiteral |
a | First Literal. |
ILiteral |
b | Second Literal. |
Returns
Type | Description |
---|---|
System. |
AreUrisEqual(Uri, Uri)
Determines whether two URIs are equal.
Declaration
public static bool AreUrisEqual(Uri a, Uri b)
Parameters
Type | Name | Description |
---|---|---|
System. |
a | First URI. |
System. |
b | Second URI. |
Returns
Type | Description |
---|---|
System. |
Remarks
Unlike the Equals method provided by the System.Uri class by default this takes into account Fragment IDs which are essential for checking URI equality in RDF.
|
Improve this Doc
View Source
AreUrisEqual(IUriNode, IUriNode)
Determines whether two URIs are equal.
Declaration
public static bool AreUrisEqual(IUriNode a, IUriNode b)
Parameters
Returns
Type | Description |
---|---|
System. |
AreVariablesEqual(IVariableNode, IVariableNode)
Determines whether two Variable Nodes are equal.
Declaration
public static bool AreVariablesEqual(IVariableNode a, IVariableNode b)
Parameters
Type | Name | Description |
---|---|---|
IVariable |
a | First Variable Node. |
IVariable |
b | Second Variable Node. |
Returns
Type | Description |
---|---|
System. |