The Artima Developer Community
Sponsored Link

Java Community News
XQuery: Hype or the Next Big Thing?

2 replies on 1 page. Most recent reply: Mar 11, 2006 12:36 PM by Jules Jacobs

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 2 replies on 1 page
Frank Sommers

Posts: 2642
Nickname: fsommers
Registered: Jan, 2002

XQuery: Hype or the Next Big Thing? Posted: Mar 10, 2006 8:17 AM
Reply to this message Reply
Summary
In a recent IDN interview, Jason Hunter makes a few bold claims about XQuery, the XML query language. While many efforts at query languages have emerged in recent years, few achieved the ubiquity of SQL and free-text search. Will XQuery fare better?
Advertisement

Yesterday we posted here about Domain-Specific Languages (DSLs), and no DSL is more popular than SQL, the Standard Query Language. Indeed, many developers prefer relational databases to alternative data stores because relational databases are optimized to execute SQL queries over the data they manage.

While there have been many alternative approaches to database management, such as object-oriented (OO) databases, content repositories, and hierarchical databases, few achieved the wide adoption of relational databases. Some of these non-relational databases are easier to develop with than with their relational brethren. For instance, using an OO database, there is no object-to-relational mapping issue to deal with: you just save your object graph as it exists in memory.

The problem with these alternatives, however, appears the other way around, in getting data out of the database. Although all these alternatives sport their own query languages, few of them support rich SQL query access to the data.

XQuery claims to do for XML what SQL has done for relational data. And XQuery is already widely supported, since the major database vendors now provide XQuery interfaces with their products. Will XQuery match SQL's popularity, or will it be just another query language used in niche applications? Jason Hunter, of servlets, JDOM, and the Apache Software Foundation's fame, seems to think the former:

Imagine that you could search all the books on your wall for examples of how to use the ‘Shift’ function in Perl." Hunter then suggests, “With Google you can get results that say ‘Here are some results with the word shift and the word Perl is near it. Is that good enough?’ Well, frankly, that isn’t good enough, so you want some way to get more intelligent results. And that’s what XQuery can do.

[...] The market for XQuery-empowered content sites is only just beginning [...] All sorts of publishers, government agencies and research firms are just waking up to the possibilities and power of XQuery, and that is also making this a lot of fun.

Do you agree with Jason's comments? Have you used XQuery in your applications?


robert young

Posts: 361
Nickname: funbunny
Registered: Sep, 2003

Re: XQuery: Hype or the Next Big Thing? Posted: Mar 10, 2006 5:43 PM
Reply to this message Reply
i suppose if folks think that regressing to 1964 (the year IMS was released) is a good thing to do, then i would consider they're doing that a competitive advantage to those of us who don't.

while it is true that RDBMS vendors are blowing in the xml wind, it is also true that they are strengthening the R part of their databases. DB2 for the mainframe has recently gotten the functionality previously available for LUW, MySql now has a DB2 compatible stored procedure language, and sqlserver 2005 adds MVCC support (among other things; sqlserver may have finally grown up).

coders don't generally understand data. they still have the view that COBOLers had in 1960. shame on them.

Jules Jacobs

Posts: 119
Nickname: jules2
Registered: Mar, 2006

Re: XQuery: Hype or the Next Big Thing? Posted: Mar 11, 2006 12:36 PM
Reply to this message Reply
It depends. Maybe if a lot of people are providing data in a standardized xml format, this could be very helpful. DMOZ, for example, has its entire database in rdf, available online. If we can search that data with xquery, that would be cool. I have never used xquery, but it looks pretty verbose. It would be better if it were more like regex: quich throwaway queries for xml, but more powerful than xpath.

I don't think that this is going to replace relational databases though.

Flat View: This topic has 2 replies on 1 page
Topic: XQuery: Hype or the Next Big Thing? Previous Topic   Next Topic Topic: Geir Magnusson on Geronimo, Harmony, Open Source

Sponsored Links



Google
  Web Artima.com   

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