Show more than just paintings during browse
This commit is contained in:
parent
036a4be5ed
commit
75257632ba
3 changed files with 22 additions and 5 deletions
|
|
@ -1,11 +1,11 @@
|
|||
select ?property ?object ?objectLabel (count(*) as ?count) {
|
||||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
|
||||
?item wdt:P31 wd:Q3305213 .
|
||||
VALUES ?isa { {% for isa in isa_list %} wd:{{ isa }} {% endfor %} }
|
||||
?item wdt:P31 ?isa .
|
||||
?item wdt:P18 ?image .
|
||||
{% for pid, qid in params %}
|
||||
?item wdt:{{pid}} wd:{{qid}} .
|
||||
{% endfor %}
|
||||
values ?property { {% for pid in properties %} wdt:{{pid}}{% endfor %} }
|
||||
?item ?property ?object .
|
||||
FILTER NOT EXISTS { ?item wdt:P180 ?depicts }
|
||||
} group by ?property ?propertyLabel ?object ?objectLabel
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
select ?item ?itemLabel ?image ?artist ?artistLabel ?title ?titleLang ?time ?timeprecision {
|
||||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
|
||||
?item wdt:P31 wd:Q3305213 .
|
||||
VALUES ?isa { {% for isa in isa_list %} wd:{{ isa }} {% endfor %} }
|
||||
|
||||
?item wdt:P31 ?isa .
|
||||
{% for pid, qid in params %}
|
||||
?item wdt:{{pid}} wd:{{qid}} .
|
||||
{% endfor %}
|
||||
|
|
@ -15,5 +17,4 @@ select ?item ?itemLabel ?image ?artist ?artistLabel ?title ?titleLang ?time ?tim
|
|||
BIND(LANG(?title) as ?titleLang)
|
||||
}
|
||||
OPTIONAL { ?item wdt:P170 ?artist }
|
||||
FILTER NOT EXISTS { ?item wdt:P180 ?depicts }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue