views:

203

answers:

2

I have an XML which uses the XPDL standard (which has an XML schema). What I'm trying to do now is to convert its content to RDF format (serialized in XML), in terms of a certain ontology. Clearly, there needs to be some sort of mapping here. I would like to do this using PHP. The thing is, I have no idea how to do this best. I know how to read an XML file, but how would the mappings occur? What would be a good approach?

+1  A: 

I would recommend using XSLT. When transforming one flavor of XML into another it is often the best and easiest solution.

The mappings would occur in template matches for the XPDL elements that generate the RDF Description elements.

Mads Hansen
A: 

Hi, You can find a generic XML to RDF converter that works without an ontology at

http://www.gac-grid.org/project-products/Software/XML2RDF.html (or sourceforge.net/projects/xmltordf/).

Maybe this can solve your problem, too.

Frank