Adding Clauses using Assert(a/z)

From: kalden (kieran.alden_at_cummins.com)
Date: 03/17/05


Date: Thu, 17 Mar 2005 07:25:05 -0500

Hi All,

I have a problem where I am adding clauses to the knowledge base using
assertz. This works fine, but I lose the clauses when I exit the
SWI-Prolog program. Is there a save method I should be using to save
these new clauses ready for viewing next time I run the program?

Thanks in advance for your help



Relevant Pages

  • Re: Adding Clauses using Assert(a/z)
    ... > I have a problem where I am adding clauses to the knowledge base ... > assertz. ... but I lose the clauses when I exit the ... If the subject is only to save the clauses at program exit, ...
    (comp.lang.prolog)
  • Re: Adding Clauses using Assert(a/z)
    ... > I have a problem where I am adding clauses to the knowledge base using ... > assertz. ... but I lose the clauses when I exit the ... > SWI-Prolog program. ...
    (comp.lang.prolog)
  • Re: Issue passing a stem to a function! used the value() function.
    ... had an EXIT lol. ... It terminates the program even if called in an internal function or subroutine. ... It also keeps Select clauses that check for errors very concise: ...
    (comp.lang.rexx)