Re: [opencog/atomspace] Convert Truth Values to use the new Value store infrastructure (#1147)

39 views
Skip to first unread message

Ben Goertzel

unread,
Mar 6, 2017, 11:32:02 PM3/6/17
to opencog/atomspace, Linas Vepstas, opencog, opencog/atomspace, Subscribed

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 <notifi...@github.com> wrote:

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

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.




--
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)
Reply all
Reply to author
Forward
0 new messages