W3C home > Mailing lists > Public > public-ws-semann@w3.org > June 2006

Re: why distinguish between simple and complex types? (issue 11)

From: Rama Akkiraju <akkiraju@us.ibm.com>
Date: Mon, 5 Jun 2006 17:19:32 -0400
To: Jacek Kopecky <jacek.kopecky@deri.org>
Cc: SAWSDL public list <public-ws-semann@w3.org>, public-ws-semann-request@w3.org
Message-ID: <OF5D92C2A5.E90CA6D7-ON85257184.0073B896-85257184.007525C8@us.ibm.com>

Jack, please see my response below.

public-ws-semann-request@w3.org wrote on 06/05/2006 01:54:46 PM:

>
> Hi all,
>
> below is an excerpt from Rama's analysis of the relation of
> modelReference and schemaMapping. The quoted part restricts
> modelReferences to be allowed only on schema leaf elements.
>
> On Sun, 2006-06-04 at 13:40 -0400, Rama Akkiraju wrote:
> > Definition of Simple modelReference:
> > ModelReferences that point to a single concept in the ontology via
> > one-to-one association. Simple modelReferences are specified at the
level
> > of individual (leaf) elements in an XSD.

>
> Rama, I wonder why you have the restriction?
>
> Using the common structured name example, one could have something like
> this:
>
> <element name="Name" sawsdl:modelReference="ontology#name">
>   <sequence>
>     <element name="Title" sawsdl:modelReference="ontology#title"/>
>     <element name="First" sawsdl:modelReference="ontology#firstName"/>
>     <element name="Last" sawsdl:modelReference="ontology#familyName"/>
>   </sequence>
> </element>
>
> Basically, there is a trivial one-to-one correspondence between the
> element Name and the ontology class "name". Do you think that expressing
> this correspondence with modelReference may be harmful?
>
> Best regards,
>
> Jacek
>

I think with this example, you are saying that we should be able to define
modelReferences on complex types that are not necessarily schema mappings.
I think that's fine. We can refine the definition accordingly. What I was
trying to avoid with that definition was to specify a schema mapping on a
complex type and then also specify modelReferences on individual leaf node
elements and end up in a situation where they could conflict with each
other and then we have to specify priority rules. But the example here is a
genuine case where a complex type could have a simple modelReference.
WSDL-S supported this. I just missed it in the definition. Thanks for
pointing it out.


Regards
Rama Akkiraju
Received on Monday, 5 June 2006 21:19:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:58:45 UTC