|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Node
This interface defines an instance of a labelled 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. |
StatementIterator |
getPredicateStatements()
Gets all statements from the RDF graph for which this URI is the predicate. |
java.lang.String |
getURI()
Returns the String-representation of this URI. |
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.ag.ResourceNode |
|---|
addProperty, getSubjectStatements |
| Methods inherited from interface com.franz.ag.ValueNode |
|---|
compareTo, getObjectStatements, queryAGId |
| Methods inherited from interface org.openrdf.model.Resource |
|---|
addProperty, getSubjectStatements |
| 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.
AllegroGraphExceptionjava.lang.String queryURI()
java.lang.String getLocalName()
getLocalName in interface URIjava.lang.String getNamespace()
getNamespace in interface URIjava.lang.String toString()
toString in class java.lang.ObjectDefined in interface org.openrdf.model.URI
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.Objectint hashCode()
The hashcode of a Node instance is the hashcode of its string representation.
hashCode in class java.lang.Object
StatementIterator getPredicateStatements()
throws GraphException
URI
getPredicateStatements in interface URIGraphExceptionjava.lang.String getURI()
URI
getURI in interface URI
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 | ||||||||