If you look on the bottom left menu bar, in a section called "Languages", you'll see links to the same page in different languages. You'll see that the sub-domain en indicates the page is the English language wikipedia page. If you take the wiki page for a city in one language For that, Wikipedia usually provides pretty good information. It's not structured data, but for a robust dataset like this there is some value to manually curated data. Note 2: here is the list of wikipedia subdomains : Note 1: there is a download button with links for CSV, JSON, etc Note 0: Someone who really knows SPARQL can probably get all languages in one query Įach city in multiple langauges can be linked by its Q number, for example "Q2801" In this case, the query is returning the French names for all the cities, because of this part: bd:serviceParam wikibase:language "fr". ?city wdt:P17 ?country # Also find the country of the city Wikidata has a category called "city" which will give you a list of world cities Ī sample SPARQL query will give you the city name in the target language SELECT ?city ?cityLabel ?country ?countryLabel
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |