Class RDFDatatypeWkbLiteral

java.lang.Object
org.apache.jena.datatypes.BaseDatatype
org.apache.jena.geosparql.implementation.datatype.GeometryDatatype
org.aksw.jena_sparql_api.sparql.ext.geosparql.RDFDatatypeWkbLiteral
All Implemented Interfaces:
org.apache.jena.datatypes.RDFDatatype

public class RDFDatatypeWkbLiteral extends org.apache.jena.geosparql.implementation.datatype.GeometryDatatype
Datatype for Well Known Binary Literals
  • 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
    A static instance of WKTDatatype.
    static final String
    The default WKT type URI.
    protected org.locationtech.jts.io.WKBReader
     
    protected org.locationtech.jts.io.WKBWriter
     
    protected org.locationtech.jts.io.WKTWriter
     

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

    uri
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
    RDFDatatypeWkbLiteral(String uri, org.locationtech.jts.io.WKBReader wkbReader, org.locationtech.jts.io.WKBWriter wkbWriter)
     
    RDFDatatypeWkbLiteral(String uri, org.locationtech.jts.io.WKBReader wkbReader, org.locationtech.jts.io.WKBWriter wkbWriter, org.locationtech.jts.io.WKTWriter wktWriter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.jena.datatypes.RDFDatatype
    get()
     
    org.apache.jena.geosparql.implementation.GeometryWrapper
    read(String geometryLiteral)
     
     
    unparse(Object geometry)
    This method Un-parses the JTS Geometry to the WKT literal

    Methods inherited from class org.apache.jena.geosparql.implementation.datatype.GeometryDatatype

    check, checkURI, get, get, parse, parse, registerDatatypes

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

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

    Methods inherited from class java.lang.Object

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

    • wkbReader

      protected org.locationtech.jts.io.WKBReader wkbReader
    • wkbWriter

      protected org.locationtech.jts.io.WKBWriter wkbWriter
    • wktWriter

      protected org.locationtech.jts.io.WKTWriter wktWriter
    • URI

      public static final String URI
      The default WKT type URI.
      See Also:
    • INSTANCE

      public static final RDFDatatypeWkbLiteral INSTANCE
      A static instance of WKTDatatype.
  • Constructor Details

    • RDFDatatypeWkbLiteral

      public RDFDatatypeWkbLiteral()
    • RDFDatatypeWkbLiteral

      public RDFDatatypeWkbLiteral(String uri)
    • RDFDatatypeWkbLiteral

      public RDFDatatypeWkbLiteral(String uri, org.locationtech.jts.io.WKBReader wkbReader, org.locationtech.jts.io.WKBWriter wkbWriter)
    • RDFDatatypeWkbLiteral

      public RDFDatatypeWkbLiteral(String uri, org.locationtech.jts.io.WKBReader wkbReader, org.locationtech.jts.io.WKBWriter wkbWriter, org.locationtech.jts.io.WKTWriter wktWriter)
  • Method Details

    • get

      public static org.apache.jena.datatypes.RDFDatatype get()
    • unparse

      public String unparse(Object geometry)
      This method Un-parses the JTS Geometry to the WKT literal
      Specified by:
      unparse in interface org.apache.jena.datatypes.RDFDatatype
      Overrides:
      unparse in class org.apache.jena.datatypes.BaseDatatype
      Parameters:
      geometry - - the JTS Geometry to be un-parsed
      Returns:
      WKT - the returned WKT Literal.
      Notice that the Spatial Reference System is not specified in returned WKT literal.
    • read

      public org.apache.jena.geosparql.implementation.GeometryWrapper read(String geometryLiteral)
      Specified by:
      read in class org.apache.jena.geosparql.implementation.datatype.GeometryDatatype
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.jena.datatypes.BaseDatatype