Class SubjectPredicateComparer
Triple comparer which compares on subjects and then predicates.
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class SubjectPredicateComparer : BaseTripleComparer, IEqualityComparer<Triple>, IComparer<Triple>
Constructors
| Edit this page View SourceSubjectPredicateComparer()
Creates a new Subject Predicate comparer.
Declaration
public SubjectPredicateComparer()
SubjectPredicateComparer(IComparer<INode>)
Creates a new Subject Predicate comparer using the provided Node comparer.
Declaration
public SubjectPredicateComparer(IComparer<INode> nodeComparer)
Parameters
Type | Name | Description |
---|---|---|
IComparer<INode> | nodeComparer | Node Comparer. |
Methods
| Edit this page View SourceCompare(Triple, Triple)
Compares two Triples.
Declaration
public override int Compare(Triple x, Triple y)
Parameters
Type | Name | Description |
---|---|---|
Triple | x | Triple. |
Triple | y | Triple. |
Returns
Type | Description |
---|---|
int |