Argh! I haven't written any prolog in probably 25 years. I'll have to do some review of my copy of Clocksin and Mellish (the bible of prolog) and get back to you on this. Are you in a hurry? :-)
rubberman
Posting Maven
2,696 posts since Mar 2010
Reputation Points: 378
Solved Threads: 316
Skill Endorsements: 53
Also, what exactly are you trying to accomplish - describe the problem domain a bit more fully please.
rubberman
Posting Maven
2,696 posts since Mar 2010
Reputation Points: 378
Solved Threads: 316
Skill Endorsements: 53
pyTony
pyMod
6,330 posts since Apr 2010
Reputation Points: 879
Solved Threads: 989
Skill Endorsements: 27