Then you can load the program from inside prolog after you’ve started it.
So, let’s start the prolog interactive GUI:
prolog Then, in the Prolog GUI, load the file test.pl like so:
?- [test]. Now, if you had some prolog clauses in the test.pl file, you will be able to extract that information by querying.
A very simple test program that you could create is:
/* Some facts about parent relationships */ parent(sam,mark).