Show / Hide Table of Contents

Class EqualityHelper

Static Helper class containing standard implementations of Equality between various Node types.

Inheritance
object
EqualityHelper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public static class EqualityHelper

Properties

| Edit this page View Source

LiteralEqualityMode

Gets/Sets the Mode used to compute Literal Equality (Default is Strict which enforces the W3C RDF Specification).

Declaration
public static LiteralEqualityMode LiteralEqualityMode { get; set; }
Property Value
Type Description
LiteralEqualityMode

Methods

| Edit this page View Source

AreBlankNodesEqual(IBlankNode, IBlankNode)

Determines whether two Blank Nodes are equal.

Declaration
public static bool AreBlankNodesEqual(IBlankNode a, IBlankNode b)
Parameters
Type Name Description
IBlankNode a

First Blank Node.

IBlankNode b

Second Blank Node.

Returns
Type Description
bool
| Edit this page View Source

AreGraphLiteralsEqual(IGraphLiteralNode, IGraphLiteralNode)

Determines whether two Graph Literals are equal.

Declaration
public static bool AreGraphLiteralsEqual(IGraphLiteralNode a, IGraphLiteralNode b)
Parameters
Type Name Description
IGraphLiteralNode a

First Blank Node.

IGraphLiteralNode b

Second Blank Node.

Returns
Type Description
bool
| Edit this page View Source

AreLiteralsEqual(ILiteralNode, ILiteralNode)

Determines whether two Literals are equal.

Declaration
public static bool AreLiteralsEqual(ILiteralNode a, ILiteralNode b)
Parameters
Type Name Description
ILiteralNode a

First Literal.

ILiteralNode b

Second Literal.

Returns
Type Description
bool
| Edit this page View Source

AreRefNodesEqual(IRefNode, IRefNode)

Determines whether two reference nodes are equal.

Declaration
public static bool AreRefNodesEqual(IRefNode a, IRefNode b)
Parameters
Type Name Description
IRefNode a

First reference node.

IRefNode b

Second reference node.

Returns
Type Description
bool
| Edit this page View Source

AreStringsEqual(string, string, StringComparison)

Determines whether two strings are equal.

Declaration
public static bool AreStringsEqual(string a, string b, StringComparison comparisonMode = StringComparison.Ordinal)
Parameters
Type Name Description
string a
string b
StringComparison comparisonMode
Returns
Type Description
bool

True if both a and b are null, or if a and b compare as equal under the given comparisonMode, false otherwise.

| Edit this page View Source

AreUrisEqual(Uri, Uri)

Determines whether two URIs are equal.

Declaration
public static bool AreUrisEqual(Uri a, Uri b)
Parameters
Type Name Description
Uri a

First URI.

Uri b

Second URI.

Returns
Type Description
bool
Remarks

Unlike the Equals method provided by the Uri class by default this takes into account Fragment IDs which are essential for checking URI equality in RDF.

| Edit this page View Source

AreUrisEqual(IUriNode, IUriNode)

Determines whether two URIs are equal.

Declaration
public static bool AreUrisEqual(IUriNode a, IUriNode b)
Parameters
Type Name Description
IUriNode a

First URI Node.

IUriNode b

Second URI Node.

Returns
Type Description
bool
| Edit this page View Source

AreVariablesEqual(IVariableNode, IVariableNode)

Determines whether two Variable Nodes are equal.

Declaration
public static bool AreVariablesEqual(IVariableNode a, IVariableNode b)
Parameters
Type Name Description
IVariableNode a

First Variable Node.

IVariableNode b

Second Variable Node.

Returns
Type Description
bool
  • Edit this page
  • View Source
In this article
  • Properties
    • LiteralEqualityMode
  • Methods
    • AreBlankNodesEqual(IBlankNode, IBlankNode)
    • AreGraphLiteralsEqual(IGraphLiteralNode, IGraphLiteralNode)
    • AreLiteralsEqual(ILiteralNode, ILiteralNode)
    • AreRefNodesEqual(IRefNode, IRefNode)
    • AreStringsEqual(string, string, StringComparison)
    • AreUrisEqual(Uri, Uri)
    • AreUrisEqual(IUriNode, IUriNode)
    • AreVariablesEqual(IVariableNode, IVariableNode)
Back to top Generated by DocFX