Regarding Scheme shell syntax, do you think we want something like (ConceptNode "dog" (stv 0.8 0.9))
but more general, e.g. (ConceptNode "dog" (value entropy -.45)) (ConceptNode "cat" (value weird_tv 15 .55. 66) (value weird_importance 15 .666)) ? Then (ConceptNode "dog" (stv 0.8 0.9)) would be historical sugar for (ConceptNode "dog" (value stv 0.8 0.9)) -- ben On Tue, Mar 7, 2017 at 7:14 AM, Linas Vepštas <[email protected]> wrote: > I believe that this is the last step for implementing the protoatom > design, #513 <https://github.com/opencog/atomspace/issues/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 > <https://github.com/opencog/atomspace/pull/1147/files#diff-0> (2) > - *M* opencog/cython/opencog/atomspace.pxd > <https://github.com/opencog/atomspace/pull/1147/files#diff-1> (2) > - *M* opencog/haskell/AtomSpace_CWrapper.cpp > <https://github.com/opencog/atomspace/pull/1147/files#diff-2> (2) > - *M* opencog/persist/sql/multi-driver/SQLAtomStorage.cc > <https://github.com/opencog/atomspace/pull/1147/files#diff-3> (385) > - *M* opencog/persist/sql/multi-driver/SQLAtomStorage.h > <https://github.com/opencog/atomspace/pull/1147/files#diff-4> (4) > - *M* opencog/persist/sql/multi-driver/atom.sql > <https://github.com/opencog/atomspace/pull/1147/files#diff-5> (13) > - *M* opencog/truthvalue/CountTruthValue.cc > <https://github.com/opencog/atomspace/pull/1147/files#diff-6> (19) > - *M* opencog/truthvalue/CountTruthValue.h > <https://github.com/opencog/atomspace/pull/1147/files#diff-7> (8) > - *M* opencog/truthvalue/EvidenceCountTruthValue.cc > <https://github.com/opencog/atomspace/pull/1147/files#diff-8> (19) > - *M* opencog/truthvalue/EvidenceCountTruthValue.h > <https://github.com/opencog/atomspace/pull/1147/files#diff-9> (10) > - *M* opencog/truthvalue/FuzzyTruthValue.cc > <https://github.com/opencog/atomspace/pull/1147/files#diff-10> (24) > - *M* opencog/truthvalue/FuzzyTruthValue.h > <https://github.com/opencog/atomspace/pull/1147/files#diff-11> (9) > - *M* opencog/truthvalue/GenericTruthValue.cc > <https://github.com/opencog/atomspace/pull/1147/files#diff-12> (19) > - *M* opencog/truthvalue/GenericTruthValue.h > <https://github.com/opencog/atomspace/pull/1147/files#diff-13> (9) > - *M* opencog/truthvalue/IndefiniteTruthValue.cc > <https://github.com/opencog/atomspace/pull/1147/files#diff-14> (18) > - *M* opencog/truthvalue/IndefiniteTruthValue.h > <https://github.com/opencog/atomspace/pull/1147/files#diff-15> (21) > - *M* opencog/truthvalue/ProbabilisticTruthValue.cc > <https://github.com/opencog/atomspace/pull/1147/files#diff-16> (23) > - *M* opencog/truthvalue/ProbabilisticTruthValue.h > <https://github.com/opencog/atomspace/pull/1147/files#diff-17> (12) > - *M* opencog/truthvalue/SimpleTruthValue.cc > <https://github.com/opencog/atomspace/pull/1147/files#diff-18> (19) > - *M* opencog/truthvalue/SimpleTruthValue.h > <https://github.com/opencog/atomspace/pull/1147/files#diff-19> (11) > - *M* opencog/truthvalue/TruthValue.cc > <https://github.com/opencog/atomspace/pull/1147/files#diff-20> (39) > - *M* opencog/truthvalue/TruthValue.h > <https://github.com/opencog/atomspace/pull/1147/files#diff-21> (23) > - *M* tests/persist/sql/README.md > <https://github.com/opencog/atomspace/pull/1147/files#diff-22> (3) > - *M* tests/persist/sql/multi-driver/FetchUTest.cxxtest > <https://github.com/opencog/atomspace/pull/1147/files#diff-23> (4) > - *M* tests/persist/sql/multi-driver/ValueSaveUTest.cxxtest > <https://github.com/opencog/atomspace/pull/1147/files#diff-24> (11) > - *M* tests/scm/BasicSCMUTest.cxxtest > <https://github.com/opencog/atomspace/pull/1147/files#diff-25> (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 > <https://github.com/opencog/atomspace/pull/1147>, or mute the thread > <https://github.com/notifications/unsubscribe-auth/AFolXODOEeJBzTSVchuy3k8-nK79Po-dks5rjNmNgaJpZM4MVBcf> > . > -- Ben Goertzel, PhD http://goertzel.org “Our first mothers and fathers … were endowed with intelligence; they saw and instantly they could see far … they succeeded in knowing all that there is in the world. When they looked, instantly they saw all around them, and they contemplated in turn the arch of heaven and the round face of the earth. … Great was their wisdom …. They were able to know all, and they examined the four comers, the four points of the arch of the sky and the round face of the earth. But the Creator and the Maker did not hear this with pleasure. … ‘Are they not by nature simple creatures of our making? Must they also be gods? … What if they do not reproduce and multiply?’ Then the Heart of Heaven blew mist into their eyes, which clouded their sight as. when a mirror is breathed upon. Their eyes were covered and they could see only what was close, only that was clear to them.” — Popol Vuh (holy book of the ancient Mayas) -- You received this message because you are subscribed to the Google Groups "opencog" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/opencog. To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/CACYTDBcOs-5eYPvt219-iX7EPSO83-KPphYEWP8qtPKHmwtjyw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
