-
Notifications
You must be signed in to change notification settings - Fork 9
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
Queries not idempotent in projog #195
Comments
Hi Salim, Thank you for raising this issue. I'm sorry Projog is not working as you'd expect. To help me investigate this issue can you please give me more information about exactly what you are trying to do. For example:
Incidentally, since you raised this issue a new version of Projog has been released. The latest version is https://github.com/s-webber/prolog-wumpus-world If you are able to provide me with more information about the problem you are seeing then I will look into it and get back to you. Thanks. |
Hi @s-webber, First, thanks for your quick answer. To help to better investigate/answer, I am currently using the latest 0.4.0 version. and call the first query two times sequentially, like following:
with test.pl content: test(a,1). and test1.pl content: test(j,10). RESULT
The expected result is that the second consult call update the knowledge base and performing the second query, will produce the whole possibilities, in addition of the one provided by the last added predicate (test(j,10)). So:
Thanks for your answer and sorry for the non accurate explanation. |
Hi Salim, Thank you for your prompt and detailed response. I have attached a zip that contains an example solution to this problem: If you run the
To fix this problem I needed to do 2 things:
I appreciate it would be more convenient if it was not necessary to use I hope this proposed approach is satisfactory. As this change has been committed to Git then it will be included in the next release of Projog - but I don't know when that will be. In the meantime, using a local version of the projog-core jar (as demonstrated in the attached zip) is a workaround. Thank you again for raising this issue. If you are not happy with this response then please add a new comment to this issue and I will be happy to investigate further. If you have any more questions or comments about Projog then you are welcome to raise a new issue. |
Hi @s-webber, WDYT? |
Thank you for your suggestion. Unfortunately I do not think this will be a small change, but I agree it deserves consideration. I don't know when I will be free to look at it but I have created a new issue - #196 - so it will not be forgotten. Thanks again for your feedback. I will now close this issue. If you have any more questions or comments about Projog then you are welcome to raise a new issue. I will be happy to investigate any other issues you identify. |
Hi,
I’ve downloaded projog recently and play a bit with very basic provided samples in tests source code. What a surprise to se that by calling the same query two times, projog provided a complete result for the first query and an empty one in the second call, in the same projog session. Just to compare, swi-prolog provided the same complete result, for both calls.
As I am new in projog, is it a but or the expected result ?
Thanks and kind regards,
Salim
The text was updated successfully, but these errors were encountered: