2020-06-02 00:07:31 +03:00
|
|
|
/- *post
|
|
|
|
|%
|
2020-06-02 22:44:22 +03:00
|
|
|
++ mop
|
|
|
|
|* [key=mold value=mold]
|
|
|
|
|= ord=$-([key key] ?)
|
|
|
|
|= a=*
|
|
|
|
=/ b ;;((tree [key=key val=value]) a)
|
|
|
|
?> (check-balance:((ordered-map key value) ord) b)
|
|
|
|
b
|
|
|
|
::
|
2020-06-09 00:44:51 +03:00
|
|
|
+$ graphs (map resource graph)
|
|
|
|
+$ tag-queries (jug term resource)
|
|
|
|
+$ action-logs (map resource action-log)
|
2020-06-02 00:07:31 +03:00
|
|
|
+$ network
|
2020-06-09 00:44:51 +03:00
|
|
|
$: =graphs
|
|
|
|
=tag-queries
|
|
|
|
=action-logs
|
2020-06-02 00:07:31 +03:00
|
|
|
==
|
|
|
|
::
|
2020-06-09 00:44:51 +03:00
|
|
|
+$ action-log ((mop time action) lth)
|
|
|
|
::
|
2020-06-05 22:22:36 +03:00
|
|
|
+$ graph ((mop atom node) lth)
|
2020-06-02 22:44:22 +03:00
|
|
|
+$ internal-graph
|
2020-06-05 23:11:04 +03:00
|
|
|
$~ [%empty ~]
|
2020-06-09 00:44:51 +03:00
|
|
|
$% [%graph p=graph]
|
2020-06-05 23:11:04 +03:00
|
|
|
[%empty ~]
|
2020-06-02 00:07:31 +03:00
|
|
|
==
|
2020-06-02 22:44:22 +03:00
|
|
|
::
|
|
|
|
+$ node [=post children=internal-graph]
|
2020-06-09 00:44:51 +03:00
|
|
|
::
|
2020-06-02 00:07:31 +03:00
|
|
|
+$ action
|
2020-06-09 00:44:51 +03:00
|
|
|
$% [%0 action-0]
|
|
|
|
==
|
|
|
|
::
|
|
|
|
+$ action-0
|
2020-06-11 22:30:19 +03:00
|
|
|
$% :: [%add-graph =resource =graph]
|
2020-06-02 00:07:31 +03:00
|
|
|
[%remove-graph =resource]
|
|
|
|
::
|
2020-06-11 22:30:19 +03:00
|
|
|
:: [%add-nodes =resource nodes=(map index node)]
|
|
|
|
:: [%remove-nodes =resource indices=(set index)]
|
2020-06-02 00:07:31 +03:00
|
|
|
::
|
|
|
|
[%add-signatures =uid =signatures]
|
|
|
|
[%remove-signatures =uid =signatures]
|
|
|
|
::
|
2020-06-09 00:44:51 +03:00
|
|
|
[%add-tag =term =resource]
|
|
|
|
[%remove-tag =term =resource]
|
2020-06-02 00:07:31 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
+$ update
|
2020-06-09 00:44:51 +03:00
|
|
|
$% [%0 update-0]
|
|
|
|
==
|
|
|
|
::
|
|
|
|
+$ update-0
|
2020-06-02 00:07:31 +03:00
|
|
|
$% [%keys =resources]
|
2020-06-09 00:44:51 +03:00
|
|
|
action-0
|
2020-06-02 00:07:31 +03:00
|
|
|
==
|
|
|
|
--
|