Re: [basex-talk] thesaurus URILiteral vs node

2021-06-01 Thread Liam R. E. Quin
On Tue, 2021-06-01 at 12:21 +0200, Christian Grün wrote: > Hi Liam, > > I have added ft:thesaurus,  You really are beyond the awesome. Thank you so much! I hope to have a chance to experiment kater this month, but if there's a gap i'll look much sooner. Liam -- Liam Quin, 

Re: [basex-talk] thesaurus URILiteral vs node

2021-06-01 Thread Christian Grün
Hi Liam, I have added ft:thesaurus, and I have revised our documentation [1,2]. I think that the new function may contribute to a more sophisticated search code written in XQuery. The implementation is still subject to change; I’m looking forward to your feedback. Christian [1]

Re: [basex-talk] thesaurus URILiteral vs node

2021-05-31 Thread Liam R. E. Quin
On Mon, 2021-05-31 at 15:05 +0200, Christian Grün wrote: > >   let $thes := ... >   let $term := 'happy' >   let $relation := 'RT' >   let $levels := 1 to 10 >   let $terms := ft:thesaurus($thes, $term, $relation, $levels) >   return 'lucky' contains text { $terms } > > Do you think that could

Re: [basex-talk] thesaurus URILiteral vs node

2021-05-31 Thread Christian Grün
Hi Liam, I spent some more time with the XQFT thesaurus specification, and I decided it would be too invasive to make the thesaurus input fully dynamic. There are simply too many rules and optimizations that depend on a static source. It would certainly be easier to define a new helper function

Re: [basex-talk] thesaurus URILiteral vs node

2021-05-27 Thread Liam R. E. Quin
On Thu, 2021-05-27 at 14:35 +0200, Christian Grün wrote: > Hi Liam, > > That would certainly be possible. The major challenge will be to make > it effiicent. Thank you for replying! It might be that i can solve my need differently - i want to implement a Google-search-like syntax for a Web

Re: [basex-talk] thesaurus URILiteral vs node

2021-05-27 Thread Christian Grün
Hi Liam, That would certainly be possible. The major challenge will be to make it effiicent. Most of the XQFT arguments have been designed to be static, and if we allow something like… $text contains text { $term } using thesaurus $node …the value of $node might change with every iteration.

[basex-talk] thesaurus URILiteral vs node

2021-05-26 Thread Liam R. E. Quin
What would be involved in extending BaseX's full text to allow a thesaurus to be supplied as a node instead of a URI? I want to construct one on the fly, and using file:write() seems excessive. Liam -- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Information