Hi,
I am using NoHR reaoner that uses xsb version 3.8 in my java program, I am using it to query over ontologies + rules. When i execute small ontologies and small set of rules , everything works fine but when the size increases of both ontology and rules (more than 100) then i get the following error:
IPPrologError:++Error[XSB/Runtime/P]: [Resource (memory)] context([Query exhausted system memory, (currently expanding global/local stack space)],[])
at com.declarativa.interprolog.SubprocessEngine.firstGoal(SubprocessEngine.java:577)
at com.declarativa.interprolog.SubprocessEngine.deterministicGoal(SubprocessEngine.java:508)
at com.declarativa.interprolog.AbstractPrologEngine.deterministicGoal(AbstractPrologEngine.java:862)
at pt.unl.fct.di.novalincs.nohr.deductivedb.PrologDeductiveDatabase.answersValuations(PrologDeductiveDatabase.java:536)
at pt.unl.fct.di.novalincs.nohr.deductivedb.PrologDeductiveDatabase.answersValuations(PrologDeductiveDatabase.java:519)
at pt.unl.fct.di.novalincs.nohr.hybridkb.QueryProcessor.allAnswers(QueryProcessor.java:106)
at pt.unl.fct.di.novalincs.nohr.hybridkb.NoHRHybridKB.allAnswers(NoHRHybridKB.java:391)
at pt.unl.fct.di.novalincs.nohr.hybridkb.NoHRHybridKB.allAnswers(NoHRHybridKB.java:379)
at QueryWCommand.NoHRQyering.singleRun(NoHRQyering.java:57)
at QueryWCommand.NoHRKB.run(NoHRKB.java:84)
at QueryWCommand.NoHRQyering.main(NoHRQyering.java:72)
at TestingMHF.AlgoWCommand.Intialization.main(Intialization.java:61)
As i am trying to run my java program via command line, i also try allocating more memory to xsb as well like this:
java -Xmx3G -jar Testing.jar C:\Users\Desktop\ontology.owl C:\Users\Desktop\Sparql.txt C:\Program Files (x86)\XSB\config\x86-pc-windows\bin\xsb -m 8g
But it has no effect. I am also not sure whether it is a right way to allocate more memory to xsb that is used by some other tool.
Kindly help me to figure out this problem.
Thanks in advance!
Hi,
I am using NoHR reaoner that uses xsb version 3.8 in my java program, I am using it to query over ontologies + rules. When i execute small ontologies and small set of rules , everything works fine but when the size increases of both ontology and rules (more than 100) then i get the following error:
IPPrologError:++Error[XSB/Runtime/P]: [Resource (memory)] context([Query exhausted system memory, (currently expanding global/local stack space)],[])
at com.declarativa.interprolog.SubprocessEngine.firstGoal(SubprocessEngine.java:577)
at com.declarativa.interprolog.SubprocessEngine.deterministicGoal(SubprocessEngine.java:508)
at com.declarativa.interprolog.AbstractPrologEngine.deterministicGoal(AbstractPrologEngine.java:862)
at pt.unl.fct.di.novalincs.nohr.deductivedb.PrologDeductiveDatabase.answersValuations(PrologDeductiveDatabase.java:536)
at pt.unl.fct.di.novalincs.nohr.deductivedb.PrologDeductiveDatabase.answersValuations(PrologDeductiveDatabase.java:519)
at pt.unl.fct.di.novalincs.nohr.hybridkb.QueryProcessor.allAnswers(QueryProcessor.java:106)
at pt.unl.fct.di.novalincs.nohr.hybridkb.NoHRHybridKB.allAnswers(NoHRHybridKB.java:391)
at pt.unl.fct.di.novalincs.nohr.hybridkb.NoHRHybridKB.allAnswers(NoHRHybridKB.java:379)
at QueryWCommand.NoHRQyering.singleRun(NoHRQyering.java:57)
at QueryWCommand.NoHRKB.run(NoHRKB.java:84)
at QueryWCommand.NoHRQyering.main(NoHRQyering.java:72)
at TestingMHF.AlgoWCommand.Intialization.main(Intialization.java:61)
As i am trying to run my java program via command line, i also try allocating more memory to xsb as well like this:
java -Xmx3G -jar Testing.jar C:\Users\Desktop\ontology.owl C:\Users\Desktop\Sparql.txt C:\Program Files (x86)\XSB\config\x86-pc-windows\bin\xsb -m 8g
But it has no effect. I am also not sure whether it is a right way to allocate more memory to xsb that is used by some other tool.
Kindly help me to figure out this problem.
Thanks in advance!