Class GeoExprUtils

java.lang.Object
org.aksw.jena_sparql_api.sparql.ext.geosparql.GeoExprUtils

public class GeoExprUtils extends Object
Variable (not vocabulary) based utilities to create filter expressions for geo data
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    boundsToWkt(org.locationtech.jts.geom.Envelope bounds)
    Convert a bounds object to a WKT polygon string TODO This method could be moved to a better place
    static org.apache.jena.sparql.expr.Expr
    createExprOgcIntersects(org.apache.jena.sparql.expr.Expr exprVar, org.apache.jena.sparql.expr.Expr geom, String intersectsFnName, String geomFromTextFnName)
     
    static org.apache.jena.sparql.expr.Expr
    createExprWgs84Intersects(org.apache.jena.sparql.core.Var varX, org.apache.jena.sparql.core.Var varY, org.locationtech.jts.geom.Envelope bounds, org.apache.jena.graph.Node castNode)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GeoExprUtils

      public GeoExprUtils()
  • Method Details

    • createExprWgs84Intersects

      public static org.apache.jena.sparql.expr.Expr createExprWgs84Intersects(org.apache.jena.sparql.core.Var varX, org.apache.jena.sparql.core.Var varY, org.locationtech.jts.geom.Envelope bounds, org.apache.jena.graph.Node castNode)
      Parameters:
      varX - The SPARQL variable that corresponds to the longitude
      varY - The SPARQL variable that corresponds to the longitude
      bounds - The bounding box to use for filtering
      castNode - An optional SPAQRL node used for casting, e.g. xsd.xdouble
    • createExprOgcIntersects

      public static org.apache.jena.sparql.expr.Expr createExprOgcIntersects(org.apache.jena.sparql.expr.Expr exprVar, org.apache.jena.sparql.expr.Expr geom, String intersectsFnName, String geomFromTextFnName)
    • boundsToWkt

      public static String boundsToWkt(org.locationtech.jts.geom.Envelope bounds)
      Convert a bounds object to a WKT polygon string TODO This method could be moved to a better place