Move three more queries into templates.

This commit is contained in:
Edward Betts 2019-10-09 15:27:35 +01:00
parent a5dfbd040a
commit b697be2306
4 changed files with 35 additions and 45 deletions

View file

@ -0,0 +1,7 @@
select distinct ?item ?image {
values ?value { {% for qid in qid_list %} wd:{{ qid }}{% endfor %} }
?item wdt:P31 wd:Q3305213 .
?item wdt:{{ pid }} ?value .
?item wdt:P18 ?image .
filter not exists { ?item wdt:P180 ?depicts }
} limit {{ limit }}