Hi:
I was curious to know if any work had been attempted earlier to provide a
native CQL parser in JavaScript?
With the new support for OpenSearch media types in SRU 2.0 (see OASIS SWS
docs [1]) the central role of the browser in both generating CQL queries and
consuming SRU responses becomes ever more prominent.
(A case study in fielding a variety of media types is nature.com OpenSearch
[2] which inter alia supports JSON. A gallery of demo apps using this media
type is available here [3] and gives some idea of what can be done.)
In previous researches I have turned up JS/CC [4], a LALR(1) parser and
lexical analyzer generator for JavaScript, written in JavaScript. I don't
know if this could be useful in helping develop a native CQL parser for
JavaScript. I would investigate further but for time and skills resources
which are both wanting.
It would be truly wonderful if somebody could undertake such a work and put
CQL comprehension directly into the client.
Cheers,
Tony
[1] http://www.oasis-open.org/committees/documents.php?wg_abbrev=search-ws
[2] http://www.nature.com/opensearch/request
[3] http://nurture.nature.com/opensearch/apps
[4] http://jscc.jmksf.com/
********************************************************************************
DISCLAIMER: This e-mail is confidential and should not be used by anyone who is
not the original intended recipient. If you have received this e-mail in error
please inform the sender and delete it from your mailbox or any other storage
mechanism. Neither Macmillan Publishers Limited nor any of its agents accept
liability for any statements made which are clearly the sender's own and not
expressly made on behalf of Macmillan Publishers Limited or one of its agents.
Please note that neither Macmillan Publishers Limited nor any of its agents
accept any responsibility for viruses that may be contained in this e-mail or
its attachments and it is your responsibility to scan the e-mail and
attachments (if any). No contracts may be concluded on behalf of Macmillan
Publishers Limited or its agents by means of e-mail communication. Macmillan
Publishers Limited Registered in England and Wales with registered number 785998
Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS
********************************************************************************
|