2

Where can I find a mapping between Wikidata entities and Geonames entities?

Wikidata: Worldwide density of geotagged Wikipedia entries GeoNames: Worldwide density of GeoNames entries

2

2 Answers 2

2

Approximately since October 2014 there exists GeoNames ID external identifier on Wikidata. The current number of entities with this identifier is about 1 500 000.

You could retrive this identifier value for Antananarivo using the following SPARQL query:

SELECT ?geoNamesID WHERE
{
   ?place wdt:P1566 ?geoNamesID 
   VALUES (?place) {(wd:Q3915)}
}

Try it.

6

The Geonames RDF for Antananarivo links to Wikipedia:

<gn:wikipediaArticle rdf:resource="http://en.wikipedia.org/wiki/Antananarivo"/>

You should be able to use that to get the corresponding Wikidata entity.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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