Name match on aliases

This commit is contained in:
Edward Betts 2023-10-13 16:49:18 +01:00
parent 2519ea74b8
commit 474d9c6a66

View file

@ -1,5 +1,5 @@
SELECT DISTINCT ?item ?itemLabel ?commonsSiteLink ?commonsCat WHERE { SELECT DISTINCT ?item ?itemLabel ?commonsSiteLink ?commonsCat WHERE {
?item rdfs:label {{ name }}@en . { ?item rdfs:label {{ name }}@en } UNION { ?item skos:altLabel {{ name }}@en }
FILTER NOT EXISTS { ?item wdt:P31 wd:Q17362920 } .# ignore Wikimedia duplicated page FILTER NOT EXISTS { ?item wdt:P31 wd:Q17362920 } .# ignore Wikimedia duplicated page
OPTIONAL { ?commonsSiteLink schema:about ?item ; OPTIONAL { ?commonsSiteLink schema:about ?item ;
schema:isPartOf <https://commons.wikimedia.org/> } schema:isPartOf <https://commons.wikimedia.org/> }