query-89072fabf060e9700c7b89e3f703b9fc

rq turtle/ttl

By accepted taxon name

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX q: <http://www.wikidata.org/prop/qualifier/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>PREFIX prov: <http://www.w3.org/ns/prov#> SELECT DISTINCT ?item ?acceptedTaxonName ?synonymName   WHERE {
   ?item wdt:P225 ?acceptedTaxonName .
   #?item wdt:P225 "Oreocereus hempelianus" . # only this species
   #?item wdt:P105 wd:Q7432 . # species
   ?item (wdt:P171)* wd:Q14560 . # Cactaceae
   ?item wdt:P1420/wdt:P225 ?synonymName .
   ?synonymNameV v:P1420 ?synonymNameValue .
   ?synonymNameV prov:wasDerivedFrom ?ref .
   ?ref pr:P248 wd:Q13520496 .   # Das große Kakteen-Lexikon 
   #?ref pr:P248 wd:Q10695694 . # New Cactus Lexicon
}
ORDER BY ASC(?acceptedTaxonName)|

Query found at