Queries

I haven’t finished converting these to Logseq queries yet. Can see my work in progress here: Knowledge graph queries.

x relationship ->: e.g. on evidence page, get claims it supports

for block x (e.g. current page)

for every block r that contains a page reference to x

get child block c of r

if c contains -> AND a page reference to [[relationship]]

return all children of c

get parent block p of r

if r contains <- AND a page reference to [[relationship]]

return parent of p

<- relationship x: e.g. claim page, get supporting evidence

for block x

for every block r that contains a page reference to x

get parent block p of r

if block p contains -> and a page reference to relationship

return parent of s

get child block c of r

if block c contains <- and a page reference to relationship

return all children of s