Updates scheme rule-helpers for r2l questions; a few bugs remain. . .

@AmeBel @ruiting @linas @bgoertzel 
Well, there's two ways to look at it.  I guess when I wrote it I was thinking that qVar, when it gets replaced
would fill the role of what the ConceptNode inherits.  I.e. "which girl" could be answered by "the tall girl"
in which case "girl" inherits "tall" not "tall" inherits "girl"

However, I see your side of it too: We want to specify a variable which is a girl, not a girl which is a variable, right?

So . . .?

--------------------------------------------
On Wed, 9/24/14, Amen Belayneh <notifications@github.com> wrote:

 Subject: Re: [opencog] Updates scheme rule-helpers for r2l questions; a few bugs remain. . . (#1037)
 To: "opencog/opencog" <opencog@noreply.github.com>
 Cc: "anitzkin" <a_nitzkin@yahoo.com>
 Date: Wednesday, September 24, 2014, 5:20 PM
 
 In
 opencog/nlp/relex2logic/rule-helpers.scm:
 > +				(VariableNode
 "_$qVar")
 > +				(ConceptNode instance df-node-stv)))
 > +))
 > +;
 >
 +;-----------------------------------------------------------------------------------------------
 > +; CHOICE-TYPE QUESTIONS
 >
 +;-----------------------------------------------------------------------------------------------
 > +; WHICH -- NONE OF THESE RULES ARE GETTING CALLED YET
 -- DON'T KNOW WHY
 >
 +;-----------------------------------------------------------------------------------------------
 > +;
 > +; Example: "Which girl do you like?"
 > +(define (whichobjQ-rule obj_concept obj_instance verb
 verb_instance subj_concept subj_instance)
 > +	(list (ImplicationLink (PredicateNode verb_instance
 df-node-stv) (PredicateNode verb df-node-stv) df-link-stv)
 > +	(InheritanceLink (ConceptNode subj_instance
 df-node-stv) (ConceptNode subj_concept df-node-stv)
 df-link-stv)
 > +	(InheritanceLink (ConceptNode obj_instance
 df-node-stv) (ConceptNode obj_concept df-node-stv)
 df-link-stv)
 > +	(InheritanceLink (ConceptNode obj_instance
 df-node-stv) (VariableNode "$qVar") df-link-stv)
 
 shouldn't (InheritanceLink (ConceptNode
 obj_instance df-node-stv) (VariableNode "$qVar")
 df-link-stv) be (InheritanceLink (VariableNode
 "$qVar")  (ConceptNode obj_instance df-node-stv)
 df-link-stv)
 
 and
 
     (EvaluationLink df-link-stv (PredicateNode
 verb_instance df-node-stv)
         (ListlInk df-link-stv
             (ConceptNode subj_instance df-node-stv)
             (VariableNode "$qvar" df-node-stv)))
 
 
 ?
 
 —
 Reply to this email directly or view
 it on GitHub.