Dashboards with XQuery

picture1.jpg

IBM Developerworks today has an article on "Making Dashboards with XQuery".

It uses eXist and provides a nice example of how to access external website data to create a mashup in XQuery. Source code is available as a starting point for your own experiments, though it is not optimized for speed in any way. Note: you may want to test this with eXist trunk, not 1.2.5 (processing in-memory fragments works much faster with trunk).

P.S.: also check Chris Wallace's article on "Dashboards and Widgets in XQuery"

eXist 1.2.5 Released

We are happy to announce that eXist 1.2.5 is now available for download. Like all releases in the 1.2.x series, version 1.2.5 is a bug fix and stability release. It only contains hand-selected changes, which have been tested in production. Updating is recommended.

The 1.2.5 release addresses a number of major problems and deficiencies. These include, among other things:

  • attribute values larger than 4K could lead to index failures
  • concurrency issues/access conflicts caused queries to fail unpredictably and sometimes damaged the db
  • xmlrpc interface was responsible for memory issues and limited parallel connections; major update of the xmlrpc libs and interfaces
  • bugs in crash recovery; improved shutdown/startup process to avoid unnecessary, sometimes fatal recovery runs
  • new web interface for monitoring queries/running operations
  • updated SOAP libraries to fix memory issues

We would now like to finalize 1.3, which will be based on the current SVN trunk. However, I will continue to maintain the 1.2.x branch, so it is possible that there will be a 1.2.6 release in addition to 1.3.

Special thanks to Dannes who spent a weekend with me (Wolfgang) to get the release ready.

reCaptcha in XQuery

Ever fancied adding a Captcha to your eXist Web Application?

reCaptcha makes it very easy to add a Captcha system to any application and by using reCaptcha you will be supporting a good cause - digitizing books.

With reCaptcha and a little bit of XQuery we can easily setup a working Captcha system. I have written a reCaptcha XQuery module that you anyone may use...

Read article ...

Keyword Search Tutorial Featuring KWIC Display

Joe Wicentowski has added another excellent tutorial to the XQuery wikibook. It shows how to develop a keyword search on multiple document types and how to display search results with highlighted keywords in context (KWIC).

In particular the KWIC display should be interesting. It is based on XQuery code originally developed for the documentation search facility on the main eXist page and the wiki (see "Quick Search" box to the right). Contrary to earlier solutions, we no longer need complicated callback functions to extract the matches with surrounding text. Instead, all the processing is done in XQuery. This became possible thanks to recent improvements in the query engine (that's why you need an eXist version build from SVN).

Joe's tutorial guides you through a complete example. The XQuery wikibook is a great resource for XQuery in general. Don't miss it.

Introducing XQueryURLRewrite

There have been some major changes to the general setup of eXist's web application in the current SVN trunk. Access to the documentation and most of the XQuery examples is no longer going through Cocoon. The Cocoon pipelines have been replaced by a single controller XQuery, which handles all the request routing and output transformations. This doesn't mean we are dropping support for Cocoon. We just think that separating the Cocoon-dependant features from the eXist-only stuff will help new users to get an easier start with eXist. Advanced users can always check out the eXist-as-Cocoon-block distribution to have all features available.

Read article ...