9 lines
335 B
SPARQL
9 lines
335 B
SPARQL
|
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". }
|
||
|
}
|
||
|
|