Hello Seong,

in 3.5 it will also be possible to run UPDATE requests from that dialog. I can 
see that ASK and CONSTRUCT would also make sense. The reason why I limited this 
to SELECT was that I didn't want this dialog to be overcrowded with too many 
templates. However, I could add a switch or group them by tabs to make this 
clearer. This request has just missed the freeze for 3.5 but I will record it 
as an enhancement request for a later update.

Thanks for the suggestion

Holger


On Apr 13, 2011, at 8:03 AM, Seong Choi wrote:

> Thanks, Scott.
> Now, I understand why I couldn't see my templates from the global "Run
> SPARQL query from SPIN Template" menu item.
> I use ASK, CONSTRUCT and UPDATE (modify delete {} insert {} where {})
> queries, and I made templates for them.
> So, there is no way to use these templates in the "Run SPARQL query
> from SPIN Template" menu item now?
> Any plan for this in the future?
> 
> Best regards,
> Seong
> 
> On Apr 12, 4:12 pm, Scott Henninger <[email protected]>
> wrote:
>> When running a template from the global "Run SPARQL query from SPIN
>> Template" menu item, the only queries that can be executed are SELECT
>> queries.  Therefore, only templates using SELECT will be displayed.
>> Also if you want these queries to be usable across different models,
>> be sure the name of the model the template is defined in has a ".spin"
>> extension - e.g. kennedysSPIN.spin.rdf.  Files in the TBC/TBL
>> workspace with a .spin extension are scanned for templates that will
>> appear in the "Run SPARQL query from SPIN Template" menu item.
>> 
>> -- Scott
>> 
>> On Apr 12, 6:28 am, Seong Choi <[email protected]> wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> 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

-- 
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