views:

1513

answers:

12

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.

+4  A: 

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.

Mr. Brownstone
This one, OTOH, goes much more into the representation and reasoning realm.
ThomasH
+5  A: 

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.

starblue
ThomasH
No, wait, O'Keefe is back in stores again - what a joy :-).
ThomasH
+14  A: 

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.

Kaarel
I second this suggestion. Very good and well-written introduction suitable for beginners.
stian
Very good book indeed. In its advanced chapters it's slanted towards natural language processing, which covers one important application area (the others being knowledge representation and reasoning).
ThomasH
A: 

Here's a page with a slew of useful links

http://www.swi-prolog.org/www.html

+1  A: 

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.

Bill the Lizard
This is a very nice one, especially since freely available, but I wouldn't recommend it for starters. But it is a very good second read, if you are interested in the representation/reasoning aspect of Prolog.
ThomasH
+2  A: 

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.

ThomasH
Nate
A: 

I haven't seen this one metioned yet and thought it was a good read.

A Prolog Introduction for Hackers

spoon16
+3  A: 

Writing an Adventure Game in Prolog could also be a good way to learn.

Novelocrat
+1 for a source that involves doing instead of just reading.
JUST MY correct OPINION
+1  A: 

You MUST read Nany's Tutorial. Learn Prolog while you create a complete game.

Juanjo Conti
+1 for a source that involves doing instead of just reading.
JUST MY correct OPINION
A: 

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.

I3lue
Whining about your inabilities is not exactly answering the question, is it?
JUST MY correct OPINION
A: 

@l3lue: Hey, just write a text written in the book into a text file and then

?- *reconsult('your_file_name').*

That's all.

ionial