reteplayground
Select

What lowers the risk of a heart attack

SELECT DISTINCT ?treatment ?target WHERE {
  ?target ex:causes+ ex:MyocardialInfarction .
  ?treatment ex:reduces ?target
} ORDER BY ?treatment
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → 13 nodes, 10 edges · 1.2 ms · no server, no download — the query runs in your browser.

The query

PREFIX ex: <http://ex/> SELECT DISTINCT ?treatment ?target WHERE { ?target ex:causes+ ex:MyocardialInfarction . ?treatment ex:reduces ?target } ORDER BY ?treatment

rete playground · documentation · github.com/caviri/rete