query-6cc925129e2c37ab2777753c84f33624
Works of art by Albert Siegenthaler
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT ?item ?itemLabel ?pic ?locationLabel ?streetAddress ?geo WHERE {
?item wdt:P170 wd:Q38082245 ; # item is in collection of one of the selected institutions
wdt:P625 ?geo ;
wdt:P276 ?location ;
OPTIONAL { ?item wdt:P18 ?pic .} # get the picture as well if we can
OPTIONAL { ?location wdt:P6375 ?streetAddress .} # get the street address of location
# MINUS { ?item wdt:P18 [] } . # that lack a picture
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?geo"):::projected
v1("?item"):::projected
v3("?location")
v4("?pic"):::projected
v5("?streetAddress"):::projected
c8(["bd:serviceParam"]):::iri
c2(["wd:Q38082245"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P170"--> c2
v1 --"wdt:P625"--> v2
v1 --"wdt:P276"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P6375".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end