24.11.2014 Views

flex Expert System Toolkit - LPIS

flex Expert System Toolkit - LPIS

flex Expert System Toolkit - LPIS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7. Knowledge Specification Language 76<br />

Database Maintenance<br />

Questions<br />

Database maintenance is accomplished by directives which add assertions<br />

to, or delete assertions from both the positive (facts) and the negative<br />

(exceptions) databases. Facts may be added and removed using the KSL<br />

keywords<br />

remember<br />

remember that<br />

forget<br />

forget that<br />

Examples<br />

remember that pregnant( P )<br />

remember likes( alexander, harvey )<br />

remember not raining<br />

forget danger_level( red )<br />

forget that not boiling<br />

A very specific directive is the asking of a question, using the KSL keyword<br />

ask.<br />

ask Question<br />

Examples<br />

Procedure Calls<br />

ask starter<br />

ask password<br />

The questions starter and password will be defined elsewhere (using the<br />

question keyword).<br />

Finally, a directive can be a call to some procedure. It is the means by which<br />

directives (and thus rules and attached procedures) link into Prolog's<br />

backward chaining execution mode.<br />

<strong>flex</strong> toolkit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!