XQuery NoveltiesGeert JostenHardcore XML trackXML Holland                     11 november 2010
Agenda   Original Scope   Extending Scope   Newest Extensions   Beyond Scope   Summary11 november 2010        Hardcor...
about XQuery“XQuery is replacing proprietary middleware  languages and Web Application  development languages.”11 november...
About XQuery“XQuery is replacing proprietary middleware  languages and Web Application  development languages.” Observati...
Original scope11 november 2010      Hardcore XML - XQuery   5
Origin 1999, XPath and XSLT not enough Query languages applied to XML       SQL, OQL, Lorel, ..  XML-QL, XQL          ...
Origin11 november 2010   Hardcore XML - XQuery   7
Extending scope11 november 2010       Hardcore XML - XQuery   8
Database features   Efficient storage and extraction  XQuery 1.0   Searching   Transactional updating   Data integrit...
XQuery and XPath Full Text 1.0 First extension, 2004       W3C Candidate Recommendation Search within specific nodes   ...
XQuery Update Facility 1.0 Introduced in 2006       W3C Candidate Recommendation Updating of individual nodes:       i...
Newest extensions11 november 2010        Hardcore XML - XQuery   12
XQuery Data Definition Facility Presented at XML Prague 2010       28msec and ETH Zürich Static declaration:       col...
Update compositions Presented at XML Prague 2010       ETH Zürich and Oracle Storage cheap       Keep all changes Con...
Beyond scope11 november 2010      Hardcore XML - XQuery   15
XQuery Scripting Extension 1.0 (SX) W3C Working Draft since 2008 Procedural constructs       While, variable assignment...
XQuery 1.1 W3C Working Draft since 2008 Lots of small improvements         Improved FLWOR         Try/Catch         D...
XRX and NoSQL NoSQL:       Use non-relational database       Open source or open standard (like XQuery) XRX:       Xf...
Summary11 november 2010    Hardcore XML - XQuery   19
Database features revisited Features covered:       Extraction, Searching, Updating, Data constraints,        Versioning...
Just rememberXQuery is not just for querying XML!11 november 2010    Hardcore XML - XQuery   21
Questions?11 november 2010     Hardcore XML - XQuery   22
Timeline11 november 2010   Hardcore XML - XQuery   23
XQuery and XPath Full Text 1.0  Contains expressionfor $b in /books/book         Combined searchwhere $b/title     contain...
XQuery Data Definition Facilitydeclare collection users as element()*;declare automatically maintained index users-by-id  ...
Upcoming SlideShare
Loading in …5
×

XQuery Novelties (XML Holland 2010)

679 views

Published on

W3C about XQuery:

“XQuery is replacing proprietary middleware languages and Web Application development languages.”

Just remember:

XQuery is not just for querying XML!

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
679
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

XQuery Novelties (XML Holland 2010)

  1. 1. XQuery NoveltiesGeert JostenHardcore XML trackXML Holland 11 november 2010
  2. 2. Agenda Original Scope Extending Scope Newest Extensions Beyond Scope Summary11 november 2010 Hardcore XML - XQuery 2
  3. 3. about XQuery“XQuery is replacing proprietary middleware languages and Web Application development languages.”11 november 2010 Hardcore XML - XQuery 3
  4. 4. About XQuery“XQuery is replacing proprietary middleware languages and Web Application development languages.” Observation, glue More and more XQuery applications Beyond original scope11 november 2010 Hardcore XML - XQuery 4
  5. 5. Original scope11 november 2010 Hardcore XML - XQuery 5
  6. 6. Origin 1999, XPath and XSLT not enough Query languages applied to XML  SQL, OQL, Lorel, ..  XML-QL, XQL XQuery Merged into Quilt XQuery WD in 2001 XQuery XQuery XQuery11 november 2010 Hardcore XML - XQuery 6
  7. 7. Origin11 november 2010 Hardcore XML - XQuery 7
  8. 8. Extending scope11 november 2010 Hardcore XML - XQuery 8
  9. 9. Database features Efficient storage and extraction  XQuery 1.0 Searching Transactional updating Data integrity, Triggers Simultaneous access Security, Crash-recovery Optionally: Versioning ...11 november 2010 Hardcore XML - XQuery 9
  10. 10. XQuery and XPath Full Text 1.0 First extension, 2004  W3C Candidate Recommendation Search within specific nodes  Advanced „contains‟ expressions  Options • stemming, wildcards, thesaurus, ...  Relevance ranking Lot of implementations, few compliant11 november 2010 Hardcore XML - XQuery 10
  11. 11. XQuery Update Facility 1.0 Introduced in 2006  W3C Candidate Recommendation Updating of individual nodes:  insert, delete, replace, rename, and transform No return values! Various implementations, partly compliant11 november 2010 Hardcore XML - XQuery 11
  12. 12. Newest extensions11 november 2010 Hardcore XML - XQuery 12
  13. 13. XQuery Data Definition Facility Presented at XML Prague 2010  28msec and ETH Zürich Static declaration:  collections, indexes and constraints Functions:  Updating collections  Probing indexes One implementation?  Zorba / Sausalito11 november 2010 Hardcore XML - XQuery 13
  14. 14. Update compositions Presented at XML Prague 2010  ETH Zürich and Oracle Storage cheap  Keep all changes Consolidated changes aka composition Versions integral part of tree No implementations?11 november 2010 Hardcore XML - XQuery 14
  15. 15. Beyond scope11 november 2010 Hardcore XML - XQuery 15
  16. 16. XQuery Scripting Extension 1.0 (SX) W3C Working Draft since 2008 Procedural constructs  While, variable assignment, exit, ..  Breaks functional approach Also allows multiple, incremental updates  Update *and* return results  Very useful for application logic Few implementations yet11 november 2010 Hardcore XML - XQuery 16
  17. 17. XQuery 1.1 W3C Working Draft since 2008 Lots of small improvements  Improved FLWOR  Try/Catch  Dynamic function invocation  Output declarations Mature language, design patterns Not many implementations yet11 november 2010 Hardcore XML - XQuery 17
  18. 18. XRX and NoSQL NoSQL:  Use non-relational database  Open source or open standard (like XQuery) XRX:  Xforms + Rest + Xquery  Innovative two-tier architecture  XForms front-end, XQuery back-end, REST api Breaking long-lasting traditions11 november 2010 Hardcore XML - XQuery 18
  19. 19. Summary11 november 2010 Hardcore XML - XQuery 19
  20. 20. Database features revisited Features covered:  Extraction, Searching, Updating, Data constraints, Versioning  Functional in nature Uncovered:  Storage, Security, Triggers, Crash-recovery..  Mostly technical, necessary?  More lacking?11 november 2010 Hardcore XML - XQuery 20
  21. 21. Just rememberXQuery is not just for querying XML!11 november 2010 Hardcore XML - XQuery 21
  22. 22. Questions?11 november 2010 Hardcore XML - XQuery 22
  23. 23. Timeline11 november 2010 Hardcore XML - XQuery 23
  24. 24. XQuery and XPath Full Text 1.0 Contains expressionfor $b in /books/book Combined searchwhere $b/title contains text "improving“ ftand "usability“ ordered distance at most 2 words at startreturn Advanced search criterium $b11 november 2010 Hardcore XML - XQuery 24
  25. 25. XQuery Data Definition Facilitydeclare collection users as element()*;declare automatically maintained index users-by-id on nodes xqddf:collection( xs:QName(“users") ) by @id as xs:string;xqddf:insert-nodes( xs:QName(“users"), <user id=“geert”/> );xqddf:probe-index-point( xs:QName(“users-by-id"), “geert” );11 november 2010 Hardcore XML - XQuery 25

×