W3C home > Mailing lists > Public > www-rdf-interest@w3.org > August 2002

Re: xml DOM as rdf

From: Seth Russell <seth@robustai.net>
Date: Fri, 16 Aug 2002 08:20:27 -0700
Message-ID: <005601c24538$73ff6e00$657ba8c0@c1457248a.sttls1.wa.home.com>
To: "Danny Ayers" <danny666@virgilio.it>, "Jon Hanna" <jon@spin.ie>, "RDF-Interest" <www-rdf-interest@w3.org>

From: "Danny Ayers" <danny666@virgilio.it>
> >> Has anyone come up with a nice vocabulary for expressing DOM
> >> information as
> >> RDF?
> >
> >Would http://www.w3.org/2001/04/infoset cover your needs, or would there
> >any DOM information not in the infoset?
> Heh - I think I saw this when it was first posted, but had completely
> forgotten It should do nicely, thanks.

Yes, I was going to suggest this schema too.  But to convert any kind of XML
into RDF, don't you still need a mapping from each element and attribute
name in the XML document to the set of things defined by the RDF model?
I've used translatesTo in the following example:

    type infoset:Element;
    translatesTo sru:Node.
    type infoset:Attribute;
    sru:translatesTo sru:Arrow;
    sru:content rdfs:Resource.

So that the following XML:


Would end up being the following RDF:

    <bar resource="http://robustai.net/sailor/" />

This needs a lot more work, but perhaps you get the drift.  The point being
that we can extract RDF from any given XML but just describing the XML
schema in this manner.  Alternatively you could just assume that Elements
alternate between nodes and arrows as they nest and that all attributes are
arrows ... but making this explicit should give us better results.

Comments ?

Seth Russell
Received on Friday, 16 August 2002 11:21:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:37 UTC