Implementation of Equality for Triples.
Namespace:
VDS.RDF
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntax public override bool Equals(
Object obj
)
Public Overrides Function Equals (
obj As Object
) As Boolean
Parameters
- obj
- Type: SystemObject
Object to compare with.
Return Value
Type:
Boolean[Missing <returns> documentation for "M:VDS.RDF.Triple.Equals(System.Object)"]
Remarks
Triples are considered equal on the basis of two things:.
- The Hash Codes of the Triples are identical
- The logical conjunction (AND) of the equality of the Subject, Predicate and Object is true. Each pair of Nodes must either be Equal using Node Equality or are both Blank Nodes and have identical Node IDs (i.e. are indistinguishable for equality purposes on a single Triple level)
See Also