Tim, The sml:ConvertRDFToXML SPARQLMotion module will create an individual XML file for you to save to disk. For each set of triples that you send to it to be output as a separate document, the root is specified as an instance of the class sxml:Document, which has an sxml:root property pointing to the root node.
If you want to output multiple documents, you would have to specify an instance of sxml:Document for each one, with each pointing to the root that you want for that document. You could use an IterateOverSelect to identify the nodes to use as roots then have that call a CONSTRUCT module to isolate the triples that you want to send to each file and to identify the root as described above. Bob DuCharme On Thu, Oct 10, 2013 at 10:44 PM, Tim Smith <[email protected]> wrote: > Hi, > > I have a situation where I'm extracting data from a SQL database, > converting that to an ontology that was generated from an XSD file. All of > this is done using SPARQLMotion. The resulting graph has about 500 xml > root nodes. > > My objective is to have each XML root node become the root node of an > individual file on disk. > > Assuming I have SM output that graph to a file in the workspace, I can > then open the file in TBC and use the export option to output each xml doc > to a file by specifying the root nodes one at a time. > > However, this will obviously not work when you have hundreds (thousands > when I scale this) of root nodes that must become unique files. > > How do I specify a root node when using the RDF to XML SM module just like > I can using the manual RDF to XML export functionality in TBC? > > If that's not an option, is there another way to do it? > > Thanks for your assistance, > > Tim > > -- > -- 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 > Insight, SPARQLMotion, SPARQL Web Pages and SPIN. > 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-users?hl=en > --- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- 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 Insight, SPARQLMotion, SPARQL Web Pages and SPIN. 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-users?hl=en --- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
