I have several triples that represent the locations of several cities. I want to remove a Prolog request, for example
(select (?x ?y ?dist)
(q- ?x !exns:geolocation ?locx)
(q- ?y !exns:geolocation ?locy)
(geo-distance ?locx ?locy ?dist))
but I get this error:
Server returned 400: attempt to call '#:geo-distance/3' which is an undefined function.
I would like to understand how to use geospatial reasoning methods, such as geo-distance(I suggested that it was built-in because it uses it here . Isn't that so?) In the Prolog request because it is currently a mystery to me, and I did not find good examples for this.
I use the Python API, BTW and in the Python API tutorial they use the method getStatementsto extract triples in a circle of some radius. I want to be able to do such things in a Prolog request and Python API, and not in AllegroCL. I would like to create web applications, and I do not know how to do this in AllegroCL, but I do not know how in Python.
source
share