query-14b0840e654febc5110ca4940032a040

rq turtle/ttl

Strains

Use at

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 ?taxonName ?taxonRankLabel ?parentTaxon WHERE {
    ?item wdt:P31 wd:Q855769 .
    OPTIONAL {?item wdt:P225 ?taxonName} .
    OPTIONAL {?item wdt:P105 ?taxonRank} .
    OPTIONAL {?item wdt:P171/wdt:P225 ?parentTaxon} .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
ORDER BY ASC (?taxonName)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v4("?parentTaxon"):::projected v1("?taxonName"):::projected v3("?taxonRank") a1((" ")) c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;"]):::literal c2(["wd:Q855769"]):::iri v2 --"wdt:P31"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P225".-> v1 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P105".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P171".-> a1 a1 --"wdt:P225"--> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end