|
||||||||||
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.Literal
This class represents an instance of a literal node in AllegroGraph.
The AllegroGraph object defines two slots, id and label. Both slots are copied to the Java instance.
The label member may be a lazy value in the Java instance. If queryLabel returns null, getLabel() must make a round-trip to the triple store for the actual value.
There is no public constructor. Literal instances are created by calls to AllegroGraph methods.
Method Summary | |
void |
add()
Add this literal to the AllegroGraph triple store. |
boolean |
equals(java.lang.Object other)
Implement equality for Literal instances. |
UPI |
getAGId()
|
URI |
getDatatype()
Retrieve the datatype as a URI instance. |
java.lang.String |
getLabel()
Return the string associated with the Literal instance. |
java.lang.String |
getLanguage()
Retrieve the language qualifier of the Literal. |
java.lang.String |
getType()
Retrieve the string label for the datatype of the Literal. |
int |
hashCode()
Compute the hashcode of a Literal instance. |
java.lang.String |
queryLabel()
Return the string associated with the Literal instance. |
java.lang.String |
queryLanguage()
Retrieve the language field of the Literal. |
java.lang.String |
queryType()
Retrieve the string label of the datatype of the Literal. |
java.lang.String |
toString()
This method overrides the generic toString method. |
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.Value |
getObjectStatements |
Methods inherited from interface java.lang.Comparable |
compareTo |
Method Detail |
public java.lang.String queryLabel()
If the returned value is null, the string value is not in the local Java cache, and must be retrieved from the AllegroGraph server with a call to getLabel().
public java.lang.String getLabel()
getLabel
in interface Literal
public java.lang.String queryType()
If the returned value is null, getType() or getDatatype() must be called to get the actual value.
public URI getDatatype()
getDatatype
in interface Literal
public java.lang.String getType()
public java.lang.String queryLanguage()
If the returned value is null, getLanguage() must be called to get the actual value.
public java.lang.String getLanguage()
getLanguage
in interface Literal
public java.lang.String toString()
public boolean equals(java.lang.Object other)
Two Literal 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 Literal instance is the hashcode of its string representation.
public void add() throws AllegroGraphException
A Literal instance is in the triple store if queryAGId() returns a non-null value.
AllegroGraphException
public UPI getAGId() throws AllegroGraphException
AllegroGraphException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |