(ConceptNode "dog" (stv 0.8 0.9))
(ConceptNode "dog" (stv 0.8 0.9))
I believe that this is the last step for implementing the protoatom design, #513 if I have not forgotten anything.
TruthValues are now stored as any other kinds of values, and one can now associate any kind of value with an atom, and these will be stored/retrieved automatically in the database.
The only things still missing are:
- a conversion script from the old to the new database format (the database format has changed)
- assorted utilities of some unknown kind, to make using this easier. Actual practice will reveal what utilities are needed.
You can view, comment on, or merge this pull request online at:
https://github.com/opencog/atomspace/pull/1147
Commit Summary
- Use predicate nodes for keys
- Start removing the inline TV from SQL
- Remove the inlined truth values
- More truth-value removal
- Optimize the fetch process
- Remove the now-pointless UPDATE
- Start saving truh values as values.
- Remove the problematic constness
- Be sure to store the special key
- Start work on a truth value factory
- Create a triuth value factory
- Add a missing method
- Fix truth-value key
- Restore truth values
- Restore atom values during load
- One more unconstification
- Bugfix FetchUTest
- Fix compile failure
- First attempt to fix the MultiPersistUTest
- Set up the truth-value key earlier
- Bug-fix stability of the truth-value key
- Fix test bug that lead to hangs/crashes
File Changes
- M opencog/atoms/base/FloatValue.h (2)
- M opencog/cython/opencog/atomspace.pxd (2)
- M opencog/haskell/AtomSpace_CWrapper.cpp (2)
- M opencog/persist/sql/multi-driver/SQLAtomStorage.cc (385)
- M opencog/persist/sql/multi-driver/SQLAtomStorage.h (4)
- M opencog/persist/sql/multi-driver/atom.sql (13)
- M opencog/truthvalue/CountTruthValue.cc (19)
- M opencog/truthvalue/CountTruthValue.h (8)
- M opencog/truthvalue/EvidenceCountTruthValue.cc (19)
- M opencog/truthvalue/EvidenceCountTruthValue.h (10)
- M opencog/truthvalue/FuzzyTruthValue.cc (24)
- M opencog/truthvalue/FuzzyTruthValue.h (9)
- M opencog/truthvalue/GenericTruthValue.cc (19)
- M opencog/truthvalue/GenericTruthValue.h (9)
- M opencog/truthvalue/IndefiniteTruthValue.cc (18)
- M opencog/truthvalue/IndefiniteTruthValue.h (21)
- M opencog/truthvalue/ProbabilisticTruthValue.cc (23)
- M opencog/truthvalue/ProbabilisticTruthValue.h (12)
- M opencog/truthvalue/SimpleTruthValue.cc (19)
- M opencog/truthvalue/SimpleTruthValue.h (11)
- M opencog/truthvalue/TruthValue.cc (39)
- M opencog/truthvalue/TruthValue.h (23)
- M tests/persist/sql/README.md (3)
- M tests/persist/sql/multi-driver/FetchUTest.cxxtest (4)
- M tests/persist/sql/multi-driver/ValueSaveUTest.cxxtest (11)
- M tests/scm/BasicSCMUTest.cxxtest (4)
Patch Links:
- https://github.com/opencog/atomspace/pull/1147.patch
- https://github.com/opencog/atomspace/pull/1147.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.