Commit [4670da] default Maximize Restore History

Cleaned up docs and tests to use new APIs.

mtnyogi mtnyogi 2010-03-06

changed Test/backup/backup.tst
changed pyke/knowledge_engine.py
changed examples/family_relations/run.py
changed doc/source/knowledge_bases/special.txt
changed doc/source/knowledge_bases/question_bases.txt
changed doc/source/pyke_syntax/kqb_syntax.txt
changed doc/source/logic_programming/rules/backward_chaining.txt
changed doc/source/logic_programming/rules/forward_chaining.txt
changed doc/source/logic_programming/plans.txt
changed doc/source/using_pyke/index.txt
changed doc/source/using_pyke/creating_engine.txt
changed doc/source/examples.txt
copied Test/backup/test.py -> Test/backup/run.py
Test/backup/backup.tst Diff Switch to side-by-side view
Loading...
pyke/knowledge_engine.py Diff Switch to side-by-side view
Loading...
examples/family_relations/run.py Diff Switch to side-by-side view
Loading...
doc/source/knowledge_bases/special.txt Diff Switch to side-by-side view
Loading...
doc/source/knowledge_bases/question_bases.txt Diff Switch to side-by-side view
Loading...
doc/source/pyke_syntax/kqb_syntax.txt Diff Switch to side-by-side view
Loading...
doc/source/logic_programming/rules/backward_chaining.txt Diff Switch to side-by-side view
Loading...
doc/source/logic_programming/rules/forward_chaining.txt Diff Switch to side-by-side view
Loading...
doc/source/logic_programming/plans.txt Diff Switch to side-by-side view
Loading...
doc/source/using_pyke/index.txt Diff Switch to side-by-side view
Loading...
doc/source/using_pyke/creating_engine.txt Diff Switch to side-by-side view
Loading...
doc/source/examples.txt Diff Switch to side-by-side view
Loading...
Test/backup/test.py to Test/backup/run.py
--- a/Test/backup/test.py
+++ b/Test/backup/run.py
@@ -1,9 +1,9 @@
-# test.py
+# run.py
 
 from pyke import knowledge_engine
 
-def test():
+def run():
     engine = knowledge_engine.engine(__file__)
     engine.activate('backup')
-    (ans,), plan = engine.prove_1('backup', 'top', (), 1)
-    print ans
+    vars, plan = engine.prove_1_goal('backup.top($ans)')
+    print vars['ans']