C:\trane\logicagent>ruby logicbot.rb Hello I have loaded C:/trane/logicagent/logicagent-api.yaml. C:/trane/logicagent/graph.yaml loaded. > reset graph Okay, I have reset the graph. > logicbot: if input =~ /(.*) is a parent of (.*)/ then self.send("#{$1} is an ancestor of #{$2}") end Okay I have added if input =~ /(.*) is a parent of (.*)/ then self.send("#{$1} is an ancestor of #{$2}") end. > John is a parent of Charles. Okay, John is a parent of Charles. > Charles is a parent of William. Okay, Charles is a parent of William. > is John a parent of William? I have no knowledge that John a parent of William. > is John an ancestor of William? Yes, John is an ancestor of William. > why is John an ancestor of William? John an ancestor of William because: john is an ancestor of charles, and charles is an ancestor of william > John = Jack Okay, John = Jack. > is Jack an ancestor of William? Yes, Jack is an ancestor of William. > William = Bill Okay, William = Bill. > is Jack a parent of Bill? I have no knowledge that Jack a parent of Bill. > is Jack an ancestor of Bill? Yes, Jack is an ancestor of Bill. > why is Jack an ancestor of Bill? Jack an ancestor of Bill because: jack = john, and john is an ancestor of charles, and charles is an ancestor of william, and william = bill >