[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

"XML Schema specifies just syntax" versus "XML Schema specifiessemantics

  • From: "Costello, Roger L." <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Wed, 9 Nov 2011 19:09:03 +0000

"XML Schema specifies just syntax" versus "XML Schema specifiessemantics
Hi Folks,

Sally says, "XML Schema specifies just syntax."

John says, "XML Schema specifies semantics."

Who is correct?

First, we need to be clear on what is meant by "semantics."

I will define it as such: 

    The semantics of a thing is its relationships to other things
    and its properties. 

In this discussion I focus exclusively on "relationships." 

Here are examples of expressing relationships:

    - Book is an Object.
    - Person is an Object.
    - author is a property.
    - title is a property.
    - name is a property.

The examples show a "kind-of" relationship between Book/Person to Object, and author/title/name to property.

"kind-of" is only one type of relationship. There are many others, such as "same-as."

So the question resolves, at least in part, to this:

      Does XML Schema allow relationships to be expressed?

With XML Schema you have the ability to create a complexType and then do derive-by-restriction or derive-by-extension on it.  For example, you may create a Book complexType that extends a Publishing complexType. Isn't that an example of XML Schemas expressing a relationship? If yes, then isn't it demonstrating that "XML Schema specifies semantics"?

No, not really.

The derive-by-extension and derive-by-restriction capability specifies a complexType by reusing another complexType. That is quite a different thing from expressing a relationship for the purpose of informing.

Here's what Michael Kay said regarding the use of derive-by-restriction and derive-by-extension to specify semantics:

    I think it's probably a mistake to try and use the concept 
    of 'type' to represent an ontological distinction ...

Even if we grant that derive-by-restriction and derive-by-extension specifies a legitimate ontological relationship, it can only specify one type of relationship (namely, subclass). Typically, a much more varied set of relationships is needed to fully inform.

Here's what Eliot Kimber said:

    There is no sense in which they [XML Schemas] can be 
     anything more than a very weak reflection of some deeper 
    ontology.

Conclusion: XML Schemas specifies syntax only.

Comments?

/Roger


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.