query-2bf7280a40006963c1d5189415e8726f

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?name {
  #?item wdt:P31/wdt:P279? wd:Q16521 .
  ?item p:P225 ?st .
  FILTER NOT EXISTS { ?st (pq:P405|pq:P574) [] } .
  ?st ps:P225 ?name .
  # uncomment and choose the root taxa
  #?item wdt:P171+ wd:Q156888 .
} LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v3("?name"):::projected v1("?st") a1((" ")) f0[["not "]] subgraph f0e0["Exists Clause"] subgraph unione00[" Union "] subgraph unione00l[" "] style unione00l fill:#abf,stroke-dasharray: 3 3; e0v1 --"p:qualifier/P574"--> e0a1 end subgraph unione00r[" "] style unione00r fill:#abf,stroke-dasharray: 3 3; e0v1 --"p:qualifier/P405"--> e0a1 end unione00r <== or ==> unione00l end e0v1("?st"):::projected e0a1((" ")):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> a1 f0 --> c2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"p:qualifier/P574"--> a1 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"p:qualifier/P405"--> a1 end union0r <== or ==> union0l end v2 --"p:P225"--> v1 v1 --"p:statement/P225"--> v3