How to include my own rule base (.pl) while launching json_prolog
I wanted to include my rule base written in a prolog file(.pl) and launch it through the json_prolog launch file suggested in json_prolog launch. How can I do it? I can load the prolog file from a python node by querying ['CHOPIN.pl']. But when I do the same in json_prolog launch file, the query returns error
Traceback (most recent call last): File "/home/rohit/fuerte_workspace/sandbox/knowrob_CHOPIN/scripts/tutorial_test_query.py", line 16, in <module> query = prolog.query("hot(location1).") File "/home/rohit/fuerte_workspace/stacks/knowrob/json_prolog/src/json_prolog/prolog.py", line 69, in query return PrologQuery(query_str) File "/home/rohit/fuerte_workspace/stacks/knowrob/json_prolog/src/json_prolog/prolog.py", line 22, in __init__ raise PrologException('Prolog query failed: %s' % result.message) json_prolog.prolog.PrologException: "Prolog query failed: PrologException: error(syntax_error(operator_expected), string('expand_goal((hot(location1).),_Q), call(_Q) . ', 27))"
This is a specific error for my query. But, I hope you get the idea.
So, how do I load my rule base file(rule_base.pl) while launching json_prolog, to make it global and to be queried directly?
Thank you.