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 Type
    Method
    Description
    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
    org.aksw.jenax.sparql.fragment.api.Fragment
    Return a fragment which returns geometry information for an entity
    org.apache.jena.sparql.core.Var
    Return which of the fragment's variables is the id variable
    toWktString(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

      String toWktString(org.apache.jena.sparql.engine.binding.Binding binding)
      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