JESS: [EXTERNAL] Using tests in query variables

2011-11-23 Thread Sam Sarjant
Hello. Is it possible to use tests as variables submitted to queries? Or do variables always have to be concrete facts (or already bound facts)? For example, given the facts (num 0) (num 1) (num 2)..., is it possible to perform a query that looks something like (run-query* numQuery ?X:(= 0 ?X

JESS: [EXTERNAL] loop with facts

2011-11-23 Thread nikos erinis
hi fellows, i m doing my master-thesis for a civil engineering project and i m using protege with jess-tab. i want to make a rule-based system that has artificial intelligence and can prognose the next step of the project. of course i dont have any idea about programming and i m having

Re: JESS: [EXTERNAL] Using tests in query variables

2011-11-23 Thread Wolfgang Laun
Within a (defquery) you use (declare (variables ...)) to specify query parameters, and the (run-query*) function lets you provide values for them. Usually the condition would have to be part of the query pattern, with only the value being provided by the run-query* parameter. -W On 23 November