A set of SPARQL examples that are used in LOTUS
NPs with corresponding taxon image.
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
#title: Taxa containing compounds corresponding to chemical formula.
SELECT DISTINCT ?compound WHERE {
?compound wdt:P703 ?taxon ;
wdt:P233 [] .
?taxon wdt:P18 ?image .
}
# LIMIT 500000
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?compound"):::projected
v3("?image")
v2("?taxon")
a1((" "))
v1 --"wdt:P703"--> v2
v1 --"wdt:P233"--> a1
v2 --"wdt:P18"--> v3