Thank you Nil; that is really awesome; I love that TimeLink version; could you just tell me how to query that (how do I find out what Joe's points were at 10PM?) and also one more thing: is there a way to say *now* and it recognizing the current time and attaching that rather than some given constant like 10PM? I'll be able to do a lot with that version, I think.
Johannes On Tuesday, December 11, 2018 at 1:12:22 PM UTC, Nil wrote: > > On 12/11/18 2:13 PM, Johannes Castner wrote: > > What I'm trying to say is a user has an account and an account has > > points in it that can change--just as with any computer game, really. > > Does that make sense? > > There are different ways to do that, and they depend on what you > intend to do with the knowledge. One way would be to use value > > https://wiki.opencog.org/w/Value > > for instance to attach a score of 3 to John, you'd say > > ``` > (define john (Concept "John")) > (define score (Concept "score")) > (cog-set-value! john score (Number 3)) > ``` > > then you may ask John's score with > ``` > (cog-value john score) > ``` > which will return 3. > > Later on you may update John's score with > ``` > (cog-set-value! john score (Number 4)) > ``` > > And > ``` > (cog-value john score) > ``` > which will return 4. > > The problem with that (and with mutability in general) is that you > lose information. So for instance you won't be able to use reasoning > or specialized forms thereof like pattern mining to analyze the > evolution of your data. For that you need to keep track of these > updates. One way could be to use AtTimeLink, so for instance you way > write that at 10pm John had a score of 3 > > AtTimeLink > Evaluation > Predicate "score-of" > List > (Concept "John") > (Number 3) > TimeNode "10pm" > > but at 11pm he had a score of 4 > > AtTimeLink > Evaluation > Predicate "score-of" > List > (Concept "John") > (Number 4) > TimeNode "10pm" > > Etc... There are many ways to represent knowledge. > -- 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/c8b0a607-2c7f-44e1-993f-fa08523dc553%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
