reteplayground
Construct

Coauthor ego network

CONSTRUCT { ?a ex:coauthor ?b } WHERE {
  { <http://ex/author/105> ex:coauthor ?b BIND(<http://ex…
  UNION
  { <http://ex/author/105> ex:coauthor ?a . ?a ex:coautho…
}
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → 13 nodes, 112 edges · 4.5 ms · no server, no download — the query runs in your browser.

The query

PREFIX ex: <http://ex/> CONSTRUCT { ?a ex:coauthor ?b } WHERE { { <http://ex/author/105> ex:coauthor ?b BIND(<http://ex/author/105> AS ?a) } UNION { <http://ex/author/105> ex:coauthor ?a . ?a ex:coauthor ?b } }

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