We have a requirement in which we need to convert a given rdf file into a specific xml file. So we have three inputs RDFS file, RDF file and XSD file. With these we need to create XML file (which should conform to the XSD) having the data of the RDF file. The RDF schema contains simple, complex, relation entities. The relations defined in the RDF are different from the relations defined in the XSD.
We see couple of ways of implementing the same:
- Create an XSLT defining the logic for converting the RDF file to XML file.
- Build a custom C# app. for doing the same (using RDF libraries like LinqToRDF etc.)
Please guide regarding which option would be better and any pointers for the same.
Regards,