|
||||||||||
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.ValueNode
com.franz.ag.ResourceNode
com.franz.ag.Node
This class represents 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.
There is no public constructor. Node instances are created by calls to AllegroGraph methods.
Field Summary | |
static Node |
nullContext
|
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 class com.franz.ag.ResourceNode |
addProperty, getSubjectStatements |
Methods inherited from class com.franz.ag.ValueNode |
compareTo, getObjectStatements, queryAGId |
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 org.openrdf.model.Resource |
addProperty, getSubjectStatements |
Methods inherited from interface org.openrdf.model.Value |
getObjectStatements |
Methods inherited from interface java.lang.Comparable |
compareTo |
Field Detail |
public static final Node nullContext
Method Detail |
public 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
public java.lang.String queryURI()
public java.lang.String getLocalName()
getLocalName
in interface URI
public java.lang.String getNamespace()
getNamespace
in interface URI
public java.lang.String toString()
Defined in interface org.openrdf.model.URI
public 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.
public int hashCode()
The hashcode of a Node instance is the hashcode of its string representation.
public StatementIterator getPredicateStatements() throws GraphException
URI
getPredicateStatements
in interface URI
GraphException
public java.lang.String getURI()
URI
getURI
in interface URI
public void add() throws AllegroGraphException
A Node instance is in the triple store if queryAGId() returns a non-negative value.
AllegroGraphException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |