[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [search-ws] cql bnf
Well we can't allow a revised bnf to have substantive changes, it has to say the same thing as the old bnf, for version 1.2 (we can consider substantive changes for 2.0) But I think it is important that the bnf begin something like: cql-query = query [sort-spec] rather than: sortedQuery ::= prefixAssignment sortedQuery | scopedClause ['sortby' sortSpec] It is intuitively much clearer (to me) when the bnf begins with the actual thing that you''re trying to define. --Ray ----- Original Message ----- From: "Ashley Sanders" <a.sanders@manchester.ac.uk> To: <search-ws@lists.oasis-open.org> Sent: Thursday, May 29, 2008 6:30 AM Subject: Re: [search-ws] cql bnf > Ray, > > > I've attached two files (I don't know if this listserv allows attachments, > > we'll see) > > one is the "current" cql bnf, and the other is proposed to replace it, > > written by Tony Hammond, who is on the SRU Editorial Board where we kicked > > this around a bit but never reached a conclusion. > > > > I would like to use Tony's bnf for the OASIS work. > > > > I haven't been able to give it the close scrutiny it needs, but perhaps we > > could all take a look at it. > > I've had a quick look and I'm not sure if the new version says > the same things about the so-called reserved words and, or, not, prox > and sortby. > > I pretty sure the original CQL allowed (horrendous) queries like > > and or not -- in pqf notation: @or "and" "not" > > and and and -- in pqf notation: @and "and" "and" > > etc, etc, ... > > Tony's document says and, or, not, prox and sortby are reserved words > and are specifically excluded from simple-name and simple-string. > The original document has the following: > > "Reserved words are 'and', 'or', 'not', and 'prox' (case > insensitive). When a reserved word is used in a search term, > case is preserved." > > Which to me, seems to say that they are reserved words and then > goes on to say, well actually you can use them anyway. > > I think Tony's version excludes queries like "and and and" > -- which may actually be a good thing. > > Ashley. > -- > Ashley Sanders a.sanders@manchester.ac.uk > Copac http://copac.ac.uk A Mimas service funded by JISC > > --------------------------------------------------------------------- > To unsubscribe from this mail list, you must leave the OASIS TC that > generates this mail. You may a link to this group and all your TCs in OASIS > at: > https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]