graph-store: wrote basic queries

This commit is contained in:
Logan Allen 2020-06-12 14:02:52 -04:00
parent 07cf374462
commit 90a8df104b
2 changed files with 10 additions and 1 deletions

View File

@ -331,7 +331,15 @@
|= =path
^- (unit (unit cage))
?+ path (on-peek:def path)
[%x %keys ~] ``noun+!>(~(key by graphs))
[%x %keys ~] ``noun+!>(~(key by graphs))
[%x %tags ~] ``noun+!>(~(key by tag-queries))
[%x %graph @ @ ~]
=/ =ship (slav %p i.t.t.path)
=/ =term i.t.t.path
=/ graph=(unit graph:store) (~(get by graphs) [ship term])
?~ graph
~
``noun+!>(u.graph)
==
::
++ on-arvo on-arvo:def

View File

@ -20,6 +20,7 @@
+$ action-log ((mop time action) lth)
::
+$ graph ((mop atom node) lth)
::
+$ internal-graph
$~ [%empty ~]
$% [%graph p=graph]