query-c50e9c33a638d277341fd9992ef497a8
Taxons with the same name I would like to make a bit more complicated query. To start, I tried to reproduce the results that are also on Pasleims page. I used this query: User:Pasleim/uniquemerge/P225Based on the list at
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item1 ?name1 ?item2 ?name2 WHERE {
?item1 wdt:P225 ?name1.
?item2 wdt:P225 ?name2.
FILTER(?name1 = ?name2)
FILTER(?item1 != ?item2)
}
LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item1"):::projected
v2("?item2"):::projected
v3("?name1"):::projected
v4("?name2"):::projected
f0[["?item1 != ?item2"]]
f0 --> v1
f0 --> v2
f1[["?name1 = ?name2"]]
f1 --> v3
f1 --> v4
v1 --"wdt:P225"--> v3
v2 --"wdt:P225"--> v4