1 / 12

Survey of XML Query Languages

Survey of XML Query Languages. Josh Spiegel. What is an XML Query Language?. Roughly like SQL but for XML instead of relational data. . <employees> <employee id=“1”> <name> John Coltrane </name> <salary> 152156 </salary> </employee> <employee id=“2”> <name> Maceo Parker </name>

kory
Download Presentation

Survey of XML Query Languages

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Survey of XML Query Languages Josh Spiegel

  2. What is an XML Query Language? Roughly like SQL but for XML instead of relational data. <employees> <employee id=“1”> <name>John Coltrane</name> <salary>152156</salary> </employee> <employee id=“2”> <name>Maceo Parker</name> <salary>82654</salary> </employee> <employee id=“3”> <name>Josh Spiegel</name> <salary>35250</salary> </employee> </employees> I want all the employees that make more than $50,000.

  3. The Languages Chances are, if you ever end up using an XML query language, you will use XQuery. XML-QL The High Bit XQuery Lorel Quilt SQL/XML • Almost a W3C recommendation • Already the “de facto” standard • There are many implementations (ANSI/ISO) XPath CXQuery XML-GL XSL XQL Active XQuery

  4. Comparative Analysis Comparative Analysis of Five XML Query Languagesby Angela Bonifati and Stefano CeriSIGMOD Record 2000 • 27 Features an XML Query Language should have • Uses the features to compare 5 languages • Lorel • XML-QL • XML-GL • XSL • XQL • ADDED: XQuery

  5. Expectations We expect XQuery to do better than the other 5 languages. The other languages are roughly grandparents of XQuery. XQuery is the “de facto” standard. XQuery will soon be a W3C recommendation.

  6. XQuery could have done better • Where it did well • Integration of XML Schema • Where it needs improvement • Insert, update, delete • Full support for XPointer and XLink • XQuery working group indicates these features will be added in the future. • Implementations support features not in the language specification.

  7. Integration of XML Schema • XML Schema / DTDdefine the structure, content and semantics of XML documents e.g. xsd:integer • XQuery will never require a XML Schema • When a schema is available, more static checks are possible

  8. Integration of XML Schema <employees> <employee id=“1”> <name>John Coltrane</name> <salary>152156</salary> </employee> <employee id=“2”> <name>Maceo Parker</name> <salary>82654</salary> </employee> <employee id=“3”> <name>Josh Spiegel</name> <salary>peanuts</salary> </employee> </employees> Query: What is the average salary?

  9. Integration of XML Schema <employees> <employee id=“1”> <name>John Coltrane</name> <salary>152156</salary> </employee> <employee id=“2”> <name>Maceo Parker</name> <salary>82654</salary> </employee> <employee id=“3”> <name>Josh Spiegel</name> <salary>peanuts</salary> </employee> </employees> Query: What is the average salary?

  10. THE END

More Related