query-397425248c8c5573764a9f724302fe9e
: This should do it: Luckyz@: Interesting question. I went a step further, here is one with a map: Dipsacus fullonum, Luckyz@
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#>
#defaultView:Map
SELECT ?item ?itemLabel ?itemDescription ?coor ?pop
{
?item wdt:P31 wd:Q747074
MINUS { [] wdt:P19/wdt:P276*/wdt:P131* ?item }
MINUS { [] wdt:P20/wdt:P276*/wdt:P131* ?item }
MINUS { ?item wdt:P31 wd:Q3685476 }
OPTIONAL { ?item wdt:P625 ?coor }
OPTIONAL { ?item wdt:P1082 ?pop }
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("?coor"):::projected
v1("?item"):::projected
v3("?pop"):::projected
a1((" "))
a4((" "))
a2((" "))
a3((" "))
a5((" "))
a6((" "))
c7(["wd:Q3685476"]):::iri
c11(["bd:serviceParam"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q747074"]):::iri
v1 --"wdt:P31"--> c2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
a1 --"wdt:P19"--> a2
a2 --"wdt:P276"--> a3
a3 --"wdt:P131"--> v1
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
a4 --"wdt:P20"--> a5
a5 --"wdt:P276"--> a6
a6 --"wdt:P131"--> v1
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> c7
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1082".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end