i want to convert RDF file to XML.
example :
aml:length aml:hasDataType "xs:double" ; aml:hasValue "35"^^xsd:double ; rdf:type aml:Attribute ; schema:name "length" . i want this to be transformed in to XML :
<Attribute Name="length" DataType="xs:double"> <Value>35</Value> </Attribute> i have the ontology file which i can use to describe while reading the rdf and then use it to construct the RDF.
MY question is what is the best approach to convert to XML. i am using apache jena to process the RDF. So my RDF is available in every format.
1- Use XML stylesheet to convert into XML.
2- Read the rdf triple by triple , do describe/ask query on ontology and then try to construct XML tags.
Thankyou for help.
No comments:
Post a Comment