John; The triples available in the SPARQLMotion script depend on what triples have been created at run time. There are a couple of ways to find out what triples are available at a given module in a script. The first approach, as described in the SPARQLMotion tutorial, is to choose the module where you need to apply the query. Click the run button and choose "Infer result triples (termporarily)". You can then apply the query in the SPARQL view against all triples that are defined at that point in the script.
The debugger is a step better. For a Web service, set a breakpoint in Composer and run the service. Composer will stop at the breakpoint and display a debugger that you can run queries against, inspect the current graphs, and view available variable bindings. Set the breakpoint by editing the script in Composer. Select the module you want to break on and select "Toggle Degugger..." blue dot in icon bar of script graph view. There was a recent TQ blog on using the SPARQLMotion debugger: http://topquadrantblog.blogspot.com/2010/07/how-to-use-sparqlmotion-debugger.html -- Scott On Aug 13, 10:09 am, John Perdoni <[email protected]> wrote: > Hi all, > > I have a scipt that is called via a browser , the contstruct query is > as follows > > CONSTRUCT { > ?subject ?p ?o .} > > WHERE { > ?subject coreModel:hasSource ?arg2 . > ?subject coreModel:isContentsMember true . > ?subject ?p ?o . > > which works fine, however if i change this to > > CONSTRUCT { > ?subject ?p ?o .} > > WHERE { > ?subject coreModel:hasSource ?arg2 . > ?subject rdf:type coreModel:Contents . > ?subject ?p ?o . > > it does not work via script but the query is fine using sparql query > editor in tbc, > > I think it has something to do with the fact that the instances within > the contents class are constructed with topspin but cannot seem to > narrow it down any further, Any insight as to why this happens would > be appreciated. > > Regards > > John -- 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
