top | item 34594605

(no title)

omtinez | 3 years ago

You can use Wikidata and its Sparql query language for this. Although it's not straight forward for all countries, e.g. some have especial properties for regional breakdowns that are not defined as ISO standard subregions.

discuss

order

01acheru|3 years ago

Thanks for the suggestion, but I already tried it in the past and it is almost impossible to have correct results, it just takes a missing category on a country/state/province/city to make it all fall apart.

For example it is common to receive historical entities if they are mislabeled, entities that no longer exist because they were merged... it is good for a side project but not suitable for production.