reteplayground
Construct

Cross-field cites from genomics

CONSTRUCT { ?a ex:crossFieldCite ?b } WHERE {
  ?a cito:cites ?b .
  ?a ex:hasField <http://ex/field/genomics> .
  ?b ex:hasField ?other .
  FILTER(?other != <http://ex/field/genomics>)
}
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → 90 nodes, 91 edges · 13 ms · no server, no download — the query runs in your browser.

The query

PREFIX ex: <http://ex/> PREFIX cito: <http://purl.org/spar/cito/> CONSTRUCT { ?a ex:crossFieldCite ?b } WHERE { ?a cito:cites ?b . ?a ex:hasField <http://ex/field/genomics> . ?b ex:hasField ?other . FILTER(?other != <http://ex/field/genomics>) }

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