scheme@(guile-user)> (StateLink... (PredicateNode "some property")
... (ListLink
... (ConceptNode "thing A")
... (ConceptNode "alt B")
... )
... )
$3 = (StateLink
(PredicateNode "some property")
(ListLink
(ConceptNode "thing A")
(ConceptNode "alt B")
)
)
scheme@(guile-user)> (define get-state
... (GetLink
... (StateLink
... (PredicateNode "some property")
... (VariableNode "$x")
... )
... )
... )
scheme@(guile-user)> (cog-execute! get-state)
$4 = (SetLink
(ListLink
(ConceptNode "thing A")
(ConceptNode "alt B")
)
)
scheme@(guile-user)> (load "/opencog/apil/get-put.scm")
$5 = (SetLink
)
scheme@(guile-user)> (cog-execute! get-state)
$6 = (SetLink
)
I get nothing when I run (cog-execute! get-state). Why is this the case? Also, I wasn't able to change the %load-path for guile to include '/opencog/apil' to default list. Is there a way to have to type '/opencog/apil' everytime I want to load a file in that dir?
Attached is the get-put.scm file I tried to use.