Spoke at XML Prague 2012

Charles Foster spoke at XML Prague 2012.

Paper Abstract

The Java ecosystem surrounding relational databases has enjoyed years of improvements such as a standard means to invoke stored SQL code from JDBC and time-saving object relational mapping (ORM) frameworks such as Hibernate.

For Java programmers working with XQuery and XML databases, there is the XQuery API for Java (XQJ); however it lacks the means to invoke stored XQuery code and currently provides no answer to the very successful ORM paradigm.

This paper introduces a novel, RPC style approach to calling XQuery from Java. Through the use of Java reflection, Java programmers are now able to invoke XQuery functions as if they were regular Java methods, with ease.

As for parameters and return types of both Java methods and XQuery functions, Java data types are mapped to XDM data types according to the rules described in the XQJ specification. Additionally, POJOs are mapped to XML which may save programmers a great deal of time, just as ORM technologies have done for SQL.

This paper proposes extensions to the XQJ APIs as well as discussing some initial implementations, namely MarkLogic, eXist and Sedna XQJ APIs.

Charles Foster speaking at XML Prague 2012