Re: [basex-talk] Sed-like CLI tool

2021-06-23 Thread Iwan Briquemont
1/SAPS4HANACloud/edmx-openapi.API_GRMASTERDATA_SRV.json > > /projects/bhub/download/bhub-20210621/SAPS4HANACloud/edmx-openapi.C_TRIALBALANCE_CDS.json > > These examples were meant to suggest the efficiency and elegance obtained > when taking a unified view of navigation at both le

[basex-talk] Sed-like CLI tool

2021-06-21 Thread Iwan Briquemont
Hi, BaseX works very well to do some quick queries or updates over files (rather than using it as a DB). I usually use the GUI for that but I think it could be quicker to have a simple CLI tool for the terminal like sed to do things like: Have a fancy XPath tool: (-e is -q in basex) echo "12" |

[basex-talk] Fwd: Tracing query execution

2018-06-28 Thread Iwan Briquemont
I forgot to reply to the mailing list too. -- Forwarded message -- From: Iwan Briquemont Date: 2018-06-28 10:51 GMT+02:00 Subject: Re: [basex-talk] Tracing query execution To: Fabrice ETANCHAUD Hi Fabrice, Indeed that's another solution. I also thought about restricting

[basex-talk] Tracing query execution

2018-06-27 Thread Iwan Briquemont
Hello, I use BaseX mostly for boolean queries, I have a hardware database and I check if specific hardware support features I need. It works great but when something is not as expected, it's hard to find out the reason. E.g. given an expression like: $some-value = $some-list and

[basex-talk] Re : FLWOR expression order is lost

2017-10-20 Thread Iwan Briquemont
Thank you ! So I should not rely on the order of a sequence (of XML trees) if I do a path expression on it? A bit confusing but I'll take that into account now. Regards, Iwan Le vendredi 20 octobre 2017 à 19:02 +0200, Christian Grün a écrit : > Hi Iwan, > > The nodes of a path expression will

[basex-talk] FLWOR expression order is lost

2017-10-20 Thread Iwan Briquemont
Hello, I noticed that the order of my FLWOR expression is not kept when I do an xpath on the node list: > basex 'declare function local:nodes() {let $data := (, a="1"/>) let $nodes := trace(for $n in $data order by > xs:integer($n/@a/data()) return $n) return $nodes }; local:nodes()/@a/data()'

Re: [basex-talk] Profiling queries

2017-05-19 Thread Iwan Briquemont
Thanks, I will have to try the Java profiling, it could already help. I would think it would be easier to wrap the function bodies before the static rewrite, but in any case it will always interfere with the optimizations so it's quite hard to know what to do... For the streaming, let's say

[basex-talk] Profiling queries

2017-05-19 Thread Iwan Briquemont
Hello, I was wondering if there are ways to access how much time is spent in parts of a query/program, to find out inefficient functions or expressions? Something like the total time spent in functions would be quite useful. I saw the Profiling module, but it requires you to change the code and

[basex-talk] xquery:eval error propagation

2017-04-18 Thread Iwan Briquemont
Hello, I use xquery:eval to evaluate some user provided queries. It works well but when there is an error the true origin of the error is hidden, as it will give the file and line of the xquery:eval call. Is there any way to pass the origin of the error through the xquery:eval? I guess the best