query-d7c1f7c1f70f7df69cf1b35714f41af5

rq turtle/ttl

Show all distinct terms found (currently disease and drug terms) SELECT DISTINCT ?term WHERE {?item wdt:P3 wd:Q5. ?item wdt:P15 ?term}

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#Show all distinct terms found (currently disease and drug terms)
SELECT DISTINCT ?term
  WHERE {?item wdt:P3 wd:Q5.
         ?item wdt:P15 ?term}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item") v2("?term"):::projected c2(["wd:Q5"]):::iri v1 --"wdt:P3"--> c2 v1 --"wdt:P15"--> v2