How can I activate GeoSparql in Graphdb?

160 views Asked by At

I looked into the documentation and it is written that we should add INSERT DATA { _:s geoSparql:enabled "true" . } to the setting in Graphdb to be able to query OpenStreetMap. But I don't understand how or where should I do this.

Here is the instruction: https://graphdb.ontotext.com/documentation/9.4/free/geosparql-support.html#usage Could you please help me? Thanks.

Update: I added my query here. It works in sophox.org but not in the graphdb.

PREFIX osmt: <https://wiki.openstreetmap.org/wiki/Key:>
PREFIX osmm: <https://www.openstreetmap.org/meta/> 
PREFIX geoSparql: <http://www.ontotext.com/plugins/geosparql#>


SELECT * {
       ?uni osmt:amenity "university";
       osmt:addr:country   "FR".
}

enter image description here

1

There are 1 answers

0
Arbo94 On BEST ANSWER

I added SERVICE <https://sophox.org/sparql> after the first curly bracket and it is working perfectly now.

PREFIX osmt: <https://wiki.openstreetmap.org/wiki/Key:>
PREFIX osmm: <https://www.openstreetmap.org/meta/> 
PREFIX geoSparql: <http://www.ontotext.com/plugins/geosparql#>


SELECT * {<https://sophox.org/sparql> {
   ?uni osmt:amenity "university";
   osmt:addr:country   "FR".
}}