on master help sign in
move graph store reference to graph store folder
9e9cdbbYaseen
content/docs/userspace/landscape/reference/graph-store.md → content/docs/userspace/graph-store/graph-store.mdrenamed+49−50
@@ -16,7 +16,7 @@ Landscape applications, and is considered to be best used for social data.
16
16
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.
18
18
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.
20
20
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`.
22
22
@@ -35,7 +35,6 @@ Landscape applications, and is considered to be best used for social data.
35 ==
35 ==
36```
36```
37
37
38−
39Most of these elements are self explanatory.
38Most of these elements are self explanatory.
40
39
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
84 ==
83 ==
85```
84```
86
85
87−
88## Pokes
86## Pokes
89
87
90Graph Store can be poked with a `graph-update`, which can:
88Graph Store can be poked with a `graph-update`, which can:
89+
91− - add and remove a graph
90+- add and remove a graph
92−
91+
93− `[%add-graph =resource =graph mark=(unit mark)]`
92+`[%add-graph =resource =graph mark=(unit mark)]`
94−
93+
95− `[%remove-graph =resource]`
94+`[%remove-graph =resource]`
96−
95+
97− - add and remove a node to a graph
96+- add and remove a node to a graph
98−
97+
99− `[%add-nodes =resource nodes=(map index node)]`
98+`[%add-nodes =resource nodes=(map index node)]`
100−
99+
101− `[%remove-nodes =resource indices=(set index)]`
100+`[%remove-nodes =resource indices=(set index)]`
102−
101+
103− - add and remove signatures
102+- add and remove signatures
104−
103+
105− `[%add-signatures =uid =signatures]`
104+`[%add-signatures =uid =signatures]`
106−
105+
107− `[%remove-signatures =uid =signatures]`
106+`[%remove-signatures =uid =signatures]`
108−
107+
109− - add and remove tags
108+- add and remove tags
110−
109+
111− `[%add-tag =term =resource]`
110+`[%add-tag =term =resource]`
112−
111+
113− `[%remove-tag =term =resource]`
112+`[%remove-tag =term =resource]`
114−
113+
115− - archive and unarchive a graph
114+- archive and unarchive a graph
116−
115+
117− `[%archive-graph =resource]`
116+`[%archive-graph =resource]`
118−
117+
119− `[%unarchive-graph =resource]`
118+`[%unarchive-graph =resource]`
120
119
121## Scries
120## Scries
122
121
123What follows is a summary of the scrys available in graph-store
122What follows is a summary of the scrys available in graph-store
124
123
125- Fetch keys
124- Fetch keys
126− `[%x %keys ~]`
125+ `[%x %keys ~]`
127
126
128- Fetch tags
127- Fetch tags
129− `[%x %tags ~]`
128+ `[%x %tags ~]`
130−
129+
131- Fetch tag queries
130- Fetch tag queries
132− `[%x %tag-queries ~]`
131+ `[%x %tag-queries ~]`
133
132
134- Fetch a specific graph by resource
133- Fetch a specific graph by resource
135− `[%x %graph @ @ ~]`
134+ `[%x %graph @ @ ~]`
136−
135+
137- Archive a specific graph by resource
136- Archive a specific graph by resource
138− `[%x %archive @ @ ~]`
137+ `[%x %archive @ @ ~]`
139−
138+
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 @ @ @ @ ~]`
142
141
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 @ @ @ *]`
145−
144+
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 @ @ @ @ @ *]`
148−
147+
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 @ @ @ @ ~]`
151−
150+
152- Fetch the update log by resource
151- Fetch the update log by resource
153− `[%x %update-log @ @ ~]`
152+ `[%x %update-log @ @ ~]`
154−
153+
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 @ @ ~]`
157
156
158## Marks
157## Marks
159
158