My only short exposure to Prolog was trying to implement custom submission rules in Gerrit. It made an utter fool out of me at every turn - it really seemed like an insane interface, compared to e.g. a Python or Javascript function that could be user-implemented.
I get the feeling there's more to Prolog than I was able to unlock - can you recommend any reference materials for beginners?