Thanks for your answers, guys!! Let me clarify my question. I can see instances of spin:query in the Query Library, of course. My question was about how to use spin:template for a sparql query...
As Scott said, I can define a spin:template and create an instance of the template. I select a resource, and I can create an instance of spin:constructor, spin:constraint, spin:constructor, spin:rule, and spin:query by choosing "Create from SPINtemplate...". It works completely. However, when I try the star button (Run SPARQL query from SPIN template...) in the main tool bar, I cannot see templates I made. In the template list box, there are just two templates which are spl:ListSPINRules, ui:FindViewByName. I can not run a sparql query from my own spin template, and that' the reason why I use the query library instead. I totally agree "Run SPARQL query from SPIN template..." is what I want to, please let me know why I can't see my own templates in the list of "Run SPARQL query from SPIN template..." dialog box. Thanks in advance. Best wishes, Seong And as Scott said, defining a spin:template Using a SPIN template takes two steps. The first is to define the template, specifying the spin:constraints for parameters. The second is to create an instance of the template On Apr 11, 10:03 pm, Holger Knublauch <[email protected]> wrote: > Hi Seong, > > there is a button in the main tool bar to execute any SPIN template from the > currently open model, or globally registered (in .spin. files). You can > select a template and then fill in the arguments, if any arguments have been > defined. The results are displayed in a SPARQL results view. I think this > feature is a good alternative to using the query library. > > Holger > > On Apr 12, 2011, at 2:52 AM, seong wrote: > > > > > > > > > I'm using Topbraid Composer 3.4.2 and I use the Query Library (in the > > SPARQL tab) a lot. I store some queries in the Query Library, and use > > them like templates. A query of the query library is saved as a > > spin:query in the selected resoruce. It's really good I can store > > related queries in a owl file. However since I use this function like > > a template, it will be very useful if I can use spin:templates > > directly (with arguments) for a query in the Query Editor. Are > > spin:templates designed only for spin:constraint, spin:construct,a nd > > spin:rule? > > > Thanks for your comments in advance!! > > > Best regards, > > Seong > > > -- > > 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
