The Artima Developer Community
Sponsored Link

Agile Buzz Forum
XML Database Applications

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
XML Database Applications Posted: Mar 28, 2006 10:53 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: XML Database Applications
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

After lunch (which I skipped to exercise) and a nap (ad-hoc, in front my laptop in the common room), we're on to XML database applications with Chris Wallace. He's starting off with some XQuery examples. The backing data is in an XML database (eXist).

Heh. He says that XQuery and eXist are the most fun he's had in software since Smalltalk, which he's used since 1983. The focus with these tools is on data more than functionality. He's doing all this to explore the design space (XML Databases and Documents). In terms of information systems, the focus here is on semi-structured data (RSS, anyone :) ). The problem space includes spreadsheets, documents, ad-hoc databases, and web integrated data.

The database he's using supports XQuery, XUpdate, XSLT, XQuery extensions, and free text searching. It supports a RESTful interface (Java servlets), SOAP, and XML-RPC. One of the example applications he's working on is a Faculty Online Database - currently the data exists across Access, SQL Databases, flat text files, spreadsheets, etc. The plan is to simplify all that and still support distributed data ownership. Code:

  • 3000 lines of XQuery
  • 3000 lines of XSLT
  • 300 of XSD (One schema)
  • 10 lines of PHP (not much web work done yet)
  • 25 pages online thus far

When storing data, trying to use "real world" identifiers as much as possible (names, room numbers, etc). Reduces the gap between the real world domain and the system, but it does have issues - you can easily hit duplicates (example: if I mention "Dave Thomas", which one do I mean? pragDave, or Bedarra Dave?).

In terms of data, decided against using attributes - just went with more elements. Integrity? Schema validation is too weak and too restrictive. NXD stores any well formed XML. Referential Integrity? RDBMS' are "eager, integrity failures have to be repaired outside the db. NXD - stores data on demand, but integrity failures can be persisted. repair is inside the db. XML ids only checked within a document, NXD stores all nodes with internal ids.

For information systems, veracity of the model is what's important.

Functionality delivered via:

  • XQuery generating HTML
  • code moving to lunction libraries and XSLT as it matures
  • XQuery for request input, sessions, selection of nodes, computation of views
  • XSLT to generate the interface
  • CSS for presentation style

Read: XML Database Applications

Topic: AJAX: What is it and Where do I learn more? Previous Topic   Next Topic Topic: Developing Software: The Eclipse Way

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use