Runtime module for the factsdb package.
Usage:asserta_fact(Fact)
Version of datafacts_rt:asserta_fact/1 for filed predicates. The current instance of Fact is interpreted as a fact and is added at the beginning of the definition of the corresponding predicate. Therefore, before all the facts filed in the DB file for the predicate. The predicate concerned must be declared as facts; if it is not, then datafacts_rt:asserta_fact/1 is used.
Usage:assertz_fact(Fact)
Version of datafacts_rt:assertz_fact/1 for filed predicates. The current instance of Fact is interpreted as a fact and is added at the end of the definition of the corresponding predicate. Therefore, after all the facts filed in the DB file for the predicate. The predicate concerned must be declared as facts; if it is not, then datafacts_rt:assertz_fact/1 is used.
Usage:call(Fact)
Same as current_fact/1 if the predicate concerned is declared as facts. If it is not, an exception is raised.
Usage:current_fact(Fact)
Version of datafacts_rt:current_fact/1 for filed predicates. The current instance of Fact is interpreted as a fact and is unified with an actual fact in the current definition of the corresponding predicate. Therefore, with a fact previously asserted or filed in the DB file for the predicate, if it has not been retracted. The predicate concerned must be declared as facts; if it is not, then datafacts_rt:current_fact/1 is used.
Usage:retract_fact(Fact)
Version of datafacts_rt:retract_fact/1 for filed predicates. The current instance of Fact is interpreted as a fact and is unified with an actual fact in the current definition of the corresponding predicate; such a fact is deleted from the predicate definition. This is true even for the facts filed in the DB file for the predicate; but these are NOT deleted from the file (unless the predicate is persistent). The predicate concerned must be declared as facts; if it is not, then datafacts_rt:retract_fact/1 is used.
Usage::- facts(PredDesc,Keyword).
Declares the predicate PredDesc as filed. Keyword is the identifier of a location where the file DB for the predicate is kept. The location Keyword is described in the file_alias predicate, which must contain a fact in which the first argument unifies with Keyword.