I am looking for good beginners material on Prolog, both online and printed. I am not only interested in 'learning the language' but also in background and scientific information.
Here's one book you may find useful: Prolog Programming for Artificial Intelligence by Ivan Bratko.
The first part is about Prolog, the second about AI algorithms and how to implement them in Prolog.
Once upon a time when I used Prolog I liked the book by Sterling & Shapiro, The Art of Prolog.
For advanced Prolog programming, especially w.r.t. efficiency, I recommend the Craft of Prolog by O'Keefe.
Check out Learn Prolog Now!
This book is well-written, should be easy to read for beginners. It's available in printed form and also as a free online version. It is also relatively new (from 2003), which is not the case with many Prolog books out there.
Try Logic, Programming and Prolog (free download). I haven't read it, but it's broken up into Foundations, Programming in Logic, and Alternative Logic Programming Schemes, so it sounds like it has something for everybody.
If you want a very accessible and solid introduction to Prolog (this is more into 'learning the language'), go for "Programming in Prolog: Using the ISO Standard" by Clocksin and Mellish, now in it's 5th edition.
Writing an Adventure Game in Prolog could also be a good way to learn.
You MUST read Nany's Tutorial. Learn Prolog while you create a complete game.
I'm sorry but I have to say both this book and many others that I've found online are completely USELESS. I am baffled by the fact that there is nobody out there that can truly explain Prolog.For instance: I want to introduce data into Prolog; for the past hour I've been searching for a book/guide/anything or anyone that can teach me that. Even the simplest of books starts with a simple program, but not even those don't explain how I'm supposed to imput those facts.
If anyone can enlighten me on Prolog (as in truly teach it in a learnable manner) then please send me an email at [email protected]. Until I get an answer from any of you guys I guess I have to try and deduce how to use this twisted program T_T.
@l3lue: Hey, just write a text written in the book into a text file and then
?- *reconsult('your_file_name').*
That's all.