W3C home > Mailing lists > Public > www-webont-wg@w3.org > March 2002

LANG,GUIDE: Using XQuery types to specify XML valued datatype properties

From: Jonathan Borden <jonathan@openhealth.org>
Date: Mon, 11 Mar 2002 20:43:32 -0500
Message-ID: <05b901c1c967$52a9aab0$0a2e249b@nemc.org>
To: "WebOnt WG" <www-webont-wg@w3.org>

I am trying to describe the property "person.name" which has
rdfs:range="#PersonName" in order to model the ASTM E2182 XML Clinical
Document standard ... the ontology I am trying to develop is at
http://www.openhealth.org/ASTM/E31.28-model.daml  (see <Class

I want to say that a "PersonName" consists of an ordered sequence of name
parts, each of which is a string. The XQuery formal type description:

type PersonName =
    element person.name {
            (element family{text} |
             element given{text} |
             element middle{text} |
             element prefix{text} |
             element suffix{text} |
             element delimiter{text}

describes an XML structure:


I am stuck on how to do this in DAML. It seems that I want to describe
something that has rdf:parseType="daml:collection" and each of whose
elements are <oneOf> ... </oneOf>.

On the other hand, if we were to incorporate the XQuery formal language,
this would be easy:

<Property rdf:ID="person.name">
        <rdfs:range>element person.name{(element family{text}|

alternatively using XML Schema named types:

        <rdfs:range rdf:resource="myschema:person.name">

alternatively using XML Schema inline

It seems beneficial to be able to describe these sorts of restrictions
directly in OWL. Am I way off base here?

Note: the difference between XQuery types and XML Schema types is that:

1) XQuery types have a compact (non-XML) description
2) XQuery types are formally described
3) XML Schema types

Received on Monday, 11 March 2002 20:46:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:56:42 UTC