I want to use the c ++ interface to access the database, get all the available solutions and then manipulate them in c ++.
I found the PlQuery and PlCall class descriptions in the manual. But I do not understand how to execute such a request with their help.
parent(tom,X),parent(X,Y).
PlCall looks very good but it does not display all the solutions.
Any ideas …
The best advice is: don’t. Instead, make sure the Prolog program that provides a suitable predicate with nice simple arguments. That saves a lot of typing. So, in the above you add
If you really want/need, create a goal using the various term manipulation primitives where, in this case, the outermost term is ,/2 and pass this term to the built-in call/1.