[basex-talk] XQUnit Test

2019-05-16 Thread Markus Schmid
Hi is it possible to run multiple testsuites with one TEST command call from the basex console? Or is there always only one element in the result? Markus __

Re: [basex-talk] Database lock during RESTXQ operation

2019-05-16 Thread Martin Iggulden
Hi Michael, Our application runs in a BaseX container on Azure, with only the RESTXQ interface exposed. We briefly experimented on our test system with scaling out the container to multiple instances with the same database, and got a lot of errors like this. Not a problem, because we understand

Re: [basex-talk] Extracting function signatures from documentation

2019-05-16 Thread Andreas Mixich
Hi Bridger, thanks for the hint. I got the zip file Christian mentioned and it solves my problem, at least for the BaseX catalog (I just needed to change the hardcoded namespace to a temporary one for the inspect:module#1 function to accept the module). Very cool! :-) On Thu, May 16, 2019 at 8:47

Re: [basex-talk] Extracting function signatures from documentation

2019-05-16 Thread Christian Grün
Hi Loren, So far I haven’t. Where do I find it? Does it also contains the BaseX functions, or the standard W3 function set? Thanks, Christian Loren Cahlander schrieb am Do., 16. Mai 2019, 21:02: > Hello Christian, > > Have you taken a look at the xqDoc module generated from ANTLR 4? > > Lore

Re: [basex-talk] Extracting function signatures from documentation

2019-05-16 Thread Christian Grün
Exactly; thanks, Bridger! In the etc directory of our zip distribution, there is an xqdoc.zip file, which contains the generated library modules for all BaseX-specific functions. Bridger Dyson-Smith schrieb am Do., 16. Mai 2019, 20:47: > Hi Andreas - > > (someone on the BaseX team will surel

Re: [basex-talk] Extracting function signatures from documentation

2019-05-16 Thread Bridger Dyson-Smith
Hi Andreas - (someone on the BaseX team will surely correct where I get this wrong, so...) as far as I know, many/most/all of the BaseX builtin modules are written in Java, not XQuery, so I don't know that there are modules to inspect, so to speak. However, late last year there was some discussion

Re: [basex-talk] Extracting function signatures from documentation

2019-05-16 Thread Andreas Mixich
On Thu, May 16, 2019 at 5:54 PM Loren Cahlander wrote: > Please take a look at xqDoc for XQuery that is like JavaDoc for Java. > > https://github.com/lcahlander/xqdoc > > Thanks for the hint! I did not yet think about looking at xqdoc. Definitely will do this. See also my reply to Christian. --

Re: [basex-talk] Extracting function signatures from documentation

2019-05-16 Thread Andreas Mixich
On Thu, May 16, 2019 at 7:27 PM Christian Grün wrote: > The output of the inspect:module and inspect:xqdoc functions can be > used to generate a documentation of your source code Sorry, I should have been more elaborate (I wanted to keep the message short). I am working on an XQuery mode for t

Re: [basex-talk] inspect:functions#1 on XPath funcs errors out with [XPST0003] and returns an XHTML file

2019-05-16 Thread Andreas Mixich
On Mon, May 6, 2019 at 11:14 AM Michael Seiferle wrote: > As the URI contains no XQuery module, the function will error. > > Currently inspect:functions only works on user-defined modules. > Sorry for late reply, I am surrounded by work. Thanks for clarifying. -- Minden jót, all the best, Alle

Re: [basex-talk] Optimizer and JSON/XML response

2019-05-16 Thread Christian Grün
Hi Marco, We haven’t experienced such a behavior by ourselves, even in very complex applications. Is the faulty behavior reproducible? Does it make a difference if you change the value of the PARSERESTXQ option [1]? And is it already the http:send-request call that returns the wrong result, or is

Re: [basex-talk] Change data directory for basex & BaseXGUI

2019-05-16 Thread Christian Grün
Hi Steve, > I set the database path in basexgui to match the value in web.xml > ( The setting is commented out, but I assumed that was because it was the > default value. ) Yes, that was just an example. I am glad to hear you got it going. > On May 15, 2019, at 2:51 PM, Majewski, Steven Denni

Re: [basex-talk] Extracting function signatures from documentation

2019-05-16 Thread Christian Grün
The output of the inspect:module and inspect:xqdoc functions can be used to generate a documentation of your source code (in HTML, Swagger, …). Hope this helps, Christian On Thu, May 16, 2019 at 5:42 PM Andreas Mixich wrote: > > Hi, > > I am doing some tooling for XQuery and need to extract f

Re: [basex-talk] Adventures with XQJ

2019-05-16 Thread Christian Grün
Thanks, Arthur. If there is any chance to get an SSCCE that would be marvellous ;) Gardner, Arthur schrieb am Do., 16. Mai 2019, 17:36: > I found the difference between the snippet and our existing code. In our > case, there will only ever be one result. But the second next() should > return

Re: [basex-talk] Adventures with XQJ

2019-05-16 Thread Gardner, Arthur
I should have said that rs is an XQResultSequence. Arthur Gardner | Infosys Ltd MetLife | Clarks Summit, PA Office 570-587-6898 | Mobile 262-442-7472 From: Gardner, Arthur Sent: Thursday, May 16, 2019 11:36 AM To: Christian Grün Cc: basex-talk@mailman.uni-konstanz.de Subject: RE: [EXT] Re: [base

Re: [basex-talk] Extracting function signatures from documentation

2019-05-16 Thread Loren Cahlander
Please take a look at xqDoc for XQuery that is like JavaDoc for Java. https://github.com/lcahlander/xqdoc Here is a polymer based web app that runs under eXist-db. The build.gradle has a task generateXQDocs https://github.com/lcahlander/xqDoc-eXist-db

[basex-talk] Extracting function signatures from documentation

2019-05-16 Thread Andreas Mixich
Hi, I am doing some tooling for XQuery and need to extract function signatures from text, like from the BaseX module library documentation. But with my regex skills I just hit the wall. Next step would be to write some complex program, that does the parsing, maybe in combination with regexes, but

Re: [basex-talk] Adventures with XQJ

2019-05-16 Thread Gardner, Arthur
I found the difference between the snippet and our existing code. In our case, there will only ever be one result. But the second next() should return false. Instead, it throws an Exception. Existing (fails with BaseX): while (rs.next()) { rs.writeSequenceToResult(new StreamR

Re: [basex-talk] Optimizer and JSON/XML response

2019-05-16 Thread Marco Lettere
Just to add up ... BaseX version is 9.0.2. Moreover when running from a schedule service job the only way to avoid the issue described is to always first call another RESTXQ and then [1]. Which is somehow what I expect if services are run in their own process/jvm... Despite the subject of the

[basex-talk] Optimizer and JSON/XML response

2019-05-16 Thread Marco Lettere
Hello everyone, we came accross an inconsistency which we are not able to find an explanation for and giving up after having spent on it the whole morning... From a restxq we call an external REST service (InfluxDB) like shown in [1]. This usually works as expected returning a response forged