Sabtu, 19 Desember 2009

defining the disease using SWI-Prolog

This is my expert system by using prolog .
chek this out..
1 . first write this rule into notepad .

2. and then save it with name coba.pl
3. open SWI-Prolog then consult he file
4. after that write definisi(Penyakit,Virus,_,_,_). to list all of the disease and the virus .

5. to list Gejala we can write definisi(Penyakit,Virus,_,Gejala,_).

6. if you want to list all of the disease and alternatif , ou can write this definisi(Penyakit,Virus,Menyerang,Gejal,Solusi).

7. please don't forget to give (.) ont the end of command .

Tidak ada komentar:

Posting Komentar