split out more code
This commit is contained in:
parent
cec535ee7e
commit
dc24e3f7e7
8 changed files with 194 additions and 215 deletions
8
templates/sparql/scottish_parish.sparql
Normal file
8
templates/sparql/scottish_parish.sparql
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
SELECT ?item ?itemLabel ?commonsSiteLink ?commonsCat WHERE {
|
||||
?item wdt:P528 "{{ code }}" .
|
||||
?item wdt:P31 wd:Q5124673 .
|
||||
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". }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue