|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Triple
This interface defines a representation of an AllegroGraph triple.
The AllegroGraph instance has 5 components, id, subject, predicate, object and context. All 5 are copied to the Java instance.
The components are copied when a Triple instance is created. The associated URI or literal strings may or may not be filled at creation time.
Triple instances are not unique. There may be multiple Triple instances associated with one triple in the triple store.
Method Summary | |
---|---|
boolean |
add()
Add a triple to the triple store. |
int |
compareTo(TripleImpl to)
|
boolean |
equals(java.lang.Object other)
|
long |
getAGId()
Return the unique integer identifier of the object. |
UPI |
getC()
|
ValueNode |
getContext()
Create a Resource instance that describes the context component of the triple. |
java.lang.String |
getContextLabel()
Retrieve the URI string associated with the context component of this Triple. |
UPI |
getO()
Retrieve the object slot of the Triple instance. |
ValueNode |
getObject()
Create a Value instance that describes the object component of the triple. |
java.lang.String |
getObjectLabel()
Retrieve the URI string associated with the object component of this Triple. |
UPI |
getP()
Retrieve the predicate slot of the Triple instance. |
URINode |
getPredicate()
Create a URI instance that describes the predicate component of the triple. |
ValueNode |
getPredicateInstance()
|
java.lang.String |
getPredicateLabel()
Retrieve the URI string associated with the predicate component of this Triple. |
UPI |
getS()
Retrieve the subject slot of the Triple instance. |
ResourceNode |
getSubject()
Create a Resource instance that describes the subject component of the triple. |
ValueNode |
getSubjectInstance()
|
java.lang.String |
getSubjectLabel()
Retrieve the URI string associated with the subject component of this Triple. |
int |
hashCode()
|
long |
queryAGId()
Return the unique integer identifier of the object. |
java.lang.String |
queryContext()
|
UPI |
queryO()
Retrieve the object slot of the Triple instance. |
java.lang.String |
queryObject()
Retrieve the object slot of the Triple instance. |
UPI |
queryP()
Retrieve the predicate slot of the Triple instance. |
java.lang.String |
queryPredicate()
Retrieve the predicate slot of the Triple instance. |
UPI |
queryS()
Retrieve the subject slot of the Triple instance. |
java.lang.String |
querySubject()
Retrieve the subject slot of the Triple instance. |
java.lang.String |
toString()
This method overrides the generic toString method. |
Method Detail |
---|
long queryAGId()
long getAGId() throws AllegroGraphException
AllegroGraphException
- If the triple is not yet stored.boolean add() throws AllegroGraphException
AllegroGraph.createStatement(ResourceNode, URINode, ValueNode)
or with AllegroGraph.createStatement(ResourceNode, URINode, ValueNode, ResourceNode)
.
AllegroGraphException
UPI queryS()
UPI getS()
java.lang.String querySubject()
java.lang.String getSubjectLabel() throws AllegroGraphException
AllegroGraphException
ResourceNode getSubject()
getSubjectInstance()
to retrieve any type.
ValueNode getSubjectInstance()
UPI queryP()
UPI getP()
java.lang.String queryPredicate()
java.lang.String getPredicateLabel() throws AllegroGraphException
AllegroGraphException
URINode getPredicate()
getPredicateInstance()
to retrieve any type.
ValueNode getPredicateInstance()
UPI queryO()
UPI getO()
java.lang.String queryObject()
java.lang.String getObjectLabel() throws AllegroGraphException
AllegroGraphException
ValueNode getObject()
UPI getC()
java.lang.String queryContext()
java.lang.String getContextLabel()
ValueNode getContext()
java.lang.String toString()
toString
in class java.lang.Object
boolean equals(java.lang.Object other)
equals
in class java.lang.Object
int hashCode()
hashCode
in class java.lang.Object
int compareTo(TripleImpl to)
compareTo
in interface ValueObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |