Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I change the knowledge base?? 1

Status
Not open for further replies.

puntito

Programmer
Mar 22, 2006
18
0
0
If i have this in my knowledge base

state(jalisco,jal,guadalajara,6322002).
...

How can the user change the number of the population because it grew.

How can I modify the information of the Knowledge Base.

state(jalisco,jal,guadalajara,6950850).
 
Hello.
How about using retract and assert.

?- state(jalisco,jal,guadalajara,X).
X = 6322002 ;
no

?- retractall(state(jalisco,jal,guadalajara,_)).
yes

?- assertz(state(jalisco,jal,guadalajara,6950850)).
yes

?- state(jalisco,jal,guadalajara,X).
X = 6950850 ;
no
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top