[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

XQuery static typing algorithms?

Jens Teubner jens.teubner at inf.ethz.ch
Mon Nov 24 13:17:12 PST 2008


  XQuery static typing algorithms?
On Mon, Nov 24, 2008 at 09:44:38AM +0100, Bas de Bakker wrote:

> Maybe you can find something useful here:
> 
> http://www-db.informatik.uni-tuebingen.de/research/pathfinder/publications
> 
> In particular the article "Subtyping For Regular Tree Types : a
> JAVA-based Implementation".

The algorithm in that Master's thesis is essentially based on the
dissertation of Martin Kempa at the University of Lübeck, Germany.  The
dissertation itself is in German ("Programmierung von XML-basierten
Anwendungen unter Berücksichtigung der Sprachbeschreibung"), but you
find some English papers authored by Martin at

    http://www.ifis.uni-luebeck.de/~ifis/public/ .

The Pathfinder XQuery compiler uses a similar algorithm internally.  It
is very fast and powerful.

However, this is an algorithm for structural subtyping.  In many
details, the behavior of this algorithm is different to what the XQuery
specs describe (and it is not always trivial to fix that).  Not sure
whether the algorithms in the TATA book have the same problems.  My
personal impression is that, if you want to be standards-compliant, the
best way to start is to literally implement all the judgments in the W3C
Formal Semantics.

Static typing is closely related to (a) XML validation and (b) type
matching (i.e., "dynamic typing").  There are two papers on the
Pathfinder publications page (XIME-P and EDBT, respectively), that talk
about these two aspects.  Both of them seem to be better aligned with
the official W3C specs than the mentioned subtyping algorithm does.

Best regards,

Jens

-- 
Jens Teubner
ETH Zurich, Systems Group
Haldeneggsteig 4 / IFW B 48.3
8092 Zurich, Switzerland

Science is what we understand well enough to explain
to a computer. Art is everything else we do.
                         -- Donald Knuth



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
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-2011 All Rights Reserved.