query-b96655c67b6434b65c4ac23b2cc6ef16
Paintings that depict mammals
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:ImageGrid
SELECT ?painting ?paintingLabel ?mammalLabel ?image
WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?painting wdt:P31 wd:Q3305213.
?painting wdt:P18 ?image.
?painting wdt:P180 ?mammal.
?mammal wdt:P171* wd:Q7377 # has a parent taxon of mammal
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?image"):::projected
v3("?mammal")
v1("?painting"):::projected
c2(["bd:serviceParam"]):::iri
c6(["wd:Q3305213"]):::iri
c10(["wd:Q7377"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P31"--> c6
v1 --"wdt:P18"--> v2
v1 --"wdt:P180"--> v3
v3 --"wdt:P171"--> c10