Page 1 of 1

Hi.i need help on how to apply retract after diagnosis

Posted: 2 Jun 2014 18:46
by fred malack

Code: Select all

Facts    Symptom:(name,indicator) nondeterm.  
I have number of assert in the code i want to retract
Just after diagnosis please i need help cz i have to implement
It plz...

Posted: 2 Jun 2014 20:21
by Thomas Linder Puls

Code: Select all


Thanx alot ...

Posted: 3 Jun 2014 3:56
by fred malack
Should i put it in a predicate where should i place it sir...
...thanx alooot sir

Thaaanx alot...

Posted: 3 Jun 2014 4:01
by fred malack
Thaanx but should i place retractAll(_,_)
Inside a predicate or where should i place it?? :cry:

Hi..i have tried to implement it gives me error

Posted: 3 Jun 2014 5:36
by fred malack

Code: Select all

  Facts      Symptom:(name,indicator) nondeterm.   Clauses       retractAll(symptom(_,_)).
That is how i tried to implement retract so it remove all the previous
Data from symptom but it gives me error please i need help to be able to implement

Posted: 3 Jun 2014 7:12
by Tonton Luc

Make a search of "retractall" or "retractfactDB" on this forum and you will understand better how to use it in this post => ... retractall

Posted: 3 Jun 2014 7:57
by Thomas Linder Puls
You can specifically look at: Expert system(medical diagnosis system) (post #41300).