Jeff,

I also speculate that you simply want to create a Jena Query object from the 
SPIN API Query instance. In that case, you can use 
PrintContext.setPrintPrefixes(false) to ensure that the generated query string 
will only consist of absolute URIs (without prefixes). This will make parsing 
it with ARQ far simpler.

Holger



On Jan 15, 2011, at 1:46 PM, Schmitz, Jeffrey A wrote:

> Hello,
>   I’m using org.topbraid.spin.model.SPINFactory to retrieve a stored 
> org.topbraid.spin.model.Query in one of my models, and then using the print 
> function to get the string version of the query, e.g.:
>  
> org.topbraid.spin.model.Query spinQuery = SPINFactory
>                               .asQuery(spinQueryRes);
>                   StringBuilder queryBldr = new StringBuilder();
>                   StringPrintContext printCntxt = new 
> StringPrintContext(queryBldr);
>                   spinQuery.print(printCntxt);
> String sparqlStr = queryBldr.toString();
>  
>  
> but I don’t see an obvious way to get the prefixes associated with the Query. 
>  Is there a way to retrieve them in the api?
>  
> Thanks,
> Jeff
> 
> -- 
> 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

Reply via email to