sparql-examples

A set of SPARQL examples

View the Project on GitHub Adafede/sparql-examples

wd_taxa_name_to_qid

rq turtle/ttl

Taxon name to QID.

Use at


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