AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

riccochet_s<v_S query
 
 

Can you give me an example of how to use the riccochet_s<v_S query?

How many arms (_0) does a person (_1) have? given: (person component (arm component 2))

Here is my attempt, which does not work

#query(direct_svo subject verb object count fromset toset auxdata auxdata)

u: ("xxx5"

 @
= ^query(riccochet_s<v_S person component ? ? arm component
 
 if (@
0)
 
{
  person has 
@0object arms 
 
}
 
else
 
{
  query failed
 } 

What I am hoping to do, is get the (arm component 2) fact, so I can delete it and replace it with another fact. I think riccochet_s<v_S should able to do that.

 

 
  [ # 1 ]

Hopefully it can also be used to find out how much mackerel or fish this fellow has.

(bob has (mackerel quantity 10))

 

 
  login or register to react