User:Beat Estermann/WD-Intro-2020-11-16
Useful Links
edit- Asaf's Gentle Introduction to Wikidata (Youtube)
- Slide Deck of this Course
- Google Doc mit Anwendungsfällen der beteiligten Institutionen
- Handout: Wikidata in Brief
- Handout: Wikidata Query Service in Brief
- Help:Multilingual
- Wikidata – Project Cultural Heritage
- eCH-0205 – Linked Open Data (Guidelines)
- Wikidata Query Service (SPARQL Endpoint)
- Wikidata Query Service - User Manual
- Vizquery - a tool for making simple queries
- Cradle - a tool to create customized forms to enter data manually
- Histropedia – Wikidata Query Timeline
- Wikidata Ontology Explorer (seems to be partly broken at the moment)
- Werkzeuge für Freiwillige: Von Wikipedia aus verfolgen, was auf Wikidata vor sich geht (Blog Post by Jens Ohlig, 1 June 2018)
- How to Link Your Institution’s Collections to Wikidata? a short manual to a semi-automatic way of using the “archives at” property (P485)
Useful Gadgets
editTo activate the gadgets, go to the "Gadget" tab in your preferences and tick the corresponding checkbox.
- Gadget "relateditems:" Adds a button to the bottom of item pages to display inverse statements.
- Explanatory note: For many items Wikidata has more information than can be seen on the item page. For example on Whitcomb L. Judson Whitcomb L. Judson (Q731876) you see that he is an inventor but you don't see his invention. That's because discoverer or inventor discoverer or inventor (P61) only links from the invention to the inventor and not the other way round. To solve this general problem that statements are only displayed in one way the script adds at the end of all item pages a new button to load inverse statements.
- Gadget "Recoin" ("Relative Completeness Indicator") is a script that extends Wikidata entity pages with information about the relative completeness of the information and provides suggestions for further information to be added to an item.
- There are further Gadgets that facilitate particular tasks when working on Wikidata - check them out!
Tools for (Semi-)Automatic Data Ingests
editSum of All GLAMs / Referencing Archival Fonds on Wikidata / Graph-based Query Expansion in Library Discovery Systems
edit- "An International Knowledge Base for All Heritage Institutions" (Giovanna Fontenelle and Beat Estermann, 4-5 July 2019).
- This Month in GLAM, January 2020 edition
Trivia
editExamples of Data Use
editExamples of data use in the context of Wikipedia
edit- Centralized inter-wiki links
- Centralized data management for infoboxes
- Centralized data management for lists
- Mbabel Tool - for the creation of draft articles, including infobox and general article structure, populated with data from Wikidata
- Wikimedia CH campaign at the occasion of the International Museums Day 2018
Examples of data use outside Wikipedia/Wikimedia: external applications
editLet's Practice!
editSearching & Editing Wikidata
editComplement information about organizations
editSearch for an organization from the Bern University Library dataset of corporate archives and use "Recoin" (see "Useful Gadgets") to complement the information:
- Sanitätsgeschäft M. Schaerer A.G.
- Universität Bern, Theodor-Kocher-Institut; Theodor-Kocher-Institut → Theodor Kocher Institute (Q98635935)
- Union Schweizerischer Gesellschaften für experimentelle Biolog; Life Sciences Switzerland → Life Sciences Switzerland (Q13416886)
- Schweizerische Gesellschaft für Medizinische Radiologie
- Schweiz. Verein für Physiologie, Physiolog. Chemie und Pharmak; Freie Vereinigung schweizerischer Physiologen (1932); Schweiz. Verein der Physiologen und Pharmakologen (1944-55) → Schweizerischer Verein für Physiologie, Physiologie Chemie und Pharmakologie (Q98635715)
- Ärztlicher Bezirksverein Emmental
- Ärztlicher Bezirksverein Oberaargau
- Schweizerische Gesellschaft für Biochemie → Swiss Society for Biochemistry (Q98635570)
- Institut Für Sozial- und Präventivmedizin der Uni Bern → Institute of Social and Preventive Medicine (Q98635443)
- Schweizerische Gesellschaft für Oto-Rhino-Laryngologie → Swiss Society for Oto-Rhino-Laryngology (Q98635727)
- Schweizerische Akademie der Medizinischen Wissenschaften → Swiss Academy of Medical Sciences (Q1287710)
- Schweizerische Gesellschaft für Chirurgie → Q98635675
- Bernische Radium-Stiftung
- Schweizerische Gesellschaft für Allgemeine Medizin → Swiss Society of General Medicine (Q98635549)
- International Society for Stereology → International Society for Stereology & Image Analysis (Q48796537) (with "archives at" statement)
- Pharmacie St. Martin Vevey → Pharmacie St. Martin (Q98635459) (with "archives at" statement)
Hint:
- Indicate the website / database where you found the information as the source of your statement (see: Collection database of the Institute of Medical History of the University of Bern (Q98457204)).
Example Queries
editReturn all books written by J. K. Rowling
edit- The relevant items and properties are: J. K. Rowling (Q34660), author (P50)
SELECT ?book ?bookLabel
WHERE {
?book wdt:P50 wd:Q34660 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
What other information is available about J. K. Rowling books?
edit- Relevant properties are: publisher(P123), publication Date(P577), award received (P166)
SELECT ?book ?bookLabel ?publisherLabel ?publicationDate ?awardsLabel
WHERE {
?book wdt:P50 wd:Q34660 .
?book wdt:P123 ?publisher;
wdt:P577 ?publicationDate;
wdt:P166 ?awards .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
What happened to the other books?
edit- The Optional function is needed so that all entries are kept.
SELECT ?book ?bookLabel ?publisherLabel ?publicationDate ?awardsLabel
WHERE {
?book wdt:P50 wd:Q34660 .
OPTIONAL {?book wdt:P123 ?publisher .}
OPTIONAL {?book wdt:P577 ?publicationDate .}
OPTIONAL {?book wdt:P166 ?awards .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
Things named after French Presidents
edit#defaultView:Map
SELECT ?truc ?presLabel ?trucLabel ?coord ?layer WHERE {
{
SELECT DISTINCT ?truc (SAMPLE(?coord) AS ?coord) (SAMPLE(?layer) AS ?layer) WHERE {
?pres wdt:P39 wd:Q191954 ;
rdfs:label ?layer.
FILTER((LANG(?layer)) = "fr")
?truc wdt:P138 ?pres ;
wdt:P625 ?coord.
}
GROUP BY ?truc ?trucLabel
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
Things named after Swiss Federal Councilors
edit#defaultView:Map
SELECT ?truc ?fcLabel ?trucLabel ?coord ?layer WHERE {
{
SELECT DISTINCT ?truc (SAMPLE(?coord) AS ?coord) (SAMPLE(?layer) AS ?layer) WHERE {
?fc wdt:P39 wd:Q11811941 ;
rdfs:label ?layer.
FILTER((LANG(?layer)) = "fr")
?truc wdt:P138 ?fc ;
wdt:P625 ?coord.
}
GROUP BY ?truc ?trucLabel
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
Plays by Swiss Playwrights
editSELECT DISTINCT ?play ?playLabel ?author ?authorLabel
WHERE {
?play wdt:P31/wdt:P279* wd:Q25379 ;
wdt:P50 ?author .
?author wdt:P27 wd:Q39 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }
}
Plays that Were Performed in Switzerland
editSELECT DISTINCT ?play ?playLabel ?author ?premiere ?venueLabel
WHERE {
?play wdt:P31/wdt:P279* wd:Q25379 ;
wdt:P50 ?author .
?production wdt:P31/wdt:P279* wd:Q43099500 ;
wdt:P144 ?play ;
wdt:P276 ?venue .
?venue wdt:P361*/wdt:P131/wdt:P17 wd:Q39 .
OPTIONAL { ?production wdt:P1191 ?premiere . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }
}
ORDER BY ?premiere
Let's Practice!
editQuerying & Editing Wikidata
editTeilbibliotheken der Universitätsbibliothek Bern
editSchreiben Sie eine Abfrage, die alle Teilbibliotheken der Universitätsbibliothek Bern zurückgibt.
SELECT ?item ?itemLabel
WHERE
{
?item wdt:P361 wd:Q15852122.
SERVICE wikibase:label { bd:serviceParam wikibase:language "de". }
}
Hinweis:
- Beziehen Sie folgende Elemente in Ihre Abfrage mit ein: Bild (P18), Gründung (P571), Strassenadresse (P6375), Ort (P276), Koordinaten (P625), die Telefonnummer (P1329), E-Mail-Adresse (P968), die offizielle Website (P856), Schutzkategorie (P1435), ist Teil von (P361) und besteht aus (P527) usw.
- Zeigen Sie die Ergebnisse auf einer Karte an.
- Ändern Sie die Sprache auf Französisch oder Englisch um zu sehen, welche Bezeichnungen in diesen Sprachen fehlen.
Mit Wikidata Lücken in Wikipedia finden
editDie folgende Abfrage kann in einem kommenden Wikipedia-Editathon, der von der ETH-Bibliothek organisiert wird, verwendet werden. Sie gibt Einträge für Personen aus, die im Universitätsarchiv der ETH Zürich archiviert sind, aber keinen Wikipedia-Artikel auf Deutsch haben:
SELECT DISTINCT ?person ?personLabel ?personDescription ?occupation
WHERE {
?person wdt:P485 wd:Q39934978 .
MINUS { ?sitelink schema:isPartOf <https://de.wikipedia.org/> ;
schema:about ?person . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de" }
}
Aufgabe:
- Ändern Sie die Abfrage für Personen ohne Artikel in der Englischen Wikipedia.
- Ändern Sie die Abfrage für Personen, welche in Ihrer eigenen Institution archiviert sind (archives at P485).
Hinweis:
- Testen Sie die Suche nach Personen mit Archiven in der ETH Zürich (oder in anderen Archiven) in der Testumgebung der ETH Zürich Bibliothek.
Exploring Ontologies & Editing Wikidata
editTypology of heritage institutions
editUse the Wikidata Ontology Explorer to inspect the typology of collections on Wikidata. Find out which are the most used properties in connection with collections. Click through the main classes and properties and make sure that they have appropriate labels and descriptions in your language.
(Semi-)Automatic Reconciliation
editSee dataset of person archives after reconciliation with OpenRefine.