[rules-dev] Perhaps an undocumented feature of Backward Chaining?
Wolfgang Laun
wolfgang.laun at gmail.com
Wed Jun 22 11:39:24 EDT 2011
This is related to the example in 2.1.2.8., Backward Chaining.
Using the same rules and queries given there, the sequence of fact insertions
insert( new Here( "table" ) );
insert( new Edible( "peach" ) );
insert( new Location( "peach", "table" ) );
results in nothing being seen and nothing being edible, whereas
insert( new Edible( "peach" ) );
insert( new Location( "peach", "table" ) );
insert( new Here( "table" ) );
results in the obvious and expected result.
There is no difference w.r.t. using '?' in front of query names.
-W
More information about the rules-dev
mailing list