3

我尝试在 graphDB 中使用距离 geoSPARQL 函数,但没有得到任何结果。这是一个测试:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wgs84_pos: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX geoSparql: <http://www.ontotext.com/plugins/geosparql#>
PREFIX geosparql: <http://www.opengis.net/ont/geosparql#>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX uom: <http://www.opengis.net/def/uom/OGC/1.0/>
SELECT ?d
WHERE {
  BIND(geof:distance 
   ("<http://www.opengis.net/def/crs/EPSG/0/2154> POINT (420670.213757502 6227859.48099221)",
    "<http://www.opengis.net/def/crs/EPSG/0/2154> POINT(627006.586743735 6386592.47021308)",
    uom:meter) as ?d)
      }

亲切的问候。

4

1 回答 1

2

知道了 :)

uom:-> uom:

于 2020-11-20T15:24:22.700 回答