On 8/30/2013 19:18, [email protected] wrote:
Hey all,

I wonder if there are any convenience methods in the SPIN API to recursively walk the elements of the WHERE pattern in the query Model?

Have you tried org.topbraid.spin.model.visitor.ElementWalker?

Cheers
Holger



What I want to do is to find the first occurrence of SELECT subquery within WHERE. It can be nested in OPTIONAL etc, so I have to look at all depths. Later on I want to modify that SELECT by setting LIMIT, OFFSET etc.

ResourceUtils.reachableClosure(getWhere()).listSubjectsWithProperty(RDF.type, SP.Select) finds what I need, but I cannot modify the subquery as reachableClosure() returns another Model.

Thanks,

Martynas
graphityhq.com
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages 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 Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL 
Web Pages 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 Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to