W3C home > Mailing lists > Public > www-rdf-interest@w3.org > October 2004

Re: Creating XML from RDF triples?

From: Jan Algermissen <jalgermissen@topicmapping.com>
Date: Fri, 01 Oct 2004 15:39:36 +0200
Message-ID: <415D5E18.62168383@topicmapping.com>
To: "www-rdf-interest@w3.org" <www-rdf-interest@w3.org>

Hi,

I'd like to raise this question again since I think I did not get
my point accross.

What I want to do boils down to this: From a set of RDF triples I
want to create XML according to a certain DTD/schema in order to
take advantage of the particular structure for further processing
(e.g. to HTML,SVG,...).

An example would be the parts breakdown of some technical device.
Suppose I am gathering information from various sources and
integrate it into a single RDF store. In that store is all the
information of how the pieces relate together and what properties they
have (e.g. serial number, manufacturer).

I now want to present the parts breakdown in HTML, SVG and as PDF
(via XSL:FO) and I would like to have an intermediate XML format
that represents the parts tree by its XML structure. XSLT would
then simply convert the tree structure into the desired
output format.

Any given serialization function for this task would at least
need to take the desired XML schema and the identifier for the
top node (the one I want to show the breakdown for).

Of course this can be done by querying the RDF store in the desired
way, producing either an intermediate XML document (or DOM object)
or by querying and producing each output format directly.

My goal is to avoid both of the above (if possible at all) and I
wonder if anyone has worked on something similar?

Would it maybe be possible to sort the triples before applying one
of the mentioned pretty-printers? Not sure if that works, but my
hunch is that the *order* of the triples determines the XML output???

Jan
Received on Friday, 1 October 2004 13:38:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:52:09 GMT