On 23/02/16 11:34, Maria Jackson wrote:
Dear All,
I tried to execute the following spatial join query on Jena 2.13.0.
Here, the distance between place ?long and another place ?nlong should
be less than 10,000 meters?
./tdbquery --time --loc=spatialTestDatabase/ "select ?place ?nplace
?type ?subject (<http://www.opengis.net/def/function/geosparql/distance>(?long,
?nlong, 10000) as ?distance) WHERE {graph ?g1{?place
<http://www.opengis.net/ont/geosparql#asWKT> ?long} graph ?g4{?nplace
<http://www.opengis.net/ont/geosparql#asWKT> ?nlong}}";
On running the above query, I ended up getting the following error:
16:44:00 WARN exec :: URI
<http://www.opengis.net/def/function/geosparql/distance> has no
registered function factory
Can someone please help me as to where am I going wrong?
Function ogcf:distance isn't registered as a custom function. Custom
functions need to have the URI->java code set somehow.
BTW
1/ ogcf:distance is (geoLiteral1, geoLiteral2, unitsURI)
2/ Jena does not support geoSPARQL functions currently: JENA-664
Someone could contribute them which would be a good start.
Andy