using fuzzy in oxygen "invalid XQuery syntax, syntax does not pass static validation."

Friday, 30 November 2012 · 2 messages
CG
Christian Grünin reply to Alex Muir, 30 Nov 2012, 01:0830 Nov 2012 00:11 #
Hi Alex, yes, this is proabby due to XQJ. As "using fuzzy" is (at least for now) a BaseX-specific extension, it is not detected by regular XQFT parsers. However, you should be able to specify our "fuzzy" feature via ft:search() [1]. Hope this helps, Christian [1] http://docs.basex.org/wiki/Full-Text_Module#ft:search
Quoted text · Alex Muir · 41 lines
On Fri, Nov 30, 2012 at 12:08 AM, Alex Muir <alex.g.muir at gmail.com> wrote: > Hi, > > Just noticing that this using fuzzy example works in the basex gui however > running in oxygen gives an error. It doesn't like the "using fuzzy" text. > > declare namespace db="http://basex.org/modules/db"; > > let $x := db:open('F-DDEX')//MessageHeader/MessageThreadId[text() contains > text '893747' using fuzzy] > > return $x > > Oxygen Error > System ID: > /mnt/basex_volume/i4Base-Basex7.5/xquery/indevelopment/basex-connectiing.xq > Scenario: all > XQuery file: > /mnt/basex_volume/i4Base-Basex7.5/xquery/indevelopment/basex-connectiing.xq > Engine name: Basex-23.23.82.41 > Severity: error > Description: Invalid XQuery syntax, syntax does not pass static validation. > > Would that be an xqj issue? > > -- > - > > Alex G. Muir > Software Engineering Consultant > Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125 > Love African Kora Music? Take a moment to listen to Gambia's - Amadu > Diabarte & Jali Bakary Konteh www.bafila.bandcamp.com Your support keeps > Africa's griot tradition alive... Cheers! > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
AM
Alex Muir30 Nov 2012 01:08 #
Hi, Just noticing that this using fuzzy example works in the basex gui however running in oxygen gives an error. It doesn't like the "using fuzzy" text.
declare namespace db="http://basex.org/modules/db";
let $x := db:open('F-DDEX')//MessageHeader/MessageThreadId[text() contains text '893747' using fuzzy] return $x Oxygen Error System ID: /mnt/basex_volume/i4Base-Basex7.5/xquery/indevelopment/basex-connectiing.xq Scenario: all XQuery file: /mnt/basex_volume/i4Base-Basex7.5/xquery/indevelopment/basex-connectiing.xq Engine name: Basex-23.23.82.41 Severity: error Description: Invalid XQuery syntax, syntax does not pass static validation. Would that be an xqj issue?
-- - Alex G. Muir Software Engineering Consultant Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125 Love African Kora Music? Take a moment to listen to Gambia's - Amadu Diabarte & Jali Bakary Konteh www.bafila.bandcamp.com Your support keeps Africa's griot tradition alive... Cheers!

⚡Generated with XQuery