|
|||||||||
| 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()
|
Value |
getContext()
Create a Resource instance that describes the context component of the triple. |
java.lang.String |
getContextLabel()
|
UPI |
getO()
Retrieve the object slot of the Triple instance. |
Value |
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. |
URI |
getPredicate()
Create a URI instance that describes the predicate component of the triple. |
Value |
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. |
Resource |
getSubject()
Create a Resource instance that describes the subject component of the triple. |
Value |
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(Resource, URI, Value)
or with AllegroGraph.createStatement(Resource, URI, Value, Resource).
AllegroGraphExceptionUPI queryS()
UPI getS()
java.lang.String querySubject()
java.lang.String getSubjectLabel()
throws AllegroGraphException
AllegroGraphExceptionResource getSubject()
getSubjectInstance()
to retrieve any type.
getSubject in interface StatementValue getSubjectInstance()
UPI queryP()
UPI getP()
java.lang.String queryPredicate()
java.lang.String getPredicateLabel()
throws AllegroGraphException
AllegroGraphExceptionURI getPredicate()
getPredicateInstance()
to retrieve any type.
getPredicate in interface StatementValue getPredicateInstance()
UPI queryO()
UPI getO()
java.lang.String queryObject()
java.lang.String getObjectLabel()
throws AllegroGraphException
AllegroGraphExceptionValue getObject()
getObject in interface StatementUPI getC()
java.lang.String queryContext()
java.lang.String getContextLabel()
Value getContext()
java.lang.String toString()
toString in class java.lang.Objectboolean equals(java.lang.Object other)
equals in class java.lang.Objectint hashCode()
hashCode in class java.lang.Objectint compareTo(TripleImpl to)
compareTo in interface java.lang.ComparablecompareTo in interface ValueObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||