Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid atom syntax (SUMO) #128

Closed
manisabri opened this issue Jun 19, 2020 · 1 comment
Closed

Invalid atom syntax (SUMO) #128

manisabri opened this issue Jun 19, 2020 · 1 comment

Comments

@manisabri
Copy link
Contributor

manisabri commented Jun 19, 2020

I get a syntax error when I try to import likes of below implication rule from SUMO to Atomspace

(=>
  (and
     (domain ?REL ?NUMBER ?CLASS1)
     (domain ?REL ?NUMBER ?CLASS2))
  (or
     (subclass ?CLASS1 ?CLASS2)
     (subclass ?CLASS2 ?CLASS1))
)

ERROR: In procedure cog-new-link:
Throw to key C++-EXCEPTION' with args ("cog-new-link" "Invalid Atom syntax:

(OrLink
(InheritanceLink
(VariableNode "?CLASS1") ; [49929d9688eabc67][1]
(VariableNode "?CLASS2") ; [1bdad0b3e1d92a86][1]
) ; [ea88a87e2b7f8980][1]
(InheritanceLink
(VariableNode "?CLASS2") ; [1bdad0b3e1d92a86][1]
(VariableNode "?CLASS1") ; [49929d9688eabc67][1]
) ; [f6134a8c23788e31][1]
) ; [d80ddb80465d3195][-1] (/opncog/atomspace/opencog/atoms/base/ClassServer.cc:138)
Function args:
((InheritanceLink
(VariableNode "?CLASS1")
(VariableNode "?CLASS2")
)
(InheritanceLink
(VariableNode "?CLASS2")
(VariableNode "?CLASS1")
)
)")'.

It's about the consequent of the implication rule.
I'll be happy to fix it but I'm still very new to the whole thing
Creating the whole OrLink in guile throws the same exception, is something wrong with this syntax?

@manisabri manisabri changed the title Invalid atom syntax Invalid atom syntax (SUMO) Jun 20, 2020
@linas
Copy link
Member

linas commented Jun 20, 2020

try grabbing the latest version of teh atomspace. @ngeiswei very recently changed something that I think might fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants