Hi,
Did you enter first
(add-to-load-path "/usr/local/share/opencog/scm")
(add-to-load-path ".")
(use-modules (ice-9 readline))
(activate-readline)
(use-modules (opencog))
?
Also, you may add that in your .guile file so you don't have to retype
it every time.
Nil
On 03/08/2017 11:18 PM, Alex wrote:
Hi again!
I want to write my first rule and as far as I know I should start with
declaring classes (Nodes). I want to declare class/concept Invoice. So -
I try to write in guile (after loading of the usual OpenCog modules):
(ConceptNode "Invoice")
But this gives error warning "possibly unbound variable 'ConceptNode'"
and error message 'Unbound variable: ConceptNode'
I receive similar warning and error when I enter the following in the
guile shell:
(define InvoiceClass (ConceptNode "Invoice"))
So - what is wrong with my understanding about ConceptNode, about
classes and concepts. My intuition is that I should first declare
concepts before using them in BindLink or other rules. How can I define
knowledge in OpenCog?
--
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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[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/92956591-7484-4d2a-a2db-02263f7ece5e%40googlegroups.com
<https://groups.google.com/d/msgid/opencog/92956591-7484-4d2a-a2db-02263f7ece5e%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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/692253bc-ede4-4324-84f9-c3c50824325b%40gmail.com.
For more options, visit https://groups.google.com/d/optout.