How to reproduce the query mechanism from pengines.js?

I’m using: SWI-Prolog version 8.1.10 and I have the pengines server installed with the “genealogist” example app (pengines vanilla install).

After doing quite a bit of research about GUI possibilities for a prolog application, I decided to go with Smalltalk as it seemed the quickest and most flexible, and make use of the pengines.js way.

Line 131 of pengines.js makes evident that a POST request is needed, but there are multiple options that are documented nowhere (ask, template, etc.).

I need an example. If I wanted to assert father_child(tom, sally). and then request ancestor_descendant(X, Y). using curl, can someone please tell me how to do it?

Thanks!

1 Like
curl -v http://localhost:3030/pengine/create -d format=json -d application=genea
logist -d "ask=assert_father_child(tom, sally), ancestor_decendant(X, Y)" -d "te
mplate=prolog(Y)"