99 Prolog Problems
sites.google.com
sites.google.com
Also, for anyone curious about Prolog, I found experimenting with Erlang made many aspects of Prolog make more sense, and vice versa. Erlang was originally a Prolog DSL, and many minor details carried over.
The level of density in such a short text as well the ability to work through it without having to sit in front of a computer is invigorating (I've had to reread the first 80 pages or so about 5 times now, of course it might just be that I'm slow ;). It certainly succeeds at showing the beauty of a system that elegantly intertwines FP w/ LP.
Oleg (of Haskell fame) has some excellent further resources, http://kanren.sourceforge.net/ and William Byrd's thesis is a treasure trove of things to consider: http://gradworks.umi.com/33/80/3380156.html
I also highly recommend Sterling and Shapiro's _The Art of Prolog_.
I'm curious as to what put you off about TRS? The only thing I found initially frustrating was the lack of hand-holding to be found in the earlier books in the Schemer series. But then I starting working out everything I found confusing w/ pencil and paper and found the going much easier.
I've heard good stuff about the Bratko book, too - there's a new edition being published in a few months, I'm planning on checking it out then.
* check whether a piece of source code matches a certain pattern
* find all pieces of source code that match a pattern
* search for all occurrences of a given pattern that were
used to program a piece of source code
* detect violations of the usage of a pattern
* enforce the consistent use of some pattern throughout a program
* generate code that matches a certain pattern
More about Logic Meta Programming here, http://soft.vub.ac.be/SOUL/I posted the 99 Prolog Problems link about a year ago and got no response whatsoever, but I'm guessing that the (somewhat weak, IMHO) chapter on Prolog in _Seven Languages in Seven Weeks_ has created a bit more interest.
[1] A few years ago I read a study that concluded that there's a lot of randomness in what songs become hits. They ran some experiments with tagged music and listeners. But despite trying to find the study again several times, I can never seem to find it again. If anyone does, I'd greatly appreciate it.
would make for a hilarious music video