Latest news on Xquery standards: XQuery is gaining popularity. It has been used for many web applications around the world since its release. It is replacing proprietary middleware languages, in particular those for disclosing (XML) databases. The core standard is designed for querying of large collections of XML only, but several additional standards are in progress to get more functionality. Other additions add to the strength and maturity of XQuery as a programming language itself. Learn more? Read the presentation by Geert Josten, one of our Senior Content Engineers, presented last week at XML Holland in the Hardcore XML track.
3. 3
about XQuery
“XQuery is replacing proprietary middleware
languages and Web Application
development languages.”
11 november 2010 Hardcore XML - XQuery
13. 13
XQuery Data Definition Facility
Presented at XMLPrague 2010
28msec and ETH Zürich
Static declaration:
collections, indexes and constraints
Functions:
Updating collections
Probing indexes
One implementation?
Zorba / Sausalito
11 november 2010 Hardcore XML - XQuery
14. 14
Update (PUL) compositions
Presented at XMLPrague 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
25. 25
XQuery and XPath Full Text 1.0 example
for $b in /books/book
where $b/title
containstext "improving“ftand "usability“
ordereddistanceat most 2 wordsat start
return
$b
11 november 2010 Hardcore XML - XQuery
Contains expression
Combined search
Advanced search criterium
26. 26
XQuery Data Definition Facility example
declare collection users as element()*;
declare automaticallymaintainedindexusers-by-id
on nodesxqddf: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