While googling for the Prolog code examples for two commercial textbooks – Ivan Bratko’s Prolog Programming for Artificial Intelligence and Stuart Russell’s and Peter Norvig’s Artificial Intelligence: A Modern Approach – I stumbled across this very interesting pdf document:
For some reason the downloadable examples written by Bratko and the “translations from pseudo-code into Prolog” for Russel & Norvig (which I distinctly recall downloading in the past) have vanished. Endriss’s notes look very cool since they are written in SWI-Prolog, so don’t need translating from some other dialect.