Simplified

Syntax and Queries

Any of the following syntaxes to describe an aspect are usable

- [[evidence]]
    - [[supports]] ->
        - [[claim]]

id:: 982d69f8-96fc-4b31-a6b5-9fae1ff8acaf

- [[claim]]
    - <- [[supports]]
        - [[evidence]]

Need these queries for when the syntax is on the page directly (not via page reference)

Let’s try building these queries

query-table:: false
#+BEGIN_QUERY
{
:title [“supports ->”]
:query [
:find ?result-page
:in $ ?current-page ?function
:where
[?page :block/name ?current-page]
[?referring-blocks :block/refs ?page]
[?child :block/parent ?referring-blocks]
[?child :block/refs ?child-refs]
[?grandchild :block/parent ?child]
[?child :block/content ?child-content]
[(clojure.string/includes? ?child-content “->”)]
(page-ref ?child ?function)

        [?grandchild :block/refs ?grandchild-page]
        [?grandchild-page :block/name ?result-page]
	]

:inputs [:current-page, “relationship/supports”]
:view (fn [result]
[:div.flex.flex-col
(for [page result]
[:a {:href (str “#/page/” page)} (clojure.string/capitalize page)])])}
}
#+END_QUERY