Class DbscanPf
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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeListdbscan(NodeCollection arr, int geoIdx, double eps, int minPts) org.apache.jena.sparql.engine.QueryIteratorexec(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
-
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:
execin classorg.apache.jena.sparql.pfunction.PropertyFunctionBase
-
dbscan
-