OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace-rocks commits / 14c226c

Fix a stack of typos in the examples
14c226c44ba8d0d26dc5e9653e76aed2a8351b1a
by Linas Vepstas <linasvepstas@gmail.com> · 2026-01-18T06:04:47.000Z

Changed files (2) +6 -6

examples/many-spaces.scm +1 -1
……@@ -1,5 +1,5 @@
11;
2; many-spaces,scm -- Storing many AtomSpaces into one StorageNode.
2; many-spaces.scm -- Storing many AtomSpaces into one StorageNode.
33;
44; A StorageNode can hold more than one AtomSpace at a time. In this
55; demo, they are all independent of one another. They are disjoint.
examples/space-frames.scm +5 -5
……@@ -56,7 +56,7 @@
5656
5757(define (setup-and-store)
5858
59 ; Create a stak of five atomspaces.
59 ; Create a stack of five atomspaces.
6060 (define base-space (cog-atomspace))
6161 (define mid1-space (cog-new-atomspace base-space))
6262 (define mid2-space (cog-new-atomspace mid1-space))
……@@ -64,7 +64,7 @@
6464 (define surface-space (cog-new-atomspace mid3-space))
6565
6666 ; Save the entire stack of spaces. This only stores the spaces and
67 ; their relationship to one-anothr; it does NOT store the contents,
67 ; their relationship to one-another; it does NOT store the contents.
6868 (define storage (RocksStorageNode "rocks:///tmp/frame-demo"))
6969 (cog-set-value! storage (*-open-*))
7070 (cog-set-value! storage (*-store-frames-*) surface-space)
……@@ -84,7 +84,7 @@
8484 (Predicate "key") (FloatValue 1 0 5))
8585 (cog-set-value! storage (*-store-atom-*) (ListLink (Concept "foo") (Concept "bar")))
8686
87 ; Change the ctv on `foo`. This will hade the earlier value.
87 ; Change the value on `foo`. This will hide the earlier value.
8888 (cog-set-atomspace! mid3-space)
8989 (cog-set-value! (Concept "foo") (Predicate "key") (FloatValue 6 22 42))
9090 (cog-set-value! storage (*-store-atom-*) (Concept "foo"))
……@@ -117,11 +117,11 @@
117117(cog-set-value! storage (*-open-*))
118118
119119; Calling `load-frames` will return a list of all of the AtomSpaces
120; at the top of the DAG of frames. In this cae, we had a simple stack,
120; at the top of the DAG of frames. In this case, we had a simple stack,
121121; so there is only one single frame at the top, the top-space.
122122(define top-space (cog-value-ref (cog-value storage (*-load-frames-*)) 0))
123123
124; Change to this top, and load it's contents, and everything below it.
124; Change to this top, and load its contents, and everything below it.
125125(cog-set-atomspace! top-space)
126126(cog-set-value! storage (*-load-atomspace-*) (cog-atomspace))
127127(cog-set-value! storage (*-close-*))