Interface Literal

All Superinterfaces:
Comparable<Term>, Constant, Serializable, Term

public interface Literal extends Constant
A Literal is a typed Constant representing strings, numbers, dates… The URI returned by getDatatype() specifies which kind of object is represented.
Author:
Clément Sipieter (INRIA) <clement@6pi.fr>
  • Method Details

    • getValue

      Object getValue()
      Returns the literal lexical value.
      Returns:
      the literal value
    • getDatatype

      fr.lirmm.graphik.util.URI getDatatype()
      Returns the datatype of the literal.
      Returns:
      the datatype URI
    • getIdentifier

      String getIdentifier()
      Description copied from interface: Term
      A unique identifier of this term. The following constraint must be fulfil:
      this.getIdentifier().equals(o.getIdentifier()) must be equivalent to this.equals(o).
      Specified by:
      getIdentifier in interface Constant
      Specified by:
      getIdentifier in interface Term
      Returns:
      a unique identifier of this term.