[bp-users]Prolog Implementation of Rulebase

Lewandowski, Andrzej andrzej.Lewandowski@mchugh.com
Tue, 28 Aug 2001 16:30:38 -0400


Get any serious book on Prolog. Go to www.amzi.com <http://www.amzi.com>
You will find there HTML version of book
on implementing expert systems in Prolog 
http://www.amzi.com/download/index.htm
<http://www.amzi.com/download/index.htm>  
You will also find their (AMZI) Prolog-based tools for programming rules 
http://www.amzi.com/products/knowledgewright.html
<http://www.amzi.com/products/knowledgewright.html> 
 
A.L.

-----Original Message-----
From: Don Winston [mailto:dwinston@momentumsystems.com]
Sent: Monday, August 27, 2001 10:32 PM
To: bp-users@lists.probp.com
Subject: [bp-users]Prolog Implementation of Rulebase


I've used the BlazeSoft Advisor rulebase for implementing business rules for
a web application of a major inusrance company. I no longer work there and
now work as a consultant for smaller companines who wiil not pay for
something like Advisor (or ILog's JRules).
 
Has anyone ever constructed a simple rulebase tool based on Prolog? The
syntax of Prolog is unsatisfactory for this purpose. What I'm talking about
is an english like way of expressing business rules, like:
 
DATA
  x = 1.
  aString = 'Hello'.
  ...
END DATA.
 
BEGIN RULESET A
  RULE1: IF (cond1) THEN (action1).
  RULE2: IF (cond2) THEN (action2).
  ...
END RULESET A.
 
BEGIN RULESET B
  RULE1: IF (cond1) THEN apply RULESET A.
  RULE2: IF (cond2) THEN (action2).
END RULESET B.
 
 
....
 
 
In additon you should be able to make calls to one or more Java classes from
a rule. A Java class should be able to load, compile, and execute the
rulebase and retrieve the "answer" if any.