I know you can't do the XSD import via SPARQLMotion so I always do that manually to create the .ttl file that contains the mapping to RDF.
However, I have been able to use SPARQLMotion to import an XML file and the mapping .ttl file and feed both of them into an XML to RDF module. This automatically converts the XML into RDF. You might be able to put a tops:files in an Iterate Over Select module to grab a list of files. The only issue is that the files must be in the workspace versus just anywhere on the server if you want to do this via TBL. On Thu, Jun 20, 2013 at 1:39 PM, Scott Henninger <[email protected] > wrote: > Mike; I think you have the general idea. Repeat the process of using > the XSD importer and create a new .rdf/ttl file. > > To combine the results of multiple passes, I'd suggest creating a > aggregator model that contains nothing or just the model elements. Then > use owl:imports to merge the files generated on each pass of the XSD/XML > import. The aggregator model can be a text serialization graph, or a > connector to a back-end if the combined triples from XML imports is too > large to fit into memory. > > There isn't a way to do XSD/XML imports via SPARQLMotion, but you may want > to have a look at Semantic XML and SPINMap. Using these, you can create a > mapping from raw XML to an RDFS/OWL model. The rules generated by SPINMap > can then be placed in a SPARQLMotion script that can take other XML files > (meeting the general schema criteria) as input and place into the back-end > as needed. > > The help files in reference are: > - Semantic XML: Help > TopBraid Composer > Working with XML and Table > files > Creating, Importing, Querying, Saving XML documents with Semantic > XML > - SPINMap: Help > TopBraid Composer > Application Development Tools > > SPIN > Ontology Mapping with SPINMap > > If you are interested in that approach, we can do a quick example. > > -- Scott > > > On 6/20/2013 11:28 AM, Mikey wrote: > > Hi, > > I'm using the TBC feature where an XSD is imported into a project and > then any XML files in the project can be queried as if they were RDF. > > I exported the project to TBL and it all works fine. > > Next I want to add additional XML files to the same project. > > Is there any way to do this automatically? > > It would be great if I could just drag and drop more XML files into a > project folder and 'reindex' somehow. > > I guess what I'll have to do is open TBC, add the files and republish to > TBL. > The problem here is that the task can't be handled by an administrator. > > Mike > -- > -- 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 > [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 Ensemble, 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 Ensemble, 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.
