« Return to Thread: JESS: jess Query?

Re: JESS: jess Query?

by Wolfgang Laun-2 :: Rate this Message:

Reply to Author | View in Thread

You'll have to run the second query search-by-systeme4 once for each element in the result vector of your first query. Either process the results of the second query search-by-systeme4 batch by batch, or collect them in some list or collection.

Your (while...) does return something, but it's nothing to do with ?result and not a good argument for your second query.

-W

On Thu, Apr 30, 2009 at 9:42 AM, hed23 <hed1986@...> wrote:

hi;

I want to understand if I can use an imbrqie query in jess, my problem is:
          1-I make a query and i save a result in a Result vector "?result"
          2-I want to use this Result " ?result" vector like a varibale in
my a new query.so
how i can do that ,that 's my try:

(bind ?result2 (run-query* search-by-systeme4
"http://www.owl-ontologies.com/unnamed.owl#ID_PARENT_GEOGRAPHIQUE"  (while
(?result next) (?result getString Sb) ) ))

when i run it, it give me 0 results.

thks for your help.
--
View this message in context: http://www.nabble.com/jess-Query--tp23311284p23311284.html
Sent from the Jess mailing list archive at Nabble.com.



--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users you@...'
in the BODY of a message to majordomo@..., NOT to the list
(use your own address!) List problems? Notify owner-jess-users@....
--------------------------------------------------------------------


 « Return to Thread: JESS: jess Query?