Hi Pablo, I'm a bit confused. What are you asking for? AQL does not have an object model that has been published, it has a grammar, so an XML representation of AQL would at best be AQL in XML syntax. If that is what you're after, I can't see how that could help? The point of AQL is sending the same query to multiple implementations, so its use means that you'd have to deal with an AQL parser.
If you want to develop an XML syntax for AQL, you'd still have to use an AQL parser to import AQL as you've described in your OP. It sounds like you're trying to develop a mapping from AQL to your internal query execution, which is fine, but the XML syntax for AQL sounds redundant in that scenario. Care to explain a bit more? Regards Seref On Tue, Dec 16, 2014 at 5:34 PM, pablo pazos <pazospablo at hotmail.com> wrote: > > Hi Bert, > > I don't have any XML :D My question is about ADL, not it's > interpretation/execution, that is already handled by the current querying > component of the EHRServer. > > What I'm curious about is if someone has a transformation between AQL > syntax and XML, in other words, a XML expression of an AQL query. > > An AQL query can be instantiated and executed over any database, while > XQuery is already an instance of a query (because it uses XPaths not ADL > paths) and can be executed only in XML databases (and relational that > support XML columns). The EHRServer database is relational, without any XML > columns. > > Also, what I need is a bidirectional transformation AQL <-> XML. I guess > it would be difficult to generate AQL from an XQuery expression. > > -- > Kind regards, > Eng. Pablo Pazos Guti?rrez > http://cabolabs.com <http://cabolabs.com/es/home> > <http://twitter.com/ppazos> > > ------------------------------ > Date: Tue, 16 Dec 2014 07:34:13 +0100 > Subject: Re: Does anyone implemented a transformation between AQL and XML? > From: bert.verhees at rosa.nl > To: openehr-technical at lists.openehr.org > > > Depending on how your XML is constructed, it is very easy to convert AQL > to XQuery, or ADL-path to XPath. > > Bert > > Op dinsdag 16 december 2014 heeft pablo pazos <pazospablo at hotmail.com> > het volgende geschreven: > > Just curious :) > > I'm adding version control features to EHRServer ( > https://github.com/ppazos/cabolabs-ehrserver) and I want to add some kind > of AQL support in the future. Right now we have an internal querying model > that abstracts from the physical database and allows the creation of > queries for openEHR data from a UI. > My idea is to have some kind of transformation between the EHRServer query > model and AQL, and instead of struggle with AQL parsers I would like to do > some XML transformations to import and export AQL (I do not need to > actually execute AQL, the execution of the internal query model is working > ok). > > Comments and ideas are very welcome! > > -- > Kind regards, > Eng. Pablo Pazos Guti?rrez > http://cabolabs.com <http://cabolabs.com/es/home> > <http://twitter.com/ppazos> > > > > -- > > *This e-mail message is intended exclusively for the addressee(s). Please > inform us immediately if you are not the addressee.* > > > _______________________________________________ openEHR-technical mailing > list openEHR-technical at lists.openehr.org > http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org > > _______________________________________________ > openEHR-technical mailing list > openEHR-technical at lists.openehr.org > > http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openehr.org/pipermail/openehr-technical_lists.openehr.org/attachments/20141216/3c62e0a8/attachment.html>

