com.franz.ag
Class BlankNode

java.lang.Object
  extended bycom.franz.ag.ValueObject
      extended bycom.franz.ag.ValueNode
          extended bycom.franz.ag.ResourceNode
              extended bycom.franz.ag.BlankNode
All Implemented Interfaces:
BNode, java.lang.Comparable, Resource, java.io.Serializable, Value

public class BlankNode
extends ResourceNode
implements BNode

This class represents an instance of a blank (anonymous) node in AllegroGraph.

There is no public constructor. Node instances are created by a call to the createBNode() methods in the AllegroGraph class.

See Also:
Serialized Form

Method Summary
 boolean equals(java.lang.Object other)
          Implement equality for BlankNode instances.
 java.lang.String getID()
          Retrieve the identifying string of the BlankNode instance.
 int hashCode()
          Compute the hashcode of a BlankNode instance.
 java.lang.String toString()
          This method overrides the generic toString method.
 
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
 

Method Detail

getID

public java.lang.String getID()
Retrieve the identifying string of the BlankNode instance.

This identifying string exists only in the Java application. AllegroGraph does not implement persistent labels in the triple store. The persisitent label of the BlankNode instance in the triple store is determined by the AllegroGraph implementation.

Specified by:
getID in interface BNode
Returns:
a bnode identifier

toString

public java.lang.String toString()
This method overrides the generic toString method. This method generates an output string of the form "<_:blanknnn>.


equals

public boolean equals(java.lang.Object other)
Implement equality for BlankNode instances.

Two BlankNode instances are equal if they have identical AllegroGraph part id numbers.

Otherwise, the string representations are compared.


hashCode

public int hashCode()
Compute the hashcode of a BlankNode instance.

The hashcode of a BlankNode instance is the hashcode of its string representation.