BONSAMURAIS / triple-store

Competency questions and content related to the Bonsai RDF triple-store backend: Apache Jena
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

How to QUERY Geonames as remote #14

Open kuzeko opened 5 years ago

kuzeko commented 5 years ago

The following query should return names of location from geonames

PREFIX gn: <http://www.geonames.org/ontology#>
PREFIX bont: <http://ontology.bonsai.uno/core#>

SELECT DISTINCT ?g ?name
WHERE {
    ?a bont:location ?loc .
    BIND( IRI(?loc) as ?g) .
    BIND ( CONCAT(?loc, "/about.rdf") as ?ser) .
    ?g gn:shortName ?name .
}

at the moment this seems not to be possible

mmr2187 commented 5 years ago

I'll check this out tomorrow, Friday or during the weekend.

mmr2187 commented 5 years ago

Ah, the geonames should be in the db for it to be queryable?