On 6/26/2012 20:26, Martynas wrote:
Holger,
I have a SPIN query for which I want to change the ORDER BY expression
-- say change the ?var name, or change ASC to DESC for example.
I have implemented the following method:
public QueryBuilder orderBy(Variable var, boolean desc)
{
spinQuery.removeAll(SP.orderBy); // does not have effect??
If not, then are you perhaps in a MultiUnion graph where the triple is
not in the base graph? Also note that the removeAll won't delete any
rdf:List triples, so they may be left as orphans.
Hard to say without the full source code.
In general, have you thought about using the Jena Query model API
instead here, i.e. manipulate the Jena objects and then use ARQ2SPIN to
replace the bnodes of the select?
Holger
--
-- 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 Ensemble, 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