graph: got some things working and fixed an issue introduced by rebase

This commit is contained in:
Logan Allen 2020-06-12 16:29:14 -04:00
parent dd75717871
commit ec432a5b10
5 changed files with 35 additions and 1 deletions

View File

@ -334,8 +334,11 @@
[%x %keys ~] ``noun+!>(~(key by graphs))
[%x %tags ~] ``noun+!>(~(key by tag-queries))
[%x %graph @ @ ~]
~& path+path
=/ =ship (slav %p i.t.t.path)
=/ =term i.t.t.path
=/ =term i.t.t.t.path
~& resource+[ship term]
~& graphs+~(key by graphs)
=/ graph=(unit graph:store) (~(get by graphs) [ship term])
?~ graph
~

View File

@ -102,11 +102,13 @@
%fact
?+ p.cage.sign (on-agent:def wire sign)
%graph-update
~& %graph-update
:_ this
%+ give
%+ turn ~(tap by connections)
|= [=atom:store *]
^- path
~& connection+atom
/updates/(scot %ud atom)
cage.sign
==

View File

@ -0,0 +1,8 @@
/+ *graph-store
|_ act=action
++ grab
|%
++ noun action
++ json action:dejs
--
--

View File

@ -0,0 +1,13 @@
/+ *graph-store
|_ upd=update
++ grow
|%
++ json (update:enjs upd)
--
::
++ grab
|%
++ noun update
--
::
--

View File

@ -0,0 +1,8 @@
/+ *graph-view
|_ act=action
++ grab
|%
++ noun action
++ json action:dejs
--
--