Hi,
Are there any tools for debugging a SPARQLMotion web service?
I did ok with the tutorials, but now that I'm trying some stuff of my
own, I'm getting blank pages.
For example, I've got a little script called IterateOverSelect_2 ,
but when I go to:
Without going over the specifics of this particular script, I'm just
wondering if there's a way I can get a more useful response than just
a blank page for my web service request?
on a related note, is there a way to get a description of the required/
requested input variables for a particular script, via the web
interface?
something like an automatically generated WSDL ?
thanks
On Jul 17, 11:09 am, donundeen <donund...@gmail.com> wrote:
> Hi,
> Are there any tools for debugging a SPARQLMotion web service?
> I did ok with the tutorials, but now that I'm trying some stuff of my
> own, I'm getting blank pages.
> For example, I've got a little script called IterateOverSelect_2 ,
> but when I go to:
> Without going over the specifics of this particular script, I'm just
> wondering if there's a way I can get a more useful response than just
> a blank page for my web service request?
No, the web interface does not provide a built-in mechanism to generate web service interfaces. It would be possible to do though via another SPARQLMotion script, that takes a web service's name as input and then analyzes the script's RDF to extract instances of sml:BindWithParameter in order to return WSDL (XML) or whatever.
Do you have a specific use case in mind? It might be useful to have such a capability built-in.
donundeen wrote: > on a related note, is there a way to get a description of the required/ > requested input variables for a particular script, via the web > interface? > something like an automatically generated WSDL ?
> thanks
> On Jul 17, 11:09 am, donundeen <donund...@gmail.com> wrote: >> Hi, >> Are there any tools for debugging a SPARQLMotion web service? >> I did ok with the tutorials, but now that I'm trying some stuff of my >> own, I'm getting blank pages.
>> For example, I've got a little script called IterateOverSelect_2 , >> but when I go to:
>> Without going over the specifics of this particular script, I'm just >> wondering if there's a way I can get a more useful response than just >> a blank page for my web service request?
There is no debugging functionality beside running a script using TBC's debug button. As you know most likely you can execute a script up to any intermediate module and thus get more insights into what's happening under the hood. We have some further improvements on this ready for the next 2.6.2 release.
donundeen wrote: > Hi, > Are there any tools for debugging a SPARQLMotion web service? > I did ok with the tutorials, but now that I'm trying some stuff of my > own, I'm getting blank pages.
> For example, I've got a little script called IterateOverSelect_2 , > but when I go to:
> Without going over the specifics of this particular script, I'm just > wondering if there's a way I can get a more useful response than just > a blank page for my web service request?
I think having such a capability built-in would be a great benefit.
I have two use cases that would have immediate application.
1. I have a couple of SM scripts that import raw data and produce
triples. The raw data often comes from web downloads in different
formats. The user must select the input data for each script.
Producing an interface that allowed the user to select the data and
execute the script would allow me to easily move the capability out of
TBC into Live making my users more independent. (Plus I could stop
loading all the data... :)
2. We are building different "analysis" SM scripts. These scripts will
require input of different parameters (literals) and/or selection of
specific instances. To do this currently, I will end up 'driving' TBC
while the business user sits next to me provide the input and look at
the output. Being able to move this capability to Live will allow me to
keep the users out of TBC (the interface overwhelms them).
> users@googlegroups.com] On Behalf Of Holger Knublauch
> Sent: Friday, July 18, 2008 11:02 PM
> To: topbraid-composer-users@googlegroups.com
> Subject: [tbc-users] Re: creating web services - debugging?
> No, the web interface does not provide a built-in mechanism to
generate
> web service interfaces. It would be possible to do though via another
> SPARQLMotion script, that takes a web service's name as input and then
> analyzes the script's RDF to extract instances of
> Do you have a specific use case in mind? It might be useful to have
> such a capability built-in.
> Holger
> donundeen wrote:
> > on a related note, is there a way to get a description of the
required/
> > requested input variables for a particular script, via the web
> > interface?
> > something like an automatically generated WSDL ?
> > thanks
> > On Jul 17, 11:09 am, donundeen <donund...@gmail.com> wrote:
> >> Hi,
> >> Are there any tools for debugging a SPARQLMotion web service?
> >> I did ok with the tutorials, but now that I'm trying some stuff of
my
> >> own, I'm getting blank pages.
> >> For example, I've got a little script called IterateOverSelect_2 ,
> >> but when I go to:
> >> Without going over the specifics of this particular script, I'm
just
> >> wondering if there's a way I can get a more useful response than
just
> >> a blank page for my web service request?
another tip: when you develop SM web services, please run your TBC eclipse with the option -console switched on. This will open a console window that will contain any low-level error messages. We just discovered that sml:CreateTextFromJSP throws an exception when run as a web service. While this is fixed for the next release it might be in general still insightful to have the console showing up to monitor whether any unexpected exceptions are thrown.
Holger Knublauch wrote: > No, the web interface does not provide a built-in mechanism to generate > web service interfaces. It would be possible to do though via another > SPARQLMotion script, that takes a web service's name as input and then > analyzes the script's RDF to extract instances of sml:BindWithParameter > in order to return WSDL (XML) or whatever.
> Do you have a specific use case in mind? It might be useful to have > such a capability built-in.
> Holger
> donundeen wrote: >> on a related note, is there a way to get a description of the required/ >> requested input variables for a particular script, via the web >> interface? >> something like an automatically generated WSDL ?
>> thanks
>> On Jul 17, 11:09 am, donundeen <donund...@gmail.com> wrote: >>> Hi, >>> Are there any tools for debugging a SPARQLMotion web service? >>> I did ok with the tutorials, but now that I'm trying some stuff of my >>> own, I'm getting blank pages.
>>> For example, I've got a little script called IterateOverSelect_2 , >>> but when I go to:
>>> Without going over the specifics of this particular script, I'm just >>> wondering if there's a way I can get a more useful response than just >>> a blank page for my web service request?
Tim Smith's post raised another point; is it possible to run SM
scripts from within live?
If not, is that something that is coming? I guess I had assumed that
this was possible, but now I don't know...
On Jul 19, 1:57 pm, Holger Knublauch <hol...@topquadrant.com> wrote:
> another tip: when you develop SM web services, please run your TBC
> eclipse with the option -console switched on. This will open a console
> window that will contain any low-level error messages. We just
> discovered that sml:CreateTextFromJSP throws an exception when run as a
> web service. While this is fixed for the next release it might be in
> general still insightful to have the console showing up to monitor
> whether any unexpected exceptions are thrown.
> Thanks,
> Holger
> Holger Knublauch wrote:
> > No, the web interface does not provide a built-in mechanism to generate
> > web service interfaces. It would be possible to do though via another
> > SPARQLMotion script, that takes a web service's name as input and then
> > analyzes the script's RDF to extract instances of sml:BindWithParameter
> > in order to return WSDL (XML) or whatever.
> > Do you have a specific use case in mind? It might be useful to have
> > such a capability built-in.
> > Holger
> > donundeen wrote:
> >> on a related note, is there a way to get a description of the required/
> >> requested input variables for a particular script, via the web
> >> interface?
> >> something like an automatically generated WSDL ?
> >> thanks
> >> On Jul 17, 11:09 am, donundeen <donund...@gmail.com> wrote:
> >>> Hi,
> >>> Are there any tools for debugging a SPARQLMotion web service?
> >>> I did ok with the tutorials, but now that I'm trying some stuff of my
> >>> own, I'm getting blank pages.
> >>> For example, I've got a little script called IterateOverSelect_2 ,
> >>> but when I go to:
> >>> Without going over the specifics of this particular script, I'm just
> >>> wondering if there's a way I can get a more useful response than just
> >>> a blank page for my web service request?
Yes, it is possible to execute SPARQLMotion scripts using a TopBraid Live server. This makes it possible to build semantic web applications in which the data (and server-side behavior) is provided by SPARQLMotion scripts, i.e. no Java programming might be needed. It's also a way of publishing SM-driven Web Services, and to generate (HTML) pages. Improved support for this will be part of 2.6.2 soon.
> Tim Smith's post raised another point; is it possible to run SM > scripts from within live? > If not, is that something that is coming? I guess I had assumed that > this was possible, but now I don't know...
>> another tip: when you develop SM web services, please run your TBC >> eclipse with the option -console switched on. This will open a >> console >> window that will contain any low-level error messages. We just >> discovered that sml:CreateTextFromJSP throws an exception when run >> as a >> web service. While this is fixed for the next release it might be in >> general still insightful to have the console showing up to monitor >> whether any unexpected exceptions are thrown.
>> Thanks, >> Holger
>> Holger Knublauch wrote: >>> No, the web interface does not provide a built-in mechanism to >>> generate >>> web service interfaces. It would be possible to do though via >>> another >>> SPARQLMotion script, that takes a web service's name as input and >>> then >>> analyzes the script's RDF to extract instances of >>> sml:BindWithParameter >>> in order to return WSDL (XML) or whatever.
>>> Do you have a specific use case in mind? It might be useful to have >>> such a capability built-in.
>>> Holger
>>> donundeen wrote: >>>> on a related note, is there a way to get a description of the >>>> required/ >>>> requested input variables for a particular script, via the web >>>> interface? >>>> something like an automatically generated WSDL ?
>>>> thanks
>>>> On Jul 17, 11:09 am, donundeen <donund...@gmail.com> wrote: >>>>> Hi, >>>>> Are there any tools for debugging a SPARQLMotion web service? >>>>> I did ok with the tutorials, but now that I'm trying some stuff >>>>> of my >>>>> own, I'm getting blank pages.
>>>>> For example, I've got a little script called IterateOverSelect_2 , >>>>> but when I go to:
>>>>> Without going over the specifics of this particular script, I'm >>>>> just >>>>> wondering if there's a way I can get a more useful response than >>>>> just >>>>> a blank page for my web service request?