The easiest approach is to import XSD for your XML files which creates OWL ontology, then XML files that correspond to it can be auto-transformed to RDF. If you don’t have XSD, there tools which will generate one for you from XML files. It may be possible to annotate the ontology you have already created so it can be used by the auto-conversion. You will need to experiment with this - convert some XSD, observe how annotations look like, etc.
In the absence of this, you can convert any XML into RDF using the generic Semantic XML approach and then write rules to transform it according to your ontology. For more details, read the two pages in TBC Help under: TopBraid Composer > Importing Data Sources > Import external information > Importing XML and XSD. > On Nov 23, 2017, at 3:55 AM, Glykeria Alvanou <glyke...@gmail.com> wrote: > > Hi, > > I have created an ontology (.ttl) manually -without using any tool- and it's > based on XML representation. What I want to do is to import many XML files > and create individuals which correspond to the existing ontology. How can I > achieved the mapping between the XML files and the ontology using TopBraid? > > Note that probably the ontology as it is now doesn't correspond 100% to the > XML files e.g. not all the XML elements match the ontology classes. > > Any tip would be helpful. > > Thank you, > Glykeria > > -- > 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 topbraid-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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 topbraid-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.