I built a small program that does some basic model format conversion using emftriple (former emf4sw), i.e. Ecore XMI (XML file) to RDF TTL.
I used some of the tips in the answers here, so thank you guys!
Maybe the source code can inspire you: https://github.com/frostyandy2k/model-transformer