com.franz.ag
Class EncodedLiteral

java.lang.Object
  extended bycom.franz.ag.ValueObject
      extended bycom.franz.ag.ValueNode
          extended bycom.franz.ag.Literal
              extended bycom.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

Constructor Summary
protected EncodedLiteral(AllegroGraph ts, double value, java.lang.String newEncoding)
           
protected EncodedLiteral(AllegroGraph ts, long value, java.lang.String newEncoding)
           
protected EncodedLiteral(AllegroGraph ts, java.lang.String value, java.lang.String newEncoding)
           
 
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 com.franz.ag.ValueNode
compareTo, getObjectStatements, queryAGId
 
Methods inherited from class com.franz.ag.ValueObject
compareTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openrdf.model.Value
getObjectStatements
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

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)
Method Detail

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