I'm trying several queries on the site : http://geosparql.org/
I'm very interested in trying the clause : NEARBY, for example this query using NEARBY in this way:
PREFIX spatial:<http://jena.apache.org/spatial#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geo:<http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX gn:<http://www.geonames.org/ontology#>
Select *
WHERE{
?object spatial:nearby(40.74 -73.989 1 'mi').
?object rdfs:label ?label
}LIMIT 10
When i execute the query on site http://geosparql.org/ all is ok but now i desire download the GeoNames Ontology and execute it on my PC.
here i have found the ontology for download: http://www.geonames.org/ontology/documentation.html
He tells me that The Ontology for GeoNames is available in OWL :
http://www.geonames.org/ontology/ontology_v3.1.rd
I download it but when i open ontology with software Protegè or with Sparql Droid on my smarphone Android and execute same query I get no data maybe the ontology is empty?
How do I fill the ontology, in order to run this query?
Thank you very much to those who will help me.
The ontology is the vocabulary (i.e., definition of classes, properties, etc.) An ontology doesn't necessarily include the individuals (e.g., the places, locations, etc.) that you might be interested in. In this case, I think you've downloaded the ontology, which is relatively small, but you're probably interested in the data dumps that that page describes later. I think the fourth option is the one that you want: