Package hydra.query
Class TriplePattern
- java.lang.Object
-
- hydra.query.TriplePattern
-
- All Implemented Interfaces:
java.io.Serializable
public class TriplePattern extends java.lang.Object implements java.io.Serializable
A subject/predicate/object pattern- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Name
FIELD_NAME_OBJECT
static Name
FIELD_NAME_PREDICATE
static Name
FIELD_NAME_SUBJECT
Node
object
Path
predicate
Node
subject
static Name
TYPE_NAME
-
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 boolean
equals(java.lang.Object other)
int
hashCode()
TriplePattern
withObject(Node object)
TriplePattern
withPredicate(Path predicate)
TriplePattern
withSubject(Node subject)
-
-
-
Field Detail
-
TYPE_NAME
public static final Name TYPE_NAME
-
FIELD_NAME_SUBJECT
public static final Name FIELD_NAME_SUBJECT
-
FIELD_NAME_PREDICATE
public static final Name FIELD_NAME_PREDICATE
-
FIELD_NAME_OBJECT
public static final Name FIELD_NAME_OBJECT
-
subject
public final Node subject
-
predicate
public final Path predicate
-
object
public final Node object
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
withSubject
public TriplePattern withSubject(Node subject)
-
withPredicate
public TriplePattern withPredicate(Path predicate)
-
withObject
public TriplePattern withObject(Node object)
-
-