query-8a26d5763430720223a2fde93bcab716
Genera with no child taxaWikidata:Request a query/Archive/2017/11#Genera with no child taxa 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 ?itemLabel ?name {
?item wdt:P105 wd:Q34740 .
MINUS { ?item ^wdt:P171 [] } .
OPTIONAL { ?item wdt:P225 ?name } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } .
}
Query found at
- https://www.wikidata.org/wiki/User:Korg/queries
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2017/11
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?name"):::projected
a1((" "))
c2(["wd:Q34740"]):::iri
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P105"--> c2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
a1 --"wdt:P171"--> v1
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P225".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end