@@ -16,7 +16,7 @@ Landscape applications, and is considered to be best used for social data.
17`resource` is a pair of ship and term which is where the graph is hosted and the name of the resource. Every graph is it's own resource.
17`resource` is a pair of ship and term which is where the graph is hosted and the name of the resource. Every graph is it's own resource.
19−`marked-graph` is a pair of `graph` and `(unit mark)`. The semantics of a graph are defined by the mark. This is just for validating the structure of the graph.
19+`marked-graph` is a pair of `graph` and `(unit mark)`. The semantics of a graph are defined by the mark. This is just for validating the structure of the graph.
21`graph` is a `mop`, a mold builder for order map, of an atom and a `node`.
21`graph` is a `mop`, a mold builder for order map, of an atom and a `node`.
@@ -35,7 +35,6 @@ Landscape applications, and is considered to be best used for social data.
39Most of these elements are self explanatory.
38Most of these elements are self explanatory.
41`contents` is a `list` of `content` where `content` is a tagged union of text, url, code, or reference. This is where the contents of a publish post or an entry from links would be stored.
40`contents` is a `list` of `content` where `content` is a tagged union of text, url, code, or reference. This is where the contents of a publish post or an entry from links would be stored.
@@ -84,76 +83,76 @@ Below is an excerpt of `sur/graph-store.hoon` at the time of writing, showing th
90Graph Store can be poked with a `graph-update`, which can:
88Graph Store can be poked with a `graph-update`, which can:
91− - add and remove a graph
90+- add and remove a graph
93− `[%add-graph =resource =graph mark=(unit mark)]`
92+`[%add-graph =resource =graph mark=(unit mark)]`
95− `[%remove-graph =resource]`
94+`[%remove-graph =resource]`
97− - add and remove a node to a graph
96+- add and remove a node to a graph
99− `[%add-nodes =resource nodes=(map index node)]`
98+`[%add-nodes =resource nodes=(map index node)]`
101− `[%remove-nodes =resource indices=(set index)]`
100+`[%remove-nodes =resource indices=(set index)]`
103− - add and remove signatures
102+- add and remove signatures
105− `[%add-signatures =uid =signatures]`
104+`[%add-signatures =uid =signatures]`
107− `[%remove-signatures =uid =signatures]`
106+`[%remove-signatures =uid =signatures]`
109− - add and remove tags
108+- add and remove tags
111− `[%add-tag =term =resource]`
110+`[%add-tag =term =resource]`
113− `[%remove-tag =term =resource]`
112+`[%remove-tag =term =resource]`
115− - archive and unarchive a graph
114+- archive and unarchive a graph
117− `[%archive-graph =resource]`
116+`[%archive-graph =resource]`
119− `[%unarchive-graph =resource]`
118+`[%unarchive-graph =resource]`
123What follows is a summary of the scrys available in graph-store
122What follows is a summary of the scrys available in graph-store
125- Fetch keys
124- Fetch keys
126− `[%x %keys ~]`
125+ `[%x %keys ~]`
128- Fetch tags
127- Fetch tags
129− `[%x %tags ~]`
128+ `[%x %tags ~]`
131- Fetch tag queries
130- Fetch tag queries
132− `[%x %tag-queries ~]`
131+ `[%x %tag-queries ~]`
134- Fetch a specific graph by resource
133- Fetch a specific graph by resource
135− `[%x %graph @ @ ~]`
134+ `[%x %graph @ @ ~]`
137- Archive a specific graph by resource
136- Archive a specific graph by resource
138− `[%x %archive @ @ ~]`
137+ `[%x %archive @ @ ~]`
140- Fetch a subset of the graph by resource and start and end indices
139- Fetch a subset of the graph by resource and start and end indices
141− `[%x %graph-subset @ @ @ @ ~]`
140+ `[%x %graph-subset @ @ @ @ ~]`
143- Select a node from a graph by resource and index
142- Select a node from a graph by resource and index
144− `[%x %node @ @ @ *]`
143+ `[%x %node @ @ @ *]`
146- Fetch a subset of the children of a node by resource, index, and start and end indices
145- Fetch a subset of the children of a node by resource, index, and start and end indices
147− `[%x %node-children-subset @ @ @ @ @ *]`
146+ `[%x %node-children-subset @ @ @ @ @ *]`
149- Fetch a subset of the update log by resource and start and end indices
148- Fetch a subset of the update log by resource and start and end indices
150− `[%x %update-log-subset @ @ @ @ ~]`
149+ `[%x %update-log-subset @ @ @ @ ~]`
152- Fetch the update log by resource
151- Fetch the update log by resource
153− `[%x %update-log @ @ ~]`
152+ `[%x %update-log @ @ ~]`
155- Fetch the time of the last entry of the update log
154- Fetch the time of the last entry of the update log
156− `[%x %peek-update-log @ @ ~]`
155+ ` [%x %peek-update-log @ @ ~]`