How would you do, to generate the XML Schema corresponding to a RDFS/XML definition ?
Indeed, in the RDFS definition you find Class definitions (e.g <Class rdf:ID="Product">),
that translates to RDF/XML entries (like <Product> ... </Product>).
The RDF/XML document must have his own XML Schema.
I'd like to handle RDF/XML documents with regular XML technologies (like XLST for instance)
instead of relying on RDF-specific parser, so I need some way to generate this XML Schema.
I haven't found any tool that would do generate the XML Schema for me,
or is there something I missed ?
Thanks for your help !
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
1 reply Latest Post - 2009-12-31T16:01:03Z by robertc
Pinned topic how to generate XML Schema from RDF(S)/XML ?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2009-12-31T16:01:03Z at 2009-12-31T16:01:03Z by robertc
robertc 120000M3T441 PostsACCEPTED ANSWER
Re: how to generate XML Schema from RDF(S)/XML ?2009-12-31T16:01:03Z in response to Eric73000Hi Eric73000.
I don't think you've missed anything, I had a google around myself and didn't turn up anything promising.
Although it's possible to use an XML Schema to check that something is valid RDF, it doesn't seem likely to me that there are any tools to automatically generate a schema to validate the contents of that RDF - because if it was, there wouldn't be much need for RDFS in the first place.
You may be able to hand code some XSL for your specific RDF, and I may be completely wrong above, but I suspect you're going to have to bite the bullet and use an RDF specific parser or library.