r2l rules with questions added

@linas , @ruiting @bgoertzel y'all want to take a look at these?

*I made one change in the previous rules -- lowered the priority of the decalarative SVIO rule to 2, which allowed the SVIO Q rule to function.*
got it

--------------------------------------------
On Wed, 9/24/14, Amen Belayneh <notifications@github.com> wrote:

 Subject: Re: [relex] r2l rules with questions added (#168)
 To: "opencog/relex" <relex@noreply.github.com>
 Cc: "anitzkin" <a_nitzkin@yahoo.com>
 Date: Wednesday, September 24, 2014, 4:18 PM
 
 In
 data/relex2logic-rules.txt:
 > +# WHAT Indirect Object
 > +#============================
 > +[whatiobj-Q] {1} <SVIO>
 interrogative-FLAG(_\$qVar, T) &
 QUERY-TYPE(_\$qVar, what) & _subj($verb, $subj)
 & _obj($verb, $obj) & _iobj($verb, _\$qVar)
 => (whowhatiobj-Q-rule $subj (get-instance-name  $subj
 word_index sentence_index) $verb (get-instance-name $verb
 word_index sentence_index) $obj (get-instance-name $obj
 word_index sentence_index))
 > +#=================
 > +# Where questions
 > +#=================
 > +[whereSVIO-Q] {1} <SVIO, SVO, SV, whereSVO-Q,
 whereSV-Q> QUERY-TYPE(_\$qVar, where) &
 _%atLocation($verb, _\$qVar) & _subj($verb, $subj)
 & _obj($verb, $obj) & _iobj($verb, $iobj) =>
 (where-SVIOQ-rule $subj (get-instance-name $subj  word_index
 sentence_index) $verb (get-instance-name $verb word_index
 sentence_index) $obj (get-instance-name $obj word_index
 sentence_index) $iobj (get-instance-name $iobj word_index 
 sentence_index))
 > +[whereSVO-Q] {2} <SVO, SV>
 QUERY-TYPE(_\$qVar, where) & _%atLocation($verb,
 _\$qVar) & _subj($verb, $subj) & _obj($verb,
 $obj) => (where-SVOQ-rule $subj (get-instance-name $subj
 word_index sentence_index)  $verb (get-instance-name $verb
 word_index sentence_index) $obj (get-instance-name $obj
 word_index sentence_index))
 > +[whereSV-Q] {3} <SV> QUERY-TYPE(_\$qVar,
 where) & _%atLocation($verb, _\$qVar) &
 _subj($verb, $subj) => (where-SVQ-rule $subj
 (get-instance-name $subj word_index sentence_index) $verb
 (get-instance-name $verb word_index sentence_index))
 > +[wherecop-Q] {2} <SV, whereSV-Q>
 QUERY-TYPE(_\$qVar, where) &
 _%atLocation(_\%copula, _\$qVar) &
 _subj(_\%copula, $s) => (wherecop-Q-rule $s
 (get-instance-name $s word_index sentence_index))
 > +#================
 > +# When questions
 > +#================
 > +[whenSVIO-Q] {1} <whenSV-Q, whenSVO-Q, SVIO, SVO,
 SV> QUERY-TYPE(_\$qVar, when) & _%atTime($verb,
 _\$qVar) & _subj($verb, $subj) & _obj($verb,
 $obj) & _iobj($verb, $iobj) => (when-SVIOQ-rule $subj
 (get-instance-name $subj word_index  sentence_index) $verb
 (get-instance-name $verb word_index sentence_index) $obj
 (get-instance-name $obj word_index sentence_index) $iobj
 (get-instance-name $iobj word_index sentence_index))
 > +[whenSVO-Q] {2} <whenSV-Q, whenSVO-Q, SVO, SV>
 QUERY-TYPE(_\$qVar, when) & _%atTime($verb,
 _\$qVar) & _subj($verb, $subj) & _obj($verb,
 $obj) => (when-SVOQ-rule $subj (get-instance-name $subj
 word_index sentence_index) $verb (get-instance-name $verb
 word_index sentence_index) $obj (get-instance-name $obj
 word_index sentence_index))
 > +[whenSV-Q] {3} <whenSVO-Q, SV>
 QUERY-TYPE(_\$qVar, when) & _%atTime($verb,
 _\$qVar) & _subj($verb, $subj) => (when-SVQ-rule
 $subj (get-instance-name $subj word_index sentence_index)
 $verb (get-instance-name  $verb word_index sentence_index))
 
 on the second get-instance-name call , delete one of the
 extra space before $verb. causes error. 
 
 I know it is crazy :-)
 
 —
 Reply to this email directly or view
 it on GitHub.