|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface URINode
This interface defines an instance of a labeled resource node in AllegroGraph.
The AllegroGraph object defines two slots, id and uri. Both slots are copied to the Java instance.
The URI member may be a lazy value in the Java instance. If queryURI returns null, getURI() will need a round-trip to the triple store to fetch the actual value.
Node instances are created by calls to AllegroGraph methods.
Method Summary | |
---|---|
void |
add()
Add this node to the AllegroGraph triple store. |
boolean |
equals(java.lang.Object other)
Implement equality for Node instances. |
UPI |
getAGId()
Retrieve the AllegroGraph ID number of the Node. |
java.lang.String |
getLocalName()
Retrieve the local name component of the URI string associated with the node instance. |
java.lang.String |
getNamespace()
Retrieve the namespace component of the URI string associated with the node instance. |
TriplesIterator |
getPredicateStatements()
|
java.lang.String |
getURI()
|
int |
hashCode()
Compute the hashcode of a Node instance. |
java.lang.String |
queryURI()
Retrieve the URI string associated with the node instance. |
java.lang.String |
toString()
Retrieve the URI string associated with the node instance. |
Methods inherited from interface com.franz.agbase.ResourceNode |
---|
addProperty, getSubjectStatements |
Methods inherited from interface com.franz.agbase.ValueNode |
---|
compareTo, getObjectStatements, queryAGId |
Method Detail |
---|
UPI getAGId() throws AllegroGraphException
If the Node is already registered in the AG triple store, return the locally cached value of the ID number. Otherwise, register the Node in the AG triple store and return the new ID number.
AllegroGraphException
java.lang.String queryURI()
java.lang.String getLocalName()
java.lang.String getNamespace()
java.lang.String toString()
toString
in class java.lang.Object
boolean equals(java.lang.Object other)
Two Node instances are equal if both are registered in the AllegroGraph triple store and they have identical AllegroGraph part id numbers.
Otherwise, the string representations are compared.
equals
in class java.lang.Object
int hashCode()
The hashcode of a Node instance is the hashcode of its string representation.
hashCode
in class java.lang.Object
TriplesIterator getPredicateStatements() throws AllegroGraphException
AllegroGraphException
java.lang.String getURI()
void add() throws AllegroGraphException
A Node instance is in the triple store if queryAGId() returns a non-null value.
AllegroGraphException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |