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

Re: A Systematic Approach to using Simple XML Vocabularies to

  • To: "Roger L. Costello" <costello@m...>
  • Subject: Re: A Systematic Approach to using Simple XML Vocabularies to Implement Large (Complex) Systems
  • From: Peter Hunsberger <peter.hunsberger@g...>
  • Date: Wed, 15 Dec 2004 09:47:56 -0600
  • Cc: xml-dev@l...
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=MIjWwnS8CNfSoWtS0y4KIQb2w9MaocI5J7d5O745NGYqlUKu7QuQK361by2y8UTvJDCT0wT9M2uWedX1bxv9Cav4bnTYULtnzqb2q82JvOk7lOroFHwdNrFJMTrIHJdTsIY+eJE33eOJV1APx7C82klsU8a/MObu1QXwMhcLUPU=
  • In-reply-to: <200412142117.iBELH7E02715@s...>
  • References: <200412142117.iBELH7E02715@s...>
  • Reply-to: Peter Hunsberger <peter.hunsberger@g...>

xml vocabulary business model strategy
On Tue, 14 Dec 2004 16:16:56 -0500, Roger L. Costello
<costello@m...> wrote:
> Note: This is a continuation of the thread:
> 
>   XML Vocabularies for Large Systems - 3 Philosophically Different
> Approaches
> 
> I have changed the title to reflect the narrowed focus.
> 
> GOAL
> 
> My goal is for us (the xml-dev group) to collectively define a systematic
> approach to using simple XML vocabularies to implement large (complex)
> systems.
> 
> Yesterday Len and Peter outlined two strategies.  I would like to flesh out
> their ideas.

<snip>some discussion on what Len's approach might look like</snip>

> 
> THE PETER HUNSBERGER APPROACH
> 
> In the above Invoice example tags that are specific to postal addresses and
> books were used.  A disadvantage is that many domain-specific simple
> vocabularies must be created.
> 
> Peter's approach is to provide a "generic set of tags", coupled with a rich
> set of ways to relate the generic tags.
> 
> Below I have attempted to define the Invoice using generic tags coupled with
> "relationship tags".  Obviously I don't know what I am doing.  Peter, would
> you fix this please?
> 
> <Collection id="RLC">
>    <Object>Roger L. Costello</Object>
>    <Object>38 Boylston St.</Object>
>    <Object>Boston</Object>
>    <Object>MA</Object>
>    <Object>01320</Object>
> </Collection>
> 
> <Collection id="Bach">
>    <Object>Illusions</Object>
>    <Object>Richard Bach</Object>
>    <Object>1977</Object>
>    <Object>0-440-34319-4</Object>
>    <Object>Dell Publishing Co.</Object>
> </Collection>
> 
> <Collection>
>   <Object href="RLC"/>
>   <Relation>Purchased By</Relation>
>   <Object href="Bach">
> </Collection>

We actulaly have a base model that sort of looks like this, many more
attributes but you have the basic idea.  However, before commenting on
this let me make a couple of observations:

1) if you're building a large complex system it has to be layered in
order to achieve scalability in design, performance, maintenance, etc.
 Each layer has to be as loosely coupled to the other as possible but
each has to trust the other to do it's job properly.  There can't be a
single repository of all business knowledge if you have layered system
even if all layers use the same metadata.  (Eg, the front end has one
understanding what "address" means and the back end another.)

2) For such a system you have to be careful to separate the concerns
of external data exchange from internal data exchange even if you are
using the same technologies for both.  XML provides a wonderful way to
isolate the layers of a system, but if for example, you attempt Schema
validation at each layer you're going to have a non-performant system.
 Again, you have to trust each layer to do it's job.

Given this, the model:

<collection title="Address" type="address">
 <object title="Line 1" type="addr"/>
 <object title="Line 2" type="addr"/>
 <object title="City" type="city"/>

may have uses as an internal abstraction, but be less useful for
external exchange.  We have a master model sort of like this which
everyone understands and forms a basis for modelling and generic user
interfaces.

Actual instance XML looks more like:

<address title="Address" type="collection">
 <addr1 title="Line 1" type="String"/>
 <addr2 title="Line 2" type="String"/>
 <city title="City" type="String"/>

At this point there's a mapping between the two versions but the
second version carries some extra metadata that might otherwise be
coded in a Schema.  For internal exchange purposes this means we don't
need to transport the Schema (and the instance) between layers.  We
don't generate a Schema unless the instance data is travelling
externally.

Thus, if I was to try and summarize our approach to this point in the thread:

1) Give the users a simple model so that they can easily experiment
with understanding the semantics of the business domain:

Use a very simple model as the basis for modelling more complex
instances.  Collection/object/relationship is about as generic as it
gets.  However, don't expect people to use RDF, don't force complex
semantics (or syntax!) on them, enable generic modelling tools at this
level.

2)  Use the emergent semantics as internal metadata:

Extend the generic model with specific instances for internal exchange
purposes, but don''t make things heavy weight.  Trust the layers of
the system to throw the DateFormat exceptions etc. and to transport
such up the chain (if the validation rules were improperly specified
by the business analysts at modelling time).

3)  Commit to a specific version of semantics only as needed:

Use the heavyweight technologies when you need to travel outside the
boundaries of the system.

Remember, we're talking large complex systems here, not general
purpose generic systems.  There is a contextually relevant knowledge
domain for such systems and this knowledge is intentionally coded into
the system for performance purposes (or because that's the only way
your developers know how to do it, but that's a different issue).  As
a result, there is no need to replicate this knowledge in the XML
instances used internally within the system.

Following the above guidelines, the interesting question becomes the
xml-dev perma-thread: how generic can such complex processing systems
become?  Where are the inflection points when usage of XML Schema
(pick your favorite XML technology) tips the usability or
maintainability or performance of the system over the edge?   (More
like the mother of all Computer Science Masters thesis...)

Our system is a very generic system that models very domain specific
metadata.  It can be generically extended to any domain but for many
domains the generic modelling capabilities are not worth the
processing power required.  This is largely because these domains have
long been the focus of automation and performant domain specific
complex systems are approaching commodity availability if they are not
already there.

I'll try to find time for other comments, but they may be brief...

-- 
Peter Hunsberger

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.