Jim; Sorry, I'm using sml:replace in the wrong place. You'll want that in your ApplyConstruct to get only the constructed triple on each iteration.
But the actual question is on how variable substitution works in the target file path - and what you have should work, provided ?someVar is bound in the script. That's the most likely cause of the problem. -- Scott On May 4, 4:40 pm, Scott Henninger <[email protected]> wrote: > <There appears to be no way to append to the file, rather than > overwriting it each time (please correct me if I am wrong).> > > Have you tried sml:replace? I believe setting it to false will do the > trick. > > -- Scott > > On May 4, 4:30 pm, James A Miller <[email protected]> wrote: > > > I have added an ExportToRDFFile module inside of a iterated sub-script in > > SparqlMotion. There appears to be no way to append to the file, rather > > than overwriting it each time (please correct me if I am wrong). So, I > > have been trying to get the targetFilePath to contain the iteration > > variable, so that the filename will change each time. Should this work, > > simply by making the targetFilePath = "some/file/path/File_{?someVar}" ? > > It doesn't appear to do the variable substitution for me. Is there a way > > to do this? > > > I was initially planning to write to the file only once, at the end of the > > iterations, but I am concerned about iterating over several large inputs > > eating all of my memory. > > > (I realize that I could write to a triple store, and that may be my > > ultimate solution, but I'd rather do OWL files for now). > > > Jim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
