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

Issue with prolog. #1

Open
omarrana opened this issue Oct 4, 2016 · 0 comments
Open

Issue with prolog. #1

omarrana opened this issue Oct 4, 2016 · 0 comments
Assignees

Comments

@omarrana
Copy link
Contributor

omarrana commented Oct 4, 2016

When you run prolog query for the first time, the server seems to behave normal. But when you refresh the page 3rd time the server seems to get overloaded with data and stops working. iam just calling this function in prolog and array is used.

DeductiveDB deductiveDB;
public Result index() {
deductiveDB = new DeductiveDB();
try {
deductiveDB.consultKB();

public void consultKB() {
// Queries prolog
// Queries evalAMl.pl
String evalAML = "consult('evalAML.pl')";
System.out.println(evalAML + " " + (Query.hasSolution(evalAML) ? "succeeded" : "failed"));
// Queries eval.
String eval = "eval";
Query.hasSolution(eval);
// Queries writePredicates.
String writeFiles = "writePredicates";
Query.hasSolution(writeFiles);

http://stackoverflow.com/questions/39840052/java-to-web-application

I have tried this webapp both on spring framework and play framework and both have server overload error. Seems like prolog query stays in the memory and doesnt free up.

Other things works fine, rdf conversion, reading filepaths e.t.c

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

No branches or pull requests

2 participants