Is there a built-in predicate or a easy way to remove from the knowledge database of prolog a source files that has already been consulted? I’ve gone through the reference manual and didn’t find any thing that could do that.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do it with these procedures which use
source_file/1andsource_file/2:unload_source/1abolishes all predicates defined by the input Source file name. Be warned that it needs to be an absolute path.unload_last_source/0will retrieve the last consulted file name and unload it.