Hello, Steve; I think the first thing to realize is that
IterateOverSelect isn't a loop in the for/while sense.  It uses a sub-
script that operates on each result set binding.  So the place to do
your filtering is in the IterateOverSelect query, as this will
determine how many times the sub-script is executed and bind the data
it is executed over.

So, no, there isn't a "break" statement.  However the triples passed
in the sub-script can be manipulated in various ways to determine what
the rest of the sub-script operates on.  What sort of condition are
you looking to decide whether or not to process the data?  I tried to
think of some use cases, but all the examples I could think of would
be better handled by filtering in the IterateOverSelect query.

-- Scott

On Aug 6, 2:52 pm, Steve Battle <[email protected]>
wrote:
> Is it possible to break out from an sml:IterateOverSelect loop?
> I'm iterating over a SPARQL result set and doing inference within the
> loop body and could specify an ask query to determine whether to
> continue or break out. However, I can't see how to exit such a loop.
> I know of the sml:IterateWhile but that doesn't allow me to set up a
> result set to iterate over. What I really need is an
> IterateOverSelectWhile.
>
> Thanks, Steve Battle.

-- 
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

Reply via email to