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

XSLT for literal mapping/conversion

From: Danny Ayers <danny666@virgilio.it>
Date: Fri, 04 Jun 2004 13:07:23 +0200
Message-ID: <40C057EB.8090509@virgilio.it>
To: www-rdf-interest@w3.org

Something that just occurred to me, here half-baked before I forget.

By way of example. Say there are two RDF/XML vocabularies, each of which 
has a literal date property. They are the same in meaning except one 
uses the RFC 822 email format, the other ISO 8601, i.e.


<r2:date>4th June 2004</r2:date>

Does the following look a feasible way of using the two together:

    <xxx:transform rdf:resource="http://example.org/r2-to-r1.xsl" />
    <rdf:value>4th June 2004</rdf:value>

Where r2-to-r1.xsl will be an XSLT transformation applied to the document:

<rdf:value xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">4th 
June 2004</rdf:value>

It should be possible to express this kind of mapping at a 
schema/ontology level, but I'm not sure how to do it without treating 
the property as an individual and breaking out of OWL DL.

There may be easier ways of doing the conversion than XSLT, but it seems 
to me that it offers simple compatibility with RDF/XML, and nicely 
reflects the GRDDL approach to RDF in XML. It's also Turing-complete ;-)

I'm not sure how this would run alongside xsd datatypes.



Received on Friday, 4 June 2004 07:08:45 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:51 UTC