This is my JS code. I am trying to ask a query through a button and getting this error: procedure 'ef95febb-4e5c-42e3-85f0-050ddc8d2364':graf(A,B,C,D)' does not exist.
How to use the option correctly?
var pengine = new Pengine({
server: "https://pengines.swi-prolog.org/pengine",
srcurl: "/apps/examples/parents_tree.pl"
});
$("#run-btn").on("click", function() {
var answer = pengine.ask('graf(_,_,_,G)');
console.log(answer);
});
I have updated https://pengines.swi-prolog.org. Note that this site is not well maintained though. The core of the Pengines is a standard SWI-Prolog package. The pengines site reflects @torbjorn.lager original ideas. Torbjorn is concentrating on Web Prolog and SWI-Prolog comes with the bundled old pengines core library and SWISH.
Okay, I got it. Where can I get the source code of pengines? Because the links on https://pengines.swi-prolog.org don’t provide pengines.js and related files.