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

use of variables as placeholders for predicates in conjunctions #12

Closed
s-webber opened this issue Apr 12, 2014 · 0 comments
Closed

use of variables as placeholders for predicates in conjunctions #12

s-webber opened this issue Apr 12, 2014 · 0 comments
Assignees
Labels

Comments

@s-webber
Copy link
Owner

The following query:

?- X=true, X.

Produces the following error:

Expected an atom or a predicate but got a NAMED_VARIABLE with value: X

This is not the correct behavior - the correct behavior is for the query to evaluate successfully once.

Full stacktrace:

org.projog.core.ProjogException: Expected an atom or a predicate but got a NAMED_VARIABLE with value: X
        at org.projog.core.PredicateKey.createForTerm(PredicateKey.java:58)
        at org.projog.core.KnowledgeBase.getPredicateFactory(KnowledgeBase.java:199)
        at org.projog.core.function.compound.Conjunction.getPredicate(Conjunction.java:174)
        at org.projog.core.function.compound.Conjunction.getPredicate(Conjunction.java:163)
        at org.projog.core.function.compound.Conjunction.getPredicate(Conjunction.java:139)
        at org.projog.api.QueryResult.next(QueryResult.java:70)
        at org.projog.tools.ProjogConsole.evaluateOnce(ProjogConsole.java:183)
        at org.projog.tools.ProjogConsole.parseAndExecute(ProjogConsole.java:121)
        at org.projog.tools.ProjogConsole.run(ProjogConsole.java:75)
        at org.projog.tools.ProjogConsole.main(ProjogConsole.java:222)
@s-webber s-webber added the bug label Apr 12, 2014
@s-webber s-webber self-assigned this Apr 12, 2014
@s-webber s-webber reopened this Apr 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant