query-897eebd095f5b21c708e40a8e86f12bf
TODO
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 ?taxon_common_name ?parent ?parentLabel WHERE {
?item wdt:P1343 wd:Q58450498;
wdt:P1843 ?taxon_common_name .
?item wdt:P171* ?parent .
?parent wdt:P105 wd:Q37517 .
FILTER (langMatches( lang(?taxon_common_name), "en" ) )
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("?item"):::projected
v3("?parent"):::projected
v1("?taxon_common_name"):::projected
c9(["bd:serviceParam"]):::iri
c3(["wd:Q58450498"]):::iri
c7(["wd:Q37517"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["langmatch(?taxon_common_name,'en')"]]
f0 --> v1
v2 --"wdt:P1343"--> c3
v2 --"wdt:P1843"--> v1
v2 --"wdt:P171"--> v3
v3 --"wdt:P105"--> c7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end