Exclude some more item types from geosearch
This commit is contained in:
parent
e975e86af5
commit
41a34856b8
|
@ -12,7 +12,10 @@ SELECT DISTINCT ?item ?distance ?itemLabel ?isa ?isaLabel ?commonsCat ?commonsSi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MINUS { ?item wdt:P582 ?endTime . }
|
MINUS { ?item wdt:P582 ?endTime . }
|
||||||
MINUS { ?item wdt:P31 wd:Q1497375 . }
|
MINUS {
|
||||||
|
VALUES ?isNot { wd:Q1497375 wd:Q1497364 wd:Q92086 wd:Q31028835 }
|
||||||
|
?item wdt:P31 ?isNot .
|
||||||
|
}
|
||||||
OPTIONAL { ?item wdt:P373 ?commonsCat. }
|
OPTIONAL { ?item wdt:P373 ?commonsCat. }
|
||||||
OPTIONAL { ?commonsSiteLink schema:about ?item;
|
OPTIONAL { ?commonsSiteLink schema:about ?item;
|
||||||
schema:isPartOf <https://commons.wikimedia.org/>. }
|
schema:isPartOf <https://commons.wikimedia.org/>. }
|
||||||
|
|
Loading…
Reference in a new issue