@@ -6,7 +6,7 @@ template = "doc.html"
7# What is Graph Store?
7# What is Graph Store?
9−Graph store is a gall implementation of a tree-based database that has an affordance for cyclic structures by allowing nodes to reference other nodes. It is most comparable to modern NoSQL databases in structure, though it allows for schemas to be written in the form of marks. It is used as the backend for an increasing number of Landscape applications, and is considered to be best used for social data.
9+Graph Store is a gall implementation of a tree with additional virtual edges by allowing nodes to reference other nodes. It is most comparable to modern NoSQL databases in structure, though it allows for schemas to be written in the form of marks. It is used as the backend for an increasing number of Landscape applications, and is considered to be best used for social data.
11## Data types
11## Data types
@@ -22,12 +22,17 @@ Graph store is a gall implementation of a tree-based database that has an afford
23`post` is defined in `sur/post`. It contains:
23`post` is defined in `sur/post`. It contains:
25−`author=ship`
27+ $: author=ship
27−`time-sent=time`
29+ time-sent=time
28−`contents=(list content)`
30+ contents=(list content)
29−`hash=(unit hash)`
31+ hash=(unit hash)
30−`signatures`
32+ =signatures
32Most of these elements are self explanatory.
37Most of these elements are self explanatory.
@@ -45,11 +50,11 @@ When interacting with `graph-store` you will need to create an `update`
46The reason this is a union is to serve as future proofing for version changes.
51The reason this is a union is to serve as future proofing for version changes.
48−An `update-0` can either be logged in the case of adding and removing nodes or signatures or non logged as in the case of adding or removing a graph. This logging refers to if this action adds an entry to the update log that is used to synchronize state between ships.
53+An `update-0` can either be logged in the case of adding/removing nodes or signatures, or non-logged as in the case of adding/removing a graph. This logging refers to if this action adds an entry to the update log that is used to synchronize state between ships.
50−Below is an excerpt or `sur/graph-store.hoon` at the time of writing showing the definition of `logged-update-0` and `update-0` which should now be readable.
55+Below is an excerpt of `sur/graph-store.hoon` at the time of writing, showing the definition of `logged-update-0` and `update-0` which should now be readable.
53+$ logged-update-0
58+$ logged-update-0
54 $% [%add-nodes =resource nodes=(map index node)]
59 $% [%add-nodes =resource nodes=(map index node)]
55 [%remove-nodes =resource indices=(set index)]
60 [%remove-nodes =resource indices=(set index)]
@@ -80,7 +85,7 @@ Below is an excerpt or `sur/graph-store.hoon` at the time of writing showing the
83−Graph store can be poked with a `graph-update` which can:
88+Graph Store can be poked with a `graph-update`, which can:
84 - add and remove a graph
89 - add and remove a graph
86 `[%add-graph =resource =graph mark=(unit mark)]`
91 `[%add-graph =resource =graph mark=(unit mark)]`
@@ -111,7 +116,7 @@ Graph store can be poked with a `graph-update` which can:
112 `[%unarchive-graph =resource]`
117 `[%unarchive-graph =resource]`
114−## Scrys
119+## Scries
116What follows is a summary of the scrys available in graph-store
121What follows is a summary of the scrys available in graph-store
@@ -150,4 +155,4 @@ What follows is a summary of the scrys available in graph-store
153−There are marks in `mar/graph/validator` that are worth review. They are each short enough to read quickly. They are used to validate the shapes of various nouns to be stored in the graph-store.
158+There are marks in `mar/graph/validator` that are worth reviewing. They are each short enough to read quickly. They are used to validate the shapes of various nouns to be stored in the graph-store.