Simple question - XSB Prolog

Posted by KP65 on Stack Overflow See other posts from Stack Overflow or by KP65
Published on 2010-03-11T14:12:12Z Indexed on 2010/03/12 0:57 UTC
Read the original article Hit count: 559

Filed under:

Hello!

I'm diving into the world of prolog headfirst but I seem to have hit shallow water!

I'm looking at database manipulation in prolog with regards to this tutorial:Learn Prolog Now!

It states that I can see my database by entering listing

So i tried it and it should basically output everything in my .P file(facts, rules), but this is what i get, here are my sequence of commands:

? consult('D:\Prolog\testfile.P').
[testfile.P loaded]

? listing.

library_directory(C:blahblahpathtoXSB)
library_directory(C:blahblahXSBpath)
{this is listed around 5 times)}

shouldn't this command display what is in testfile.P, according to the tutorial? also, after consult testfile.P i should be ableto use assert to add more facts but it doesnt actually change anything in the testfile.P..?

any ideas

© Stack Overflow or respective owner

Related posts about prolog