Match on boundary=political

This commit is contained in:
Edward Betts 2023-10-13 16:48:20 +01:00
parent 41a34856b8
commit 2519ea74b8
4 changed files with 17 additions and 9 deletions

View file

@ -1,7 +1,8 @@
SELECT DISTINCT ?item ?distance ?itemLabel ?isa ?isaLabel ?commonsCat ?commonsSiteLink WHERE {
{
SELECT DISTINCT ?item ?location ?distance ?isa WHERE {
?item wdt:P31/wdt:P279* wd:Q486972 .
VALUES ?want { wd:Q486972 wd:Q56061 }
?item wdt:P31/wdt:P279* ?want .
?item wdt:P31 ?isa .
SERVICE wikibase:around {
?item wdt:P625 ?location.