SQL, XQuery, and SPARQL: What's Wrong With This Picture?

Jim Melton (Oracle, Inc. and ISO SC32 WG3)

Tuesday, July 18, 2006

2:45 PM to 4:45 PM

UC Berkeley Faculty Club
Univ. of California Berkeley
Heyns Room

Abstract

The W3C has recently published a specification for a new query language, SPARQL, designed for querying information expressed in RDF. RDF is a "framework for representing information in the Web", doing so in the form of networks of nodes, usually envisioned as collections of triples (3-tuples). RDF triples may be interconnected in many ways, forming a directed graph structure. RDF is defined in terms of an abstract data model, of which one representation is XML; SPARQL is defined to operate on the abstract data model and not on any specific physical medium.

The development of the XML Query Language, XQuery, preceded the development of SPARQL. XQuery is designed to operate on an abstract XML data model, one based on trees. The XQuery 1.0 and XPath 2.0 Data Model is the result of several years of research and development. XQuery, with its underlying Data Model, is a very powerful declarative, functional language for querying and transforming XML.

SQL is arguably the most widely used query language in the information management community. It is based on the relational model of data, a data model designed in terms of collections ("relations", "tables") of tuples ("rows") of data. SQL has been standardized for more than 20 years and has a great many implementations, many of them "industrial-strength" in terms of robustness, manageability, performance, scalability, etc.

Many, but not all, observers have expressed opinions that SPARQL is unnecessary, because its purpose can be satisfied either by XQuery (when applied to the XML form of RDF) or by SQL (when applied to the more abstract tuple structure of RDF). Do those observers have a point? Is there really a need for Yet Another Query Language just for use on RDF? Does SPARQL have unique characteristics that justify its proposal as a new standard query language?

The presentation will examine the design centers of each of these languages: SQL and the relational model of data, XQuery and its associated XML "stack", and SPARQL and its associated RDF "stack". Attendees will leave the session with a better understanding of the relative positioning and value of the three languages, particularly as they apply to the concepts of the Semantic Web.

Please RSVP to:

Site Access

There are no site access restrictions to the UCB Faculty Club.

XMDR Summer 2006 Summer Meeting Homepage

Extended Metadata Registry (XMDR) Project Homepage


This page is maintained by Frank Olken Email: olken@lbl.gov Last update: 2006-06-16 2:50 PM PDT

Valid XHTML 1.0!