在一个项目中,我使用了 sparql 中的大数据。
我无法计算距离,也无法找到点多边形中的所有文件 (PointofInterrest)(例如,显示某个区域中的所有文件)。
我试过 geof: distance 但我得到了这个答案:
}
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)
我也试过 bif:st_distance 但我不能。你能帮我澄清一下吗?谢谢你
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)
}