Package hydra.query
Class TriplePattern
- java.lang.Object
-
- hydra.query.TriplePattern
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TriplePattern>
public class TriplePattern extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<TriplePattern>
A subject/predicate/object pattern- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TriplePattern(Node subject, Path predicate, Node object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TriplePattern other)booleanequals(java.lang.Object other)inthashCode()TriplePatternwithObject(Node object)TriplePatternwithPredicate(Path predicate)TriplePatternwithSubject(Node subject)
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
-
SUBJECT
public static final Name SUBJECT
-
PREDICATE
public static final Name PREDICATE
-
OBJECT
public static final Name OBJECT
-
subject
public final Node subject
The subject of the pattern
-
predicate
public final Path predicate
The predicate (property) of the pattern
-
object
public final Node object
The object of the pattern
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(TriplePattern other)
- Specified by:
compareToin interfacejava.lang.Comparable<TriplePattern>
-
withSubject
public TriplePattern withSubject(Node subject)
-
withPredicate
public TriplePattern withPredicate(Path predicate)
-
withObject
public TriplePattern withObject(Node object)
-
-