java.lang.Object
org.apache.jena.sparql.pfunction.PropertyFunctionBase
org.aksw.jena_sparql_api.sparql.ext.geosparql.DbscanPf
All Implemented Interfaces:
org.apache.jena.sparql.pfunction.PropertyFunction

public class DbscanPf extends org.apache.jena.sparql.pfunction.PropertyFunctionBase
DBscan. By default relies on metres and jena's default geometry.greatCircleDistance distance function. For nearest neighbor lookups, this implementation builds a temporary in-memory geosparql model from the input such that the spatial index of jena-geosparql is reused. (?tuple ?geometryComponentIdx ?eps ?minPts) geo:dbscan (?clusterId ?tuple)
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.jena.query.Query
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static NodeList
    dbscan(NodeCollection arr, int geoIdx, double eps, int minPts)
     
    org.apache.jena.sparql.engine.QueryIterator
    exec(org.apache.jena.sparql.engine.binding.Binding binding, org.apache.jena.sparql.pfunction.PropFuncArg argSubject, org.apache.jena.graph.Node predicate, org.apache.jena.sparql.pfunction.PropFuncArg argObject, org.apache.jena.sparql.engine.ExecutionContext execCxt)
     

    Methods inherited from class org.apache.jena.sparql.pfunction.PropertyFunctionBase

    build, exec

    Methods inherited from class java.lang.Object

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

    • NEARBY_QUERY

      public static final org.apache.jena.query.Query NEARBY_QUERY
  • Constructor Details

    • DbscanPf

      public DbscanPf()
  • Method Details

    • exec

      public org.apache.jena.sparql.engine.QueryIterator exec(org.apache.jena.sparql.engine.binding.Binding binding, org.apache.jena.sparql.pfunction.PropFuncArg argSubject, org.apache.jena.graph.Node predicate, org.apache.jena.sparql.pfunction.PropFuncArg argObject, org.apache.jena.sparql.engine.ExecutionContext execCxt)
      Specified by:
      exec in class org.apache.jena.sparql.pfunction.PropertyFunctionBase
    • dbscan

      public static NodeList dbscan(NodeCollection arr, int geoIdx, double eps, int minPts)