I have an existing ontology and some XML files. I want to extract the data from the existing XML files and store them in (a new RDF file) RDF triples using Jena. How can I make the mapping between XML and existing ontology to extract the data? I thought of using XSLT but i think there will be a better way to do it. I've read some examples on how to Read/Write RDF files here but i cannot find any tutorials on how to perform the mapping.
Any help would be much appreciated.
Thank you