Wittylama
Joined 30 October 2012
Babel user information | ||||
---|---|---|---|---|
| ||||
Users by language |
Main userpage over on the English Wikipedia: here.
This is my volunteer account. As LWyatt (WMF) I'm an employee of the Wikimedia Foundation I was the Wikicite program coordinator (2019-2021), and Wikimedia Enterprise program manager (2020 - ).
I was the coordinator on Wikidata (part of my work with Europeana)
My personal to-do lists:
Trying to become SPARQLy
edit- one SPARQL tutorial
- a different SPARQL tutorial
- too many example queries
- Ijon's example queries from Tallinn
- the official too much information
Examples via Harmonia Amanda:
Things to remember
edit- Mandatory incantation before end of WHERE block
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
- Property or any of its subclasses:
wdt:P31/wdt:P279*
- SELECT DISTINCT to return unique results (useful for when using "property or subclasses of" (wdt:P31/wdt:P279*)
- To find whether an item has an article in Wikipedia, add:
?article schema:about ?item ;
schema:isPartOf <https://en.wikipedia.org/>.
- ORDER BY goes inside brackets, GROUP BY does not. GROUP BY must list all the things not in special brackets (e.g.
(COUNT(?sitelink) AS ?count)
) in the SELECT line.
GROUP BY ?item ?itemLabel ?article
ORDER BY DESC(?count)
LIMIT 50
- To request NOT or EXCEPT something use
MINUS { <the triple(s)> }.
- To request the number of pages in all wikimedia projects add
?sitelink schema:about ?item .
as a triple, and(COUNT(?sitelink) AS ?count)
in the SELECT block. - OR statements are expressed with
UNION
between two sets of triples each within braces. e.g.{ ?item wdt:P19 wd:Q13972 .} UNION {?item wdt:P19 wd:Q1770 .}
Tests for myself...
editArticles:
- "All instances of <topic> that have an article on <language> Wikipedia". solution!
Labels:
- "All instances of <topic> that have a <language> label"
- "...and also <different> language
- "...but not <different> language
Troubles
edit- List of capitals (with country, foundation date, flag) of the EU gives three pairs of separate kinds of duplicates
- Asking for instances of and/or subclasses of "christmas decoration" gives different results for different ccombinations.
- Current physical libraries without geolocation. But two West German libraries still appear in the results.
WikiCite Satellite Cologne 2020
editHi Wittylama - you have added yourself to the list of people who are interested in the WikiCite Satellite Cologne 2020 meeting. The call for submissions is still open and we would love to see your contribution! Let me know if you have any questions. Best wishes!
Konrad Foerstner (talk) 18:32, 12 February 2020 (UTC)