Thanks Torbjörn.
Do I have to make parent_child into a module? Maybe I should have been more clear. What we need to do is to make an existing prolog app (with a main program and many supporting files) work with pengine, exposing only a couple of predicates of the main program.
Without pengine we would just consult every file. Converting the main program into a module and consulting everything else does not seem to work.
Since there are many predicates like parent_child being used by the "main" program, it would be a lot of work if we have to convert every file into a module and "expose" every predicate that the main program is dependent upon. Predicates like parent_child is only used by the main program "internally", i.e., not to be used by the GUI.
Please let me know if I need to provide more info.
Thanks again in advance!!