Wikimedia CEE Meeting 2016/Programme/Submissions/Sparql for Wikidata
Title of your proposal
editName(s) and/or username(s)
edit- Tobias Schönberg, User:Tobias1984
- Coinstructors welcome!
Topic
edit- Wikidata
Type of submission (Please choose one)
edit- Workshop (work in groups)
Summary
editI would like to do a 1 hour Sparql workshop with people that haven't used it or only know it a little. No prior programming experience is needed. We will go through some simple query examples and then everyone can work on queries of their own. We will use http://query.wikidata.org to build the queries. An example of a query is shown in the image to the right. It is build with this query:
SELECT ?item ?itemLabel ?sisterCity ?sisterCityLabel ?coord
WHERE {
?item wdt:P17 wd:Q399 .
?item wdt:P190 ?sisterCity .
?sisterCity wdt:P625 ?coord .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
?item rdfs:label ?itemLabel .
?sisterCity rdfs:label ?sisterCityLabel .
}
}
We can also look at queries that help guide translation efforts:
# Items that have country = Armenia, have an Armenian label and are missing and English label
SELECT ?item ?itemLabel ?armenianLabel WHERE {
?item wdt:P17 wd:Q399 .
?item rdfs:label ?armenianLabel filter (lang(?armenianLabel) = "hy") .
filter not exists { ?item rdfs:label ?missinglabel filter (lang(?missinglabel) = "en") } .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
}
Expected outcomes
editDuration (without Q&A)
edit1 hour
Specific requirements
edit- Possible scheduling overlap with Pywikibot for Wikidata
- Participants: Just a laptop, internet connection, and a new browser.
- Instructor: A beamer would be good.
Slides or further information
editInterested attendees (Please add yourself, and you may indicate your questions to the presenter).
edit- --Лорд Бъмбъри (talk) 19:44, 18 July 2016 (UTC)
- Yarl (talk) 09:51, 20 July 2016 (UTC)
- Halibutt (talk) 15:04, 20 July 2016 (UTC)
- Ijon (talk) 16:07, 20 July 2016 (UTC)
- --Vojtěch Dostál (talk) 17:41, 21 July 2016 (UTC)
- - Kareyac (talk) 05:30, 26 July 2016 (UTC)
- Wittylama (talk)
- --Γλαύκος (talk) 04:22, 22 August 2016 (UTC)
- --Aram-van (talk) 20:23, 25 August 2016 (UTC)
- --Gikü (talk) 09:20, 26 August 2016 (UTC)