Hi Jeff, no, the SPIN RDF model does not store the prefixes used in the SPARQL query. Simply use those from the associated Jena Model instead.
Regards, 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
