query-4f0761f0fbfe1758910ed3c980333282
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?taxonName ?taxonRank ?parentName ?parentRank ?higherParent WHERE {
BIND("Rivasmartinezia" AS ?taxonName) .
BIND(wd:Q34740 AS ?taxonRank) . # Genus
BIND(wd:Q756 AS ?higherParent) . # Plantae
?item wdt:P225 ?taxonName .
?item wdt:P105 ?taxonRank .
?item wdt:P171/wdt:P225 ?parentName .
?item wdt:P171/wdt:P105 ?parentRank .
?item (wdt:P171)* ?higherParent .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?higherParent"):::projected
v4("?item"):::projected
v5("?parentName"):::projected
v6("?parentRank"):::projected
v1("?taxonName"):::projected
v2("?taxonRank"):::projected
a1((" "))
a2((" "))
bind0[/"'Rivasmartinezia'"/]
bind0 --as--o v1
bind1[/"'wd:Q34740'"/]
bind1 --as--o v2
bind2[/"'wd:Q756'"/]
bind2 --as--o v3
v4 --"wdt:P225"--> v1
v4 --"wdt:P105"--> v2
v4 --"wdt:P171"--> a1
a1 --"wdt:P225"--> v5
v4 --"wdt:P171"--> a2
a2 --"wdt:P105"--> v6
v4 --"wdt:P171"--> v3