Class GeoConstraintFactoryWgs
java.lang.Object
org.aksw.jena_sparql_api.sparql.ext.geosparql.GeoConstraintFactoryWgs
- All Implemented Interfaces:
GeoConstraintFactory
A bridge between a SPARQL relation that can be constrained to a bounding box
and converting matching rows to WKT strings.
(Could be extended to also expose JTS geometries and Jena's GeometryWrappers)
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGeoConstraintFactoryWgs(org.aksw.jenax.sparql.fragment.api.Fragment3 fragment, org.apache.jena.graph.Node castNode) -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoConstraintFactoryWgscreate()org.apache.jena.sparql.expr.ExprcreateExpr(org.locationtech.jts.geom.Envelope bounds) Create a SPARQL expression that constrains the fragment to the given bounding boxstatic org.aksw.jenax.sparql.fragment.api.Fragment3createXyFragment(org.apache.jena.graph.Node xProperty, org.apache.jena.graph.Node yProperty) org.apache.jena.graph.Nodeorg.aksw.jenax.sparql.fragment.api.Fragment3Return a fragment which returns geometry information for an entityorg.apache.jena.sparql.core.VargetIdVar()Return which of the fragment's variables is the id variableorg.apache.jena.sparql.core.VargetXVar()org.apache.jena.sparql.core.VargetYVar()static GeoConstraintFactoryWgsstatic GeoConstraintFactoryWgsof(org.apache.jena.graph.Node xProperty, org.apache.jena.graph.Node yProperty, org.apache.jena.graph.Node castNode) toWktString(org.apache.jena.sparql.engine.binding.Binding binding) Convert a binding into a WKT string
-
Field Details
-
fragment
protected org.aksw.jenax.sparql.fragment.api.Fragment3 fragment -
castNode
protected org.apache.jena.graph.Node castNode
-
-
Constructor Details
-
GeoConstraintFactoryWgs
protected GeoConstraintFactoryWgs(org.aksw.jenax.sparql.fragment.api.Fragment3 fragment, org.apache.jena.graph.Node castNode)
-
-
Method Details
-
of
-
of
public static GeoConstraintFactoryWgs of(org.apache.jena.graph.Node xProperty, org.apache.jena.graph.Node yProperty, org.apache.jena.graph.Node castNode) -
create
-
getFragment
public org.aksw.jenax.sparql.fragment.api.Fragment3 getFragment()Description copied from interface:GeoConstraintFactoryReturn a fragment which returns geometry information for an entity- Specified by:
getFragmentin interfaceGeoConstraintFactory
-
getIdVar
public org.apache.jena.sparql.core.Var getIdVar()Description copied from interface:GeoConstraintFactoryReturn which of the fragment's variables is the id variable- Specified by:
getIdVarin interfaceGeoConstraintFactory
-
getXVar
public org.apache.jena.sparql.core.Var getXVar() -
getYVar
public org.apache.jena.sparql.core.Var getYVar() -
getCastNode
public org.apache.jena.graph.Node getCastNode() -
createExpr
public org.apache.jena.sparql.expr.Expr createExpr(org.locationtech.jts.geom.Envelope bounds) Description copied from interface:GeoConstraintFactoryCreate a SPARQL expression that constrains the fragment to the given bounding box- Specified by:
createExprin interfaceGeoConstraintFactory
-
toWktString
Convert a binding into a WKT string- Specified by:
toWktStringin interfaceGeoConstraintFactory
-
createXyFragment
public static org.aksw.jenax.sparql.fragment.api.Fragment3 createXyFragment(org.apache.jena.graph.Node xProperty, org.apache.jena.graph.Node yProperty)
-