Created
December 20, 2016 20:23
-
-
Save bunyk/c286a2821c1d953793cae8cdf3d49247 to your computer and use it in GitHub Desktop.
Запити до вікіданих
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Країни і їх координати | |
# Застосовується на https://query.wikidata.org/ | |
SELECT ?itemLabel ?coords | |
WHERE | |
{ | |
?item wdt:P31 wd:Q6256 . # всі такі ?item в яких властивість P31 (є одним з) дорівнює Q6256 (країна) | |
?item wdt:P625 ?coords . # і ще запишіть в цього ?item властивість P625 (географічні координати) в змінну ?coords | |
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } # я не знаю як, але це перетворить елемент на його ім'я англійською | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment