Parsing Wikipedia / Wikidata: how to get the current country based on city?

61 Views Asked by At

I'm parsing wikidata/wikipedia and i'm currently writing a function like get_country_by_city( $wikidata_id ). The problem: when eg. passing Q64 (Berlin), i'm getting 10 country instances and i want to get only the current country - which would be Q183. is there maybe unique attribute for it?

0

There are 0 best solutions below