java.lang.Object
org.apache.jena.datatypes.BaseDatatype
fr.mines_stetienne.ci.sparql_generate.utils.WktLiteral
All Implemented Interfaces:
org.apache.jena.datatypes.RDFDatatype

public class WktLiteral extends org.apache.jena.datatypes.BaseDatatype
WktLiteral datatype A custom RDFDatatype to implement WKT literal
Since:
2018-09-04
Author:
El Mehdi Khalfi invalid input: '<'el-mehdi.khalfi at emse.fr>
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.jena.datatypes.BaseDatatype

    org.apache.jena.datatypes.BaseDatatype.TypedValue
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final org.apache.jena.datatypes.RDFDatatype
     

    Fields inherited from class org.apache.jena.datatypes.BaseDatatype

    uri
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isEqual(org.apache.jena.graph.impl.LiteralLabel value1, org.apache.jena.graph.impl.LiteralLabel value2)
    Compares two instances of values of the given datatype.
    parse(String lexicalForm)
    Parse a lexical form of this datatype to a value
    unparse(Object value)
    Convert a value of this datatype out to lexical form.

    Methods inherited from class org.apache.jena.datatypes.BaseDatatype

    cannonicalise, equals, extendedTypeDefinition, getHashCode, getJavaClass, getURI, hashCode, isEqualByTerm, isEqualPlain, isValid, isValidLiteral, isValidValue, langTagCompatible, normalizeSubType, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Method Details

    • unparse

      public String unparse(Object value)
      Convert a value of this datatype out to lexical form.
      Specified by:
      unparse in interface org.apache.jena.datatypes.RDFDatatype
      Overrides:
      unparse in class org.apache.jena.datatypes.BaseDatatype
    • parse

      public Object parse(String lexicalForm)
      Parse a lexical form of this datatype to a value
      Specified by:
      parse in interface org.apache.jena.datatypes.RDFDatatype
      Overrides:
      parse in class org.apache.jena.datatypes.BaseDatatype
    • isEqual

      public boolean isEqual(org.apache.jena.graph.impl.LiteralLabel value1, org.apache.jena.graph.impl.LiteralLabel value2)
      Compares two instances of values of the given datatype. This does not allow rationals to be compared to other number formats, Lang tag is not significant.
      Specified by:
      isEqual in interface org.apache.jena.datatypes.RDFDatatype
      Overrides:
      isEqual in class org.apache.jena.datatypes.BaseDatatype
      Parameters:
      value1 - First value to compare
      value2 - Second value to compare
      Returns:
      Value to determine whether both are equal.