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

RE: Are people really using Identity constraints specified in

  • To: "'Roger L. Costello'" <costello@m...>, xml-dev@l...
  • Subject: RE: Are people really using Identity constraints specified in XML schema?
  • From: "Bullard, Claude L (Len)" <len.bullard@i...>
  • Date: Thu, 19 Aug 2004 12:22:54 -0500

restriction of business
John Sowa posted the following to the CG list. 
Not surprisingly, I disagree with the conclusion 
in this situation, but I do agree with the 
rest of the text:

"The basic point of the paper is the following
restriction:  "all quantifications are bounded
by some variables".  This kind of restriction
is very common for most practical applications.

For database queries and constraints, an even
stronger restriction holds:  every quantifier is
bounded by a *constant*, namely the cardinality
(number of rows) of the corresponding table.

In natural languages, it is extremely rare to
find any sentence with an unrestricted quantifier.
Even when the word "everything" is used, some
implicit domain is almost always intended.
Furthermore, those domains are almost always
finite.  (The major exceptions are books, papers,
and courses on mathematics.)

In logic, a noun phrase such as "every employee"
maps to a typed, sorted, or restricted quantifier
of the form (Ax:Employee).  Those quantifiers
usually have a constant upper bound, although
that bound may be very large for the domains
of people, bacteria, or web pages.

This means that for most practical applications,
theories stated in first-order logic with restricted
quantifiers are decidable.  However, the domains
might be so large that even a polynomial amount
of time is beyond the age of the universe.

Bottom line:  The most important issue is
scalability, not decidability."


From: Roger L. Costello [mailto:costello@m...]

Hi Folks,

Here are some thoughts:

1. Constraints on data are not equal to business rules.

2. Business rules change.  Constraints on data do not.

3. Constraints on data should be specified in XML Schemas.  Business rules
should not.  Business rules should be specified in higher level application
code.

Example: 

A company has employees.  The current company policy on the minimum age
requirement is 16.  Should the company create an XML Schema that constrains
<minimum-age> to 16?  Or, should the company create an XML Schema that
simply constrains <minimum-age> to an integer, and let applications higher
up provide further constraints?  

Answers: 

- Mandating that the minimum age of an employee be 16 is a business rule.
It is highly likely to change over time.  

- The value of the <minimum-age> must be an integer.  This is a constraint
on the data.  It will not change over time.

Therefore, an XML Schema should simply constrain <minimum-age> to be an
integer.  Higher level applications should implement the business rule that
<minimum-age> be further constrained to 16.

Comments?  

How would you characterize the distinction between "business rules" and
"constraints on data"?  /Roger

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.