query-65600bf93a145f582765ecc4a3f50aee
Propertiesinstance of (P31)subclass of (P279)named after (P138)logo image (P154)image (P18)
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#>
SELECT ?item ?itemLabel ?class ?classLabel ?taxon ?taxonLabel ?logo ?image
WHERE
{
?item wdt:P31/wdt:P279* wd:Q7397.
?item wdt:P138 ?class.
?class wdt:P31 wd:Q55983715.
?item wdt:P138 ?taxon.
?taxon wdt:P31 wd:Q16521.
OPTIONAL {?item wdt:P154 ?logo}.
OPTIONAL {?taxon wdt:P18 ?image}.
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("?class"):::projected
v5("?image"):::projected
v1("?item"):::projected
v4("?logo"):::projected
v3("?taxon"):::projected
a1((" "))
c3(["wd:Q7397"]):::iri
c10(["bd:serviceParam"]):::iri
c5(["wd:Q55983715"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q16521"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P138"--> v2
v2 --"wdt:P31"--> c5
v1 --"wdt:P138"--> v3
v3 --"wdt:P31"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P154".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end