Interface GeoConstraintFactory
- All Known Implementing Classes:
GeoConstraintFactoryGeoSparql,GeoConstraintFactoryWgs
public interface GeoConstraintFactory
This class bundles
(a) a SPARQL graph pattern that relates entities to spatial objects with
(b) with a method that can constrain the rows to arbitrary bounding boxes.
Also, (c) there is a method to map bindings from the graph pattern's result
set to WKT strings.
The 'factory' aspect refers to the
createExpr(Envelope) method which is a factory
for SPARQL expressions from bounding boxes.-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.sparql.expr.ExprcreateExpr(org.locationtech.jts.geom.Envelope bounds) Create a SPARQL expression that constrains the fragment to the given bounding boxorg.aksw.jenax.sparql.fragment.api.FragmentReturn a fragment which returns geometry information for an entityorg.apache.jena.sparql.core.VargetIdVar()Return which of the fragment's variables is the id variabletoWktString(org.apache.jena.sparql.engine.binding.Binding binding) Given a binding from the fragment create a WKT string from it
-
Method Details
-
getFragment
org.aksw.jenax.sparql.fragment.api.Fragment getFragment()Return a fragment which returns geometry information for an entity -
getIdVar
org.apache.jena.sparql.core.Var getIdVar()Return which of the fragment's variables is the id variable -
toWktString
Given a binding from the fragment create a WKT string from it -
createExpr
org.apache.jena.sparql.expr.Expr createExpr(org.locationtech.jts.geom.Envelope bounds) Create a SPARQL expression that constrains the fragment to the given bounding box
-