Wikipedia:GLAM/SLIC/Events/GSA Wikidata Workshop

Query example - Female Alumni of Glasgow School of Art
SELECT ?person ?personLabel ?image ?birthplaceLabel ?coord ?birthdate

WHERE { ?person wdt:P69 wd:Q748106. ?person wdt:P21 wd:Q6581072. OPTIONAL { ?person wdt:P18 ?image. ?person wdt:P19 ?birthplace. ?birthplace wdt:P625 ?coord. ?person wdt:P569 ?birthdate. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

Instructions to enable listeria tool in Wikipedia
Create a common.js page in Wikipedia by typing User:YOURUSERNAME/common.js in the search box in Wikipedia and select start page. Copy and paste the following code then publish the page to save it.

// User:Dr pda/prosesize importScriptURI('//en.wikipedia.org/w/index.php?title=User%3ADr_pda%2Fprosesize.js&action=raw&ctype=text/javascript');

// User:Caorongjin/wordcount importScriptURI('//en.wikipedia.org/w/index.php?title=User%3ACaorongjin%2Fwordcount.js&action=raw&ctype=text/javascript');

// Magnus Manske - Listeria bot importScriptURI("//www.wikidata.org/w/index.php?title=User:Magnus_Manske/wd_edit.js&action=raw&ctype=text/javascript");

//Aude - Nearby.js mw.loader.using([], function {	importStylesheet('User:Aude/nearby.css');	importScript('User:Aude/nearby.js'); }); //Mooeypoo - Concept replacer tool - swaps gender pronouns on a page mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Mooeypoo/tools/article.gender.flip.js&action=raw&ctype=text/javascript');

Listeria code for interactive list of female alumni of Glasgow School of Art
Create new list page by typing User:YOURUSERNAME/List of female GSA alumni in the search box in Wikipedia and select start page.

Copy and paste the code provided in this document

Publish the page then refresh the list.