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
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:45:36 UTC