Who produces and who reads a predicate
Two questions answer most investigations into a model: which rules conclude a predicate, and which bodies mention it. The first query lists the heads with their strength and anchors; the second lists the body uses outside heads, across packages when the scope is a glob.
from r in corpus("demo.lawqlbase").ruleswhere r.head_predicate == "urn:law:demo:lawqlbase#eligible"select r.id as producer, r.strength as strength, anchor(r.id) as anchorsfrom l in corpus("demo.lawql*").literalswhere l.predicate == "urn:law:demo:lawqlbase#eligible" and l.context != "head"select l.node as reader, l.package as package, l.context as contextThe same two questions are stored ready-made in the catalog: producers takes a predicate and a package, readers takes a predicate and a package or a glob, and shows reads from other packages. The questions page lists both with their parameters.
Documentation for Arxo. Writings — blog.arxo.io.
Anonymous visit counts on stats.arxo.io, no cookies.