|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.franz.ag.ValueObject
com.franz.ag.Triple
This class implements in Java a representation of an AllegroGraph triple.
The AllegroGraph instance has 5 components, id, subject, predicate, object and context. All 4 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(Triple to)
|
boolean |
equals(java.lang.Object other)
|
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. |
Methods inherited from class com.franz.ag.ValueObject |
compareTo |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
compareTo |
Method Detail |
public long queryAGId()
public boolean add() throws AllegroGraphException
AllegroGraph.createStatement(Resource, URI, Value)
or with AllegroGraph.createStatement(Resource, URI, Value, Resource)
.
AllegroGraphException
public UPI queryS()
public UPI getS()
public java.lang.String querySubject()
public java.lang.String getSubjectLabel() throws AllegroGraphException
AllegroGraphException
public Resource getSubject()
getSubjectInstance()
to retrieve any type.
getSubject
in interface Statement
public Value getSubjectInstance()
public UPI queryP()
public UPI getP()
public java.lang.String queryPredicate()
public java.lang.String getPredicateLabel() throws AllegroGraphException
AllegroGraphException
public URI getPredicate()
getPredicateInstance()
to retrieve any type.
getPredicate
in interface Statement
public Value getPredicateInstance()
public UPI queryO()
public UPI getO()
public java.lang.String queryObject()
public java.lang.String getObjectLabel() throws AllegroGraphException
AllegroGraphException
public Value getObject()
getObject
in interface Statement
public UPI getC()
public java.lang.String queryContext()
public java.lang.String getContextLabel()
public Value getContext()
public java.lang.String toString()
public boolean equals(java.lang.Object other)
public int hashCode()
public int compareTo(Triple to)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |