A set of SPARQL examples
Taxon name to QID.
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
#title: Taxon name to QID.
SELECT ?taxon ?taxon_name WHERE {
VALUES ?taxon_name { "Gentiana lutea" }
?taxon wdt:P225 ?taxon_name .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?taxon"):::projected
v1("?taxon_name"):::projected
bind0[/VALUES ?taxon_name/]
bind0-->v1
bind00(["Gentiana lutea"])
bind00 --> bind0
v2 --"wdt:P225"--> v1