split out more code

This commit is contained in:
Edward Betts 2021-04-16 22:24:59 +02:00
parent cec535ee7e
commit dc24e3f7e7
8 changed files with 194 additions and 215 deletions

View file

@ -0,0 +1,8 @@
SELECT ?item ?itemLabel ?commonsSiteLink ?commonsCat WHERE {
?item wdt:P836 {{ gss }} .
OPTIONAL { ?commonsSiteLink schema:about ?item ;
schema:isPartOf <https://commons.wikimedia.org/> }
OPTIONAL { ?item wdt:P373 ?commonsCat }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}