Zaid; Not sure we have enough information to help you out quite yet, so I'll take some guesses at possible causes.
First, have you taken a look at http://www.topquadrant.com/products/SPARQLMotion.html? You may find the "Creating a Semantic Web Service in 5 Easy Steps" to be useful. This shows how to set up arguments, etc. for a Web service. You state that your script has just sml:BindLiteralVariable and sml:ConcatenateText modules. In SPARQLMotion, you need to specify what data you are operating on. The script starts with no data in it, so it would make sense that nothing happens. See the Import modules, such as sml:ImportRDFFromWorkspace. To check to see the exact triples that a module executes on, choose the module in the SPARQLMotion work space and click on the "Toggle debugger breakpoint on selected module" icon in the top icon row. It's a blue dot that will appear in the center of the module. Then run your Web service from a browser, or whatever entity call its. Go back to Composer and a breakpoint window will appear. This will tell you the current bindings of variables and provide a window that you can execute SPARQL queries on the data available in the SPARQLMotion triple pipeline at the time of the breakpoint. I'm guessing that if you did a ?s ?p ?o right now, you wouldn't get anything because the data hasn't been imported into the script ("import" as in a sml:Import module type). There's a bit more on this in the help pages at Help > Application Development Tools > SPARQLMotion Scripts (ME). I think you will find this one particularly helpful: Help > Application Development Tools > SPARQLMotion Scripts (ME) > Executing and Debugging SPARQLMotion Scripts. Hopefully that helps get you started, so let us know how it goes. -- Scott On Aug 10, 3:36 pm, Zaid Marji <zma...@gmail.com> wrote: > Hi folks, I'm trying build a webservice with TBC ME edition. when I write > the SPARQL in the sparql tab it works and returns the data I need. > > PREFIX pfx: <http://www.owl-ontologies.com/myont.owl#> > SELECT ?label > WHERE { > BIND (pfx:ParentClass AS ?test). > ?node rdfs:subClassOf ?test. > ?node rdfs:label ?label. > FILTER (lang(?label) = "en") > > } > > however when i build my SPARQLMotion script i have a "Bind Literal > Variable" connecting to a "Concatenate Text" the output variable does not > seem to be doing anything here is the SPARQL in the sml:selectQuery > > SELECT ?Label > WHERE { > ?node rdfs:subClassOf ?NodeName . > ?node rdfs:label ?label . > FILTER (lang(?label) = "en") . > > } > > I know that the input is coming through because I did the query below and > it returned the text > > SELECT ?NodeName > WHERE { > > } > > Thanks for any help. -- -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en