In a project, I use big data which is in sparql.
I cannot calculate the distance and I cannot find all the files (PointofInterrest) that are in a point polygon (to display all the files that are in a region, for example).
I tried with geof: distance but I got this answer:
}
java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: org.openrdf.query.QueryEvaluationException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.Exception: task=ChunkTask{query=d6f6b503-fd98-4c2c-891c-afa517fd95e0,bopId=37,partitionId=-1,sinkId=38,altSinkId=null}, cause=java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException: unknown function: http://www.opengis.net/def/function/geosparql/distance
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at com.bigdata.rdf.sail.webapp.BigdataServlet.submitApiTask(BigdataServlet.java:294)
I also tried with bif:st_distance But I can not. Could you clarify for me please? thank you
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
prefix sf: <http://www.opengis.net/ont/sf>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
prefix ex: <http://example.org/>
PREFIX uom: <http://www.opengis.net/def/uom/OGC/1.0/>
SELECT
(...)
BIND (geof:distance(?lat,?lon, "48.xx"^^xsd:double, "10.xx"^^xsd:double,uom:metre) as ?xr)
}