query-a91eba992f3ab3774bc454cf162170e3
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?label WHERE{
?item wdt:P31 wd:Q16521;
wdt:P225 ?taxonname;
rdfs:label ?label;
FILTER(LANG(?label) = 'fr')
FILTER(lcase(STR(?label))!= lcase(?taxonname))
OPTIONAL {
?item wdt:P1843 ?commonname .
FILTER(LANG(?commonname) = 'fr')
}
FILTER(!bound(?commonname))
} LIMIT 1000
Query found at
- https://www.wikidata.org/wiki/User:Tubezlob
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2017/10
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?commonname")
v4("?item"):::projected
v2("?label"):::projected
v3("?taxonname")
c3(["wd:Q16521"]):::iri
f0[["not bound(?commonname)"]]
f0 --> v1
f1[["lower-case(str(?label)) != lower-case(?taxonname)"]]
f1 --> v2
f1 --> v3
f2[["?label = 'fr'"]]
f2 --> v2
v4 --"wdt:P31"--> c3
v4 --"wdt:P225"--> v3
v4 --"rdfs:label"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P1843".-> v1
end