Hi Phil, yes this will be working fine and is safe. The warning is just to make sure that users double check their script.
However, in order to avoid such name clashes in the future, I have extended the SM engine for 3.3. You will then be able to insert SPARQL expressions into each argument, and compute their values at execution time. This is similar to using sml:CloneVariable right before executing a module. We'll also have an interactive SM debugger in 3.3 that will allow you to step through executing scripts to view intermediate variable values. Regards, Holger On Feb 24, 2010, at 10:57 AM, Phil wrote: > I have a sparqlmotion script that imports XML from a web service, > converts it to RDF, performs a series of construct modules to produce > the desired triples, and then exports/saves the resulting RDF in a > graph stored in Oracle. > > The "ImportXMLFromURL" module uses a parameter called "url" to > identify the URL address for the web service. Likewise, the > ExportToOracleRDFDatabase" uses a parameter of the same name (i.e. > "url") to specify the jdbc connect string to the Oracle database. > > Because I have dev, test, and production environments, I use a > "BindBySelect" module to define the input web service and target > Oracle database based upon an input parameter provided on the command > line at the time when the sparqlmotion script is launched. One > "BindBySelect" module sets the "url" variable equal to the address of > the input web service whereas a second "BindBySelect" sets the "url" > variable equal to the jdbc connect string of the target database. > > My question is this: will TBC get confused because the "url" parameter > is set twice to different values? I have actually already coded this > and it seems to be working (i.e. the sparqlmotion script calls the > correct web service and writes to the correct Oracle model), but I > receive a warning message on the console of the TBC that says: > > Warning (Export_SARSData to oracle: Attempt to redefine variable > binding. Var "url" was jdbc:oracle:thin:@server1.am.lilly.com: > 1532:dev^^http://www.w3.org/2001/XMLSchema#string, ignoring > http://lillyapp1-d.ema.lilly.com/SARS/Services/DataRead.svc/GetData^^http://www.w3.org/2001/XMLSchema#string > > Although it works, I'm a little concerned about the warning message. > I'm hoping that it's not just a coincidence that it is working and a > subtle change in the sparqlmotion script (e.g. adding a new unrelated > Construct module) won't cause it to stop working. > > Thanks, > Phil > > -- > 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. > -- 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.
