2

In dbpedia vocabulary, why is class "City" not linked with class "Country" ?

3

I believe it is linked with Country through the dbpedia-owl:country link, have you looked at this? StackOverflow, query cities and their country

Qoute sample code:

SELECT DISTINCT ?city ?country 
WHERE { ?city rdf:type dbpedia-owl:City ; 
              rdfs:label ?label ; 
              dbpedia-owl:country ?country 
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.