Paul; Bob pointed out that I mis-spoke on this part: > If you want the data output in > SPARQL result form, then there isn't a direct way to do this.
In fact there is a direct way to do this using a sml:SerializeSPARQLResults module followed by a sml:ExportToTextFile module. That seems important. Thanks Bob! Holger's advice on query efficiency can address the issue of scripts running longer seems to be useful as well, although the phrase "...using inferencing which takes a lot of time..." when talking about OWL is fairly tautological. Paul, between the two of these, would that get you to a more comfortable point? -- Scott On Oct 31, 6:15 pm, Holger Knublauch <[email protected]> wrote: > On Oct 31, 2011, at 10:59 PM, PaulZH wrote: > > > TBCME 3.5.2.v20110828-2200R on Mac OSX 10.7.2 > > > I do a SPARQL query using inferencing which takes a lot of time. > > I do get the wished result in the results pane of the SPARQL View. > > When I ask then to Export the results to file ... the query restarts, > > taking the same long time as previously, to finally get at the save > > as ... widget. > > > Is there no way to serialize the result one does already have to the > > file system? > > No currently this isn't possible in TBC. The issue is that the implementation > of this serialization starts with a Jena ResultSet, and those ResultSets are > already consumed to exhaustion when printed on the screen, so I need to let > it start from the beginning again. Another problem is that the SPARQL view in > TBC may not display all results, depending on the preferences. > > The best thing you can do right now is to check whether you can optimize > performance of your queries. A common mistake is that SPARQL queries are > executed from the inside to the outside, e.g. UNION, GRAPH, sub-queries etc > are executed first, without taking the variable bindings of the surrounding > blocks into account. This may cause significantly different performance > numbers. See > > > http://www.mail-archive.com/[email protected]/msg01778.html > > Holger -- 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
