sparqlgraphdbgeosparql

How can I activate GeoSparql in Graphdb?


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


Solution

  • 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".
    }}