If I run "exercise 6" from Ensemble, a dialog comes up for the user to
enter the country name. I'd like to display the resulting capital city
in a message dialog. I looked through the SPARQLMotion Functions and
Modules library but didn't see anything. How could I do this?

On Jul 6, 3:08 pm, Barb <[email protected]> wrote:
> That did it ... thanks much !
>
> On Jul 6, 1:54 pm, Scott Henninger <[email protected]> wrote:
>
>
>
> > Barbara;  For Composer, to create a Resource menu item, you will need
> > to pass the selected resource to the SPIN function.  This will
> > automatically add the function to the Resource menu item, even if you
> > don't need to perform operations on the selected resource.
>
> > To do this, go to the SPIN function you are working with.  Add a new
> > spin:constraint from a SPIN template.  Use smlSelectedResourceArgument
> > template, enter sml:selectedResource for the predicate, and
> > rdfs:Resource for the valueType.  The script will be executed when
> > chosen from Composer's Resource menu.
>
> > There isn't a Resource menu in Ensemble.  But you can add SPARQLMotion
> > scripts using the same mechanism.  They will appear in the
> > SPARQLMotion button when a resource is chosen.
>
> > -- Scott
>
> > On Jul 6, 12:09 pm, Barb <[email protected]> wrote:
>
> > > I'm working on Exercise 6 in section 5 of the SPARQLMotion tutorial
> > > (version 2.0.1). I have worked through the steps and things seem to be
> > > working correctly.I can successfully run the script via the Debug
> > > function, am prompted to enter a country and can see it's capital in
> > > the console view. I assumed that since the script has been registered
> > > in Composer's workspace and is running error free its name should be
> > > appearing in the Resource dropdown as well as in Ensemble ... it's not
> > > appearing in either place. Obviously I've missed something .. thanks
> > > for any help.  Barb- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
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-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to