com.franz.ag
Class EncodedLiteral
java.lang.Object
com.franz.ag.ValueObject
com.franz.ag.ValueNode
com.franz.ag.Literal
com.franz.ag.EncodedLiteral
- All Implemented Interfaces:
- java.lang.Comparable, Literal, java.io.Serializable, Value
- public class EncodedLiteral
- extends Literal
This class implements Literal instances that hold encoded
AllegroGraph values.
Encoded values allow queries that match a range of values;
they can also be used to store data in a more compact form.
Encoded literals are dicusssed in more detail in the AllegroGraph
Introduction.
Encoded literals are created by calling the createEncodedLiteral()
methods in the AllegroGraph class.
- See Also:
- Serialized Form
|
Method Summary |
void |
add()
Add this literal to the AllegroGraph triple store. |
| Methods inherited from class com.franz.ag.Literal |
equals, getAGId, getDatatype, getLabel, getLanguage, getType, hashCode, queryLabel, queryLanguage, queryType, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
EncodedLiteral
protected EncodedLiteral(AllegroGraph ts,
long value,
java.lang.String newEncoding)
EncodedLiteral
protected EncodedLiteral(AllegroGraph ts,
double value,
java.lang.String newEncoding)
EncodedLiteral
protected EncodedLiteral(AllegroGraph ts,
java.lang.String value,
java.lang.String newEncoding)
add
public void add()
throws AllegroGraphException
- Description copied from class:
Literal
- Add this literal to the AllegroGraph triple store.
If the literal already is in the triple store, do nothing.
A Literal instance is in the triple store if queryAGId() returns
a non-null value.
- Overrides:
add in class Literal
- Throws:
AllegroGraphException