Class GeoExprUtils
java.lang.Object
org.aksw.jena_sparql_api.sparql.ext.geosparql.GeoExprUtils
Variable (not vocabulary) based utilities to create filter expressions for geo data
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringboundsToWkt(org.locationtech.jts.geom.Envelope bounds) Convert a bounds object to a WKT polygon string TODO This method could be moved to a better placestatic org.apache.jena.sparql.expr.ExprcreateExprOgcIntersects(org.apache.jena.sparql.expr.Expr exprVar, org.apache.jena.sparql.expr.Expr geom, String intersectsFnName, String geomFromTextFnName) static org.apache.jena.sparql.expr.ExprcreateExprWgs84Intersects(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)
-
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 longitudevarY- The SPARQL variable that corresponds to the longitudebounds- The bounding box to use for filteringcastNode- An optional SPAQRL node used for casting, e.g. xsd.xdouble
-
createExprOgcIntersects
-
boundsToWkt
Convert a bounds object to a WKT polygon string TODO This method could be moved to a better place
-