KnowledgeWorks
Unable to parse email body. Email id is 7336
Unable to parse email body. Email id is 7336
http://www.amazon.com/Expert-Systems-Principles-Programming-Third/dp/0534950531
Hi there,
Apart from the LW samples (and my edition of "Programming Expert Systems in
OPS5"), anyone have advice on good starting points for programming knowledge
based systems in KnowledgeWorks?
Thanks in advance,
B. Connoy
Hi, David
Recently I'm thinking about using KnowledgeWorks as a ontology platform,
by import all data from the OpenCyc[1] project, and write a simple
inference engine based on KW rules. Is it possible for KW?
Thanks.
In CLIPS, there's a feature called `field constraint':
(defrule black-or-brown-hair
(person (name ?name) (hair ?color&brown|black))
=>
(printout r ?name " has " ?color " hair" crlf))
I have to translate this rule into KW like this:
(defrule black-or-brown-hair :forward
(person ? name ?name hair ?color)
(test (or (eq ?color 'brown)
(eq ?color 'black)))
-->
((format t "~A has ~A hair~%" ?name ?color)))
Am I right? Can this be optimized for fast match the color field?
I have no way to port $? directly, so I do this in KnowledgeWorks:
(defrule clear-upper-block :forward
(goal ? move ?block-1)
(stack ? is (?top . ?rest))
(test (member ?block-1 ?rest))
-->
(assert (goal ? move ?top on-top-of floor)))