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)
x
for every block r that contains a page reference to x
r
get child block c of r
c
if c contains -> AND a page reference to [[relationship]]
->
[[relationship]]
return all children of c
get parent block p of r
p
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
if block p contains -> and a page reference to relationship
relationship
return parent of s
s
if block c contains <- and a page reference to relationship
return all children of s