W3C home > Mailing lists > Public > www-rdf-logic@w3.org > January 2001

CONTRIB: XSL stylesheet for transforming DAML collections to stan dard RDF

From: Dickinson, Ian J <Ian_J_Dickinson@hplb.hpl.hp.com>
Date: Fri, 12 Jan 2001 16:19:39 -0000
Message-ID: <5E13A1874524D411A876006008CD059F15C44E@0-mail-1.hpl.hp.com>
To: "'www-rdf-logic@w3.org'" <www-rdf-logic@w3.org>
Folks -
Attached is an XSL stylesheet for transforming the extended RDF syntax used
in DAML collections to standard RDF using a recursive first/rest structure
as suggested in the 2000/12 DAML reference.  So far it has only been tested
using Apache Xalan 1.2.2 (http://xml.apache.org/xalan/) on simple examples,
but since the job it is doing is not very complex it should be fairly
robust.

Thanks to Dan C. for clarifications about the use of DAML collections in the
reference document. In particular, following Dan's note, the following
difference is assumed with daml+oil-ex.daml:

C:\Projects\rdf>diff daml+oil-ex.daml.orig daml+oil-ex.daml
128,131c128,133
< <daml:Disjoint rdf:parseType="daml:collection">
<   <rdfs:Class rdf:about="#Car"/>
<   <rdfs:Class rdf:about="#Person"/>
<   <rdfs:Class rdf:about="#Plant"/>
---
> <daml:Disjoint>
>   <daml:equivalentTo rdf:parseType="daml:collection">
>     <rdfs:Class rdf:about="#Car"/>
>     <rdfs:Class rdf:about="#Person"/>
>     <rdfs:Class rdf:about="#Plant"/>
>   </daml:equivalentTo>

Comments and suggestions welcome.

Cheers,
Ian

_______________________________________________________________________
Ian J. Dickinson    HP Labs, Bristol, UK    mailto:Ian_Dickinson@hp.com



Received on Friday, 12 January 2001 11:19:46 GMT

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