Sofia, There are cases when it is not possible to do what is needed in a single query. SPARQLMotion provides a good solution in these situations. It has iteration modules (and other program control modules) that enable you to do all sorts of things in a body of iteration.
I have not looked into details of what you are trying to accomplish, so I can't say if yours is indeed a case where a query alone will not work. Irene Polikoff -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of sofiangeletou Sent: Saturday, June 04, 2011 8:28 AM To: TopBraid Suite Users Subject: [topbraid-users] Re: tops#foreach has no registered function factory Thank you Holger. but what is the alternative to iterate over the results of kennedys:getTheKennedys(kennedys:Person) ? Sofia On Jun 4, 1:18 pm, Holger Knublauch <[email protected]> wrote: > On Jun 4, 2011, at 10:58 AM, sofiangeletou wrote: > > > let(?x:= tops:foreach (kennedys:getTheKennedys(kennedys:Person))) > > This explains it - tops:foreach is a "magic property" and not a FILTER/LET/BIND function. So you can only use it in the triple syntax like in Scott's example, but not in a LET. > > Holger -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en
