[basex-talk] HTTP headers are all lowercase in responses

2024-06-26 Thread Marco Lettere
Dear all, just by trying the example of the documentation [1] (at least since 10.4+)  you should be able to verify that the response contains all headers with lower-case names. I think a client should not take the freedom to alter HTTP responses if this is not strictly required. What is the

Re: [basex-talk] BaseX 11: The XMLPrague 2024 Edition

2024-06-06 Thread Marco Lettere
THANK YOU ALL SO MUCH! On 06/06/24 13:09, Christian Grün wrote: Dear all, We’ve been hard at work finalizing version 11 of BaseX, our open source XML framework, database system, and XQuery processor. First, we have revised our documentation, which is now generated with RESTXQ: https://doc

Re: [basex-talk] Weird behaviour with sequence and random:integer

2024-05-22 Thread Marco Lettere
very item of the sequence. If you want random:integer(3) to be evaluated only once, you can either bind it to a variable… let $r := random:integer(3) + 1 return ("a", "b", "c")]$r] …or use functions like fn:subsequence: subsequence(("a", "b", &q

[basex-talk] Weird behaviour with sequence and random:integer

2024-05-22 Thread Marco Lettere
Dear all, I have this strange behavior when running in BaseX 10.4: ["a","b","c"](1 + random:integer(3)) I got something empty result, sometimes (correctly) one out of the three, sometimes two results... I report the results and the trace in [1] and [2]. What is the reason for this? Thank y

Re: [basex-talk] Making store reactive

2024-05-22 Thread Marco Lettere
d in feedback on the Store Module; it’s still fairly new, but more and more people seem to discover it. Ciao, Christian [1] https://docs.basex.org/wiki/Job_Module#Services [2] https://github.com/BaseXdb/basex/issues/1082 On Wed, May 22, 2024 at 9:49 AM Marco Lettere wrote: Dear Christian

[basex-talk] Making store reactive

2024-05-22 Thread Marco Lettere
Dear Christian and BaseX developers, just wondering if adding something like the following would be hard to implement. /store:observe($key as xs:string, $observers as function(*)*) / with $observers being something like /function($key as xs:string)./ The semantics is to call the registered

[basex-talk] BaseX and NFS

2024-03-14 Thread Marco Lettere
Dear all, we have an instance of BaseX running on top of an NFS exported disk. Yes yes I know it's not the best possible scenario thus I was expecting a slight performance decrease. Anyway, when comparing local disk to NFS disk, for a tiny operation like storing a very small document into a

Re: [basex-talk] BaseX 10.7: The Summer Edition

2023-08-04 Thread Marco Lettere
GREAT Big thanks! On 04/08/23 12:54, Christian Grün wrote: Dear all, We’re pleased to announce version 10.7 of BaseX, of our XML framework: https://basex.org. The new release is a big step forward towards BaseX 11: • We have added numerous new operators, functions and features of XQue

Re: [basex-talk] Dynamic path segment for websockets

2023-06-26 Thread Marco Lettere
t the same time, we decided against supporting wildcards. Feel free to share background information on your use case with us, maybe you can convince us to get active ;·) Ciao, Christian On Fri, Jun 23, 2023 at 11:21 AM Marco Lettere wrote: Dear all, so I just found out that it is not possible

Re: [basex-talk] Dynamic path segment for websockets

2023-06-23 Thread Marco Lettere
n your use case with us, maybe you can convince us to get active ;·) Ciao, Christian On Fri, Jun 23, 2023 at 11:21 AM Marco Lettere wrote: Dear all, so I just found out that it is not possible to create websockets bound to dynamic paths. If I try a websocket connection to declare %

[basex-talk] Dynamic path segment for websockets

2023-06-23 Thread Marco Lettere
Dear all, so I just found out that it is not possible to create websockets bound to dynamic paths. If I try a websocket connection to declare   %ws:connect('/notification/subject/{$subject}') function log:subject() {}; I get an error (without significant logs). Whereas declare   %ws:connect

Re: [basex-talk] Queuing order for db:add

2023-04-11 Thread Marco Lettere
Hi Christian, sorry for not being clear enough. I was just wondering whether I can rely on insertion order being kept when I perform a corresponding db:get("db", "a.xml"). In other words given your slightly modified example: for $i in 1 to 100 return db:add('db', , 'a.xml') Will db:get('db

[basex-talk] Queuing order for db:add

2023-04-03 Thread Marco Lettere
Dear all, I've probably overlooked this in the docs but asking for confirmation. Does db:add multiple resources to the same path guarantee sorting based on insertion time? If yes, then maybe I could add a note about this in the docs? Thanks, Marco.

Re: [basex-talk] Unable to set admin password

2023-02-20 Thread Marco Lettere
Yes, confirmed. Need to ensure that users.xml is in the prorper data folder. Thus need to set admin password after change to .basex configuration file I suppose. Sorry again for bothering. M. On 20/02/23 10:50, Marco Lettere wrote: Hm, sorry. When downloading BaseX and using it barely the

Re: [basex-talk] Unable to set admin password

2023-02-20 Thread Marco Lettere
Hm, sorry. When downloading BaseX and using it barely the steps work. So it has something to do with our specific layout we change the location of the data, repo and webapp folder Maybe this is the issue ... M. On 20/02/23 10:40, Marco Lettere wrote: Dear all, I'm trying to

[basex-talk] Unable to set admin password

2023-02-20 Thread Marco Lettere
Dear all, I'm trying to setup a new instance of BaseX 10 in order to start migrating some applications of ours. Anyway I'm unable to set the admin password. Followin https://docs.basex.org/wiki/BaseX_10#Migrating_Applications, I'm currently trying with [1] and [2] which both ask me to enter

Re: [basex-talk] Too aggressive optimizations?

2023-02-07 Thread Marco Lettere
Dear Christian, I have to admit that all what you say makes sense and I was even digging in my swapped long term memory for something like the annotation you mention. The background information you share makes me feel more comfortable and I'll take your advice. Thanks! Marco. On 07/02/23

[basex-talk] Too aggressive optimizations?

2023-02-07 Thread Marco Lettere
Dear all, my scenario is a RestXQ: - download resources and store them in temporary directory. - do it with fork-join in order to obtain smaller latency - compress to zip archive and return the archive data. I've noticed often the archive arrives empty. So after investigation I've found that

Re: [basex-talk] Reducing logs

2023-02-03 Thread Marco Lettere
; | Facebook <https://www.facebook.com/servicenow> *From: *BaseX-Talk on behalf of Christian Grün *Date: *Thursday, February 2, 2023 at 7:42 AM *To: *Marco Lettere *Cc: *basex-talk@mailman.uni-konstanz.de *Subject: *Re: [basex-talk] Reducing logs [External Email] Hi Marco, As thi

[basex-talk] Reducing logs

2023-02-02 Thread Marco Lettere
Dear all, when using the Basex Xquery server (9.7.3) we see that logs such as [1] are produced for every query execution. Since we have a scenario which involves polling and thus we have a lot of query executions the log files increase to hundreds om MBs during a day. This makes them unmana

Re: [basex-talk] BaseX unreachable behind load balancer

2022-11-18 Thread Marco Lettere
Hi Harry, one thing that hits me frequently on cloud machines provisioned by others is SELinux. If your host is running Linux of course... In this case there is some documentation around how to check it out by looking into the logs of your proxy service (the error should something like "not

Re: [basex-talk] BaseX 10 • The Double-Digit Summer Edition

2022-08-02 Thread Marco Lettere
THANKS! M. On 01/08/22 15:27, Christian Grün wrote: Dear all, It’s been around 15 years ago when the first Open-Source version of BaseX was released. Thanks to the continuous support of all of you, we are thrilled today to announce the first double-digit version of our XML framework: https

Re: [basex-talk] BaseX YAML Parser?

2022-07-26 Thread Marco Lettere
Hi Elliot, I remember having asked info about a possible YAML serialization format on the Slack Xml.com channel one year ago. They don't really have a nice opinion about Yaml and no-one looked really interested in supporting it. Thus I think there are philosophy matters here :-) M. On 26/

Re: [basex-talk] RESTXQ: Serve images that are not within the web app dir

2022-07-07 Thread Marco Lettere
Hi Eliot, the content in the webap/static folder is served statically at the .../static/myresource path. Symlinking your folder in there should do the trick. At least up to previous versions of Basex. You could just ad src="/static/myresoiurce"/> in your page... I think I've read in tne ML

Re: [basex-talk] BaseX 9.7.3: Tweaks, Fixes, Previews

2022-06-30 Thread Marco Lettere
Yeah! So do we! Very excited! On 30/06/22 16:18, Bridger Dyson-Smith wrote: Christian and team - On Thu, Jun 30, 2022 at 10:04 AM Christian Grün wrote: Hi all, A new BaseX maintenance release is available. This is what you get: • DBA: Improved support for database backups

Re: [basex-talk] Encoding hassle ....

2022-06-13 Thread Marco Lettere
Thank you very much. We'll give it a try ASAP. M. On 13/06/22 16:45, Christian Grün wrote: If the content of a file is written to another file without intermediate steps, it is streamed and consumes constant memory. The implementation for streaming the data was deficient.

Re: [basex-talk] Encoding hassle ....

2022-05-27 Thread Marco Lettere
F-8") > > Query executed in 1.83 ms. > > xquery file:read-text("a2.txt") > [file:io-error] Decoding error: xb0 > > xquery file:read-text("a2.txt", "UTF-8") > [file:io-error] Decoding error: xb0 > > xquery file:read-text("a2.txt",

[basex-talk] Encoding hassle ....

2022-05-27 Thread Marco Lettere
Dear all, after wrapping our heads around this for hours today, we don't know how to get rid of this inconsistency. Thus I ask for help ... SSCE: BaseX 9.6.4 [Standalone] Try 'help' to get more information. > xquery file:write-text("a1.txt", "°" || out:nl()) (: Same with codepoints-to-string

Re: [basex-talk] BaseX, RESTXQ, and React?

2022-05-20 Thread Marco Lettere
Hi Eliot, just my 2 cents here I am not a fan of bulky JS frameworks and most of the things they allow to do is perfectly doable with vanilla JS anyway. So I'm not a very expert of React. That being said I think that usage of frameworks or not in the browser is orthogonal to the use of

Re: [basex-talk] BaseX 9.7 • Ukraine Edition

2022-03-23 Thread Marco Lettere
Ten years of a great Software, a Great Company, a great Community and great Persons as you are Christian. And your email demonstrates exactly this! Happy Birthday! PEACE M. On 23/03/22 13:15, Christian Grün wrote: Dear all, Just next to us, millions of people are currently being torn out o

Re: [basex-talk] BaseX 9.6.4: Tweaks, Fixes & Thank Yous

2021-12-17 Thread Marco Lettere
Thanks again Christian & BaseX team! Never enough of saying it! Whenever trying to explaining why OSS is the way to go, I cite your product along with Blender as most valuable examples! Happy 2021 ending and a normal 2022 to all of you! M. On 17/12/21 10:17, Christian Grün wrote: Dear all,

Re: [basex-talk] Didn't know ....

2021-12-07 Thread Marco Lettere
artin Honnen wrote: Am 07.12.2021 um 10:16 schrieb Marco Lettere: Hi all, Just because "abc" || () returns "abc", it felt natural to me that should return but I get instead. This is on a 9.6.1. I can't recall whether this has always been like that thus it's

[basex-talk] Didn't know ....

2021-12-07 Thread Marco Lettere
Hi all, Just because "abc" || () returns "abc", it felt natural to me that attr="abc{()}"/> should return but I get instead. This is on a 9.6.1. I can't recall whether this has always been like that thus it's one of my xquery shortcomings or if actually something strange is going on here .

[basex-talk] Custom map combinator

2021-09-02 Thread Marco Lettere
Dear all, just thinking out loudly ... Whether it could be interesting to specify a function with proper signature as a custom combinator for map:merge. Currently "duplicates" : "combine" results in the entry value being a sequence of the originating values. This could cause loss of informati

Re: [basex-talk] BaseX 9.6: The Summer Edition

2021-08-19 Thread Marco Lettere
Thank you very much! M. On 19/08/21 14:22, Christian Grün wrote: Dear all, We provide you with a new and fresh version of BaseX, our open source XML framework, database system and XQuery 3.1 processor: https://basex.org/ Apart from our main focus (query rewritings and optimizations), we h

Re: [basex-talk] Can XQuery return unique values present across multiple databases?

2021-08-14 Thread Marco Lettere
Welcome Tamara and yes, Gerrit is completely right about BaseX + RestXQ. Most of the time you don't need more! :-D M. On 13/08/21 22:07, Imsieke, Gerrit, le-tex wrote: Tamara! Welcome to another proselyte in the Church of Xquery. This church is open to people from all walks of life, for examp

[basex-talk] Solidarity and closeness

2021-07-16 Thread Marco Lettere
We at Nubisware would like to express all our solidarity to all the members of the list who are currently affected by the flood disaster in Central EU. In particular, our closeness with Christian, Michael and the German BaseX team who has been backing our daily work for years. Looking forwar

Re: [basex-talk] Increase automatic logout time

2021-07-02 Thread Marco Lettere
Hi Josselin, what we usually do is to tune the solution on the client and for specific page in order to not impact the overal session mechanism for all the apps and services hosted by the service. Whenever it's needed we add a small JS snippet like [1] to keep the page alive. Just provide an

Re: [basex-talk] HTTP Client DELETE with body

2021-06-12 Thread Marco Lettere
est-api/index.html#_client_role_mappings_resource > > > > Cheers > > Christian > > > > [1] http://expath.org/spec/http-client#d2e104 > > > > > > > > > > Marco Lettere schrieb am Sa., 12. Juni 2021, > 11:48: > >> > >> Dear all, > >&

Re: [basex-talk] HTTP Client DELETE with body

2021-06-12 Thread Marco Lettere
ttp-client#d2e104 <http://expath.org/spec/http-client#d2e104> Marco Lettere mailto:m.lett...@gmail.com>> schrieb am Sa., 12. Juni 2021, 11:48: Dear all, I have to call an API which model an HTTP DELETE operation based on the body of the request. It looks li

[basex-talk] HTTP Client DELETE with body

2021-06-12 Thread Marco Lettere
Dear all, I have to call an API which model an HTTP DELETE operation based on the body of the request. It looks like currently http:send-request is not allowing body to be present ("Body not expected for method DELETE."). I feel that this is bit too restrictive interpretation of the spec wh

Re: [basex-talk] Make use of external Identity Management for BaseX

2021-05-04 Thread Marco Lettere
Forgot to mention that for decoding the JWT we needed to hook up Java's internal B64 decoder because I don't remember why the one provided with basex was not able to handle that encoding. On 04/05/21 09:51, Marco Lettere wrote: Hi Rob and all, I attach here an example of an OIDC

Re: [basex-talk] Make use of external Identity Management for BaseX

2021-05-04 Thread Marco Lettere
021, om 09:23 heeft Marco Lettere <mailto:m.lett...@gmail.com>> het volgende geschreven: Hi Rob, no the code in the repository the link refers to is more like administrative tooling for batch importing configuration into Keycloak for administration purposes. I'll work on creating an

Re: [basex-talk] Make use of external Identity Management for BaseX

2021-05-03 Thread Marco Lettere
in server responses.       (Christian Gr?n)    7. Re: Reloading jars on a running http server. (Reece Dunn)    8. Re: Reloading jars on a running http server. (Christian Gr?n)    9. Re: Make use of external Identity Management for BaseX       (Marco Lettere) -

Re: [basex-talk] Make use of external Identity Management for BaseX

2021-05-03 Thread Marco Lettere
erver. (Reece Dunn)    8. Re: Reloading jars on a running http server. (Christian Gr?n)    9. Re: Make use of external Identity Management for BaseX       (Marco Lettere) -- Message: 1 Date: Thu, 29 Apr 202

Re: [basex-talk] Make use of external Identity Management for BaseX

2021-04-30 Thread Marco Lettere
Hi Christian and Rob, as the authors of the code you point to we confirm that interacting with Keycloak in XQuery and in particular RestXQ is rather comfortable. That example is mostly a demonstration code for a tool that scrapes a site index and registers sites named gateways as public clients

Re: [basex-talk] BaseX 9.5: The Spring Edition

2021-02-25 Thread Marco Lettere
Really excited! Thank you very much for everything! As usual! M. On 25/02/21 13:01, Christian Grün wrote: Dear all, we are more than happy to provide you with a new and fresh version of BaseX, our XML framework, database system and XQuery 3.1 processor: https://basex.org/ ...

Re: [basex-talk] Nasty trap with RESTXQ content negotiation

2021-02-19 Thread Marco Lettere
Hi Christian, "negotiation code (which got fairly complex, due to all the quality factor checks)." I had no doubt about this ... and it was confirmed after looking at the code referenceyou attached. I think that server software such as Jetty, Tomcat a.s.o. should provide tools and APIs for man

[basex-talk] Nasty trap with RESTXQ content negotiation

2021-02-18 Thread Marco Lettere
Dear all, First of all, I hope everything is fine and all of you are staying healthy! When I read again the docs about Content Negotiation in RestXQ I noticed the sentence: Functions can be restricted to specific Media Types. The default type is|*/*|. So I wrote the two RestXQ signaures [1

Re: [basex-talk] Dr. Mike Kay's proposals for XPath and XQuery 4.0

2020-11-16 Thread Marco Lettere
Couple of things directly out of my mind even if more library than core language oriented are YAML support and the new proposal for convenient HTTP client functions. I remember a proposal by you, Christian, together with Adam maybe? M. On 16/11/20 15:30, Loren Cahlander wrote: Please make su

Re: [basex-talk] BaseX GUI and remote editing

2020-11-13 Thread Marco Lettere
. On Fri, Nov 13, 2020 at 9:50 AM Marco Lettere <mailto:m.lett...@gmail.com>> wrote: Hello all! We are in the slightly uncomfortable condition to do some remote coding. Means write XQ code that has to be kept on a server different from our PCs. We don't want

[basex-talk] BaseX GUI and remote editing

2020-11-13 Thread Marco Lettere
Hello all! We are in the slightly uncomfortable condition to do some remote coding. Means write XQ code that has to be kept on a server different from our PCs. We don't want to slow down our very agile development workflow by passing everytime from a Git repo ... Has anyone here some experi

Re: [basex-talk] Paging results of an XQuery-Search

2020-09-25 Thread Marco Lettere
Xquery native windowing instructions despite a slightly complex syntax are extremely powerfull and you can rely on the optimizer being able to optimize where ever possible. M. https://www.w3.org/TR/xquery-30/#id-windows On 25/09/20 15:55, Omar Siam wrote: Perhaps you want to use fn:subsequenc

Re: [basex-talk] Accessing Flexmark (Java) from Query

2020-09-21 Thread Marco Lettere
On 20/09/20 22:42, Andreas Mixich wrote: Currently I get the error:   [XPTY0004] com.vladsch.flexmark.parser.Parser$Builder:build: Multiple functions with 1. Hi Andreas, this is because of Java distinguishes method signatures not only by number of parameters but also by type. You have to us

Re: [basex-talk] missing web.xml from docker image

2020-09-15 Thread Marco Lettere
On 15/09/20 10:35, Andy Bunce wrote: ... as BaseX seems to run surprisingly well on ARM64 machines such as the Odroid N2 and Raspberry Pi 4. Absolutely! I have been running a demo/development site of a customer's web application (fully developed in BaseX) on my home Raspberry PI 3 for weeks.

Re: [basex-talk] Yaml serialization

2020-08-12 Thread Marco Lettere
@Marco: Do you know which conversions are provided by FasterXML: arbitrary XML → YAML, arbitrary YAML → XML, or both? If the underlying conversion rules are promising, we could include them a 'fasterxml' format in BaseX (similar to the 'jsonml' format). As far as I can understand from the docs

Re: [basex-talk] Yaml serialization

2020-08-12 Thread Marco Lettere
re of existing (ideally bidirectional) mappings that would be appropriate for general use? Cheers Christian Marco Lettere mailto:m.lett...@gmail.com>> schrieb am Mi., 12. Aug. 2020, 12:04: Dear BaseX team, just out of curiosity, could you imagine what kind of effort it woul

[basex-talk] Yaml serialization

2020-08-12 Thread Marco Lettere
Dear BaseX team, just out of curiosity, could you imagine what kind of effort it would be to provide YAML as another serialization method for BaseX in addition to XML, HTML, JSON, CSV? The datamodel seems pretty close to the JSON one so maybe a very similar transformation to XML could be imp

Re: [basex-talk] Transaction Support

2020-07-17 Thread Marco Lettere
ing database transactions Or is it possible to implement real transactions (START TRANS, do something, COMMIT trans) with that PUL or something? Reto *From:*BaseX-Talk [mailto:basex-talk-boun...@mailman.uni-konstanz.de] *On Behalf Of *Marco Lettere *Sent:* 16 July 2020 17:46 *To:* basex-tal

Re: [basex-talk] Transaction Support

2020-07-16 Thread Marco Lettere
Hi Reto, AFAIK Basex is transactional in the sense that whenever you start a sequence of commands or an XQuery script, all the "updating operations" that modify the database are always stored in a PUL (a list of potential updates). Only when the script terminates all the operations on the DB ar

Re: [basex-talk] BaseX 9.4: The Summer Edition

2020-07-14 Thread Marco Lettere
Even in this strange 2020 Summertime can now definitely begin with the Summer edition which looks awesome!!! Thanks to all of you! Marco. Il mar 14 lug 2020, 13:40 Christian Grün ha scritto: > We are glad to give you Version 9.4 of BaseX, our XML framework, > database system and XQuery 3.1 proce

Re: [basex-talk] Websites that use BaseX

2020-06-24 Thread Marco Lettere
Hi Jonathan, we as a company have used Nubisware for several "front-facing" applications. They are not exactly ecommerce but full blown enterprise applications with complex UIs and/or based on APIs. * A rating service (with dedicated UI) based on contract ontologies; * a system for remote re

[basex-talk] distinct-values and type coercion

2020-05-19 Thread Marco Lettere
Dear all, after installing Basex 9.3.3 one application of ours started failing in a particular functionality. We tracked it down to the following example code: let $in :=       Object/20383920-5bb1-4397-8b51-b752863acddf       let $s as xs:string* := distinct-values($in/source/reference/s

Re: [basex-talk] BaseX 9.3.3: Query optimizations, Bug Fixes

2020-05-15 Thread Marco Lettere
Once more: THANKS! M. On 15/05/20 11:35, Christian Grün wrote: Dear users and supporters of BaseX, We have just released a new maintenance version of our XML framework, database and XQuery processor: http://basex.org Apart from minor bug fixes, and in preparation to BaseX 9.4, we have add

Re: [basex-talk] Performance loss between version 9.2.4 and 9.3.2 when executing specific xQuery

2020-05-08 Thread Marco Lettere
And even more curiously, we are also working in this very same time on handling fetches from OAI-PMH sources! :-D M. On 08/05/20 13:37, Imsieke, Gerrit, le-tex wrote: Just saying that I find it sooo interesting to learn at which places and for which purposes BaseX is being employed. Have a nice

Re: [basex-talk] A question about RESTXQ rest:form-param()

2020-04-23 Thread Marco Lettere
mpty-sequence, I am not sure what the problem is here. I can access the full (unparsed) body, though (I can use that). Daniel -Ursprüngliche Nachricht- Von: Marco Lettere Gesendet: Mittwoch, 22. April 2020 14:24 An: basex-talk@mailman.uni-konstanz.de Betreff: Re: [basex-talk] A question ab

Re: [basex-talk] A question about RESTXQ rest:form-param()

2020-04-22 Thread Marco Lettere
s with GET but with POST I get an empty-sequence, I am not sure what the problem is here. I can access the full (unparsed) body, though (I can use that). Daniel -Ursprüngliche Nachricht- Von: Marco Lettere Gesendet: Mittwoch, 22. April 2020 14:24 An: basex-talk@mailman.uni-konstanz.de B

Re: [basex-talk] A question about RESTXQ rest:form-param()

2020-04-22 Thread Marco Lettere
Hi Daniel, another way is to use request:* functions [1] available for programmatic inspection of the request. Cheers, M. [1] https://docs.basex.org/wiki/Request_Module On 22/04/20 12:18, Zimmel, Daniel wrote: Hi Daniel, RTFM. Simply pass the body in %rest:POST("{$body}"). Sorry for distur

Re: [basex-talk] New Slack workspace for XML discussions: xmlcom.slack.com

2020-04-17 Thread Marco Lettere
Yeah! I'm in it! M. On 17/04/20 15:35, Christian Grün wrote: Dear XML aficionados, For interactive discussions on XML, XQuery and BaseX, feel free to join the new XML workspace on Slack: https://join.slack.com/t/xmlcom/shared_invite/zt-dkmwrygj-kdviJUKoXb7_ERdCoJSAfQ Thanks to Adam Retter for

Re: [basex-talk] BaseX 9.3.2: Performance Tweaks, Bug Fixes

2020-03-10 Thread Marco Lettere
Currently we are not very used to good news ... So, thanks Christian for this one who definitely sounds like that! M. On 10/03/20 14:18, Christian Grün wrote: Dear all, We are glad to provide you with a new BaseX 9.3.2 maintenance release: http://basex.org In preparation to version 9.4,

Re: [basex-talk] BaseX 9.3: The Winter Edition

2019-11-29 Thread Marco Lettere
Thank you all so much! The list of improvements is really impressive! Great job as usual. M. On 29/11/19 17:14, Christian Grün wrote: Hello to our loyal readers of our list, We are glad to announce version 9.3 of BaseX, our XML framework, database system and XQuery 3.1 processor: http://bas

Re: [basex-talk] file:list and symbolic links

2019-11-09 Thread Marco Lettere
children($dir) > return if (file:is-dir($child)) then ( > file:traverse($child) > ) else ( > $child > ) > }; > > Hope this helps, > Christian > > > On Wed, Nov 6, 2019 at 11:41 AM Marco Lettere wrote: > > > > Dear all, >

[basex-talk] file:list and symbolic links

2019-11-06 Thread Marco Lettere
Dear all, what is the rationale behind the fact that file:list has been rewritten to not following symbolic links [1]? We had some jobs related code that relied on symlinks and stopped working after moving to new version of BaseX. Is there any work around? By using children or the new desce

Re: [basex-talk] Database corrupted on updating with RestXQ

2019-09-26 Thread Marco Lettere
wrote: >> Hi Marco, >> >> I think that the bug fix (which is still on my todo list) will be made >> available with BaseX 9.3; so, for now, it’s probably better to choose >> the workaround. >> >> Cheers, >> C

Re: [basex-talk] Database corrupted on updating with RestXQ

2019-09-26 Thread Marco Lettere
, it’s probably better to choose the workaround. Cheers, Christian On Sat, Aug 3, 2019 at 10:02 AM Marco Lettere wrote: Hi Christian, I'm currently preparing a deployment based on Docker for one of our customers. Here in Italy it's holiday time in August so I have a bit of time

[basex-talk] Suggestion for concurrency of RestXQ

2019-09-17 Thread Marco Lettere
Dear all, on one of our applications based on RestXQ services running on 9.0.2 we experience a strange behaviour related to concurrency. It is a stateless service running on a server with http-local set to true. So no database access. We removed all accesses to sessions and the code doesn't

Re: [basex-talk] Database corrupted on updating with RestXQ

2019-08-03 Thread Marco Lettere
e previous bug issue. We’ll have a look at this soon. – Christian [1] https://github.com/BaseXdb/basex/issues/1711 On Sat, Jul 27, 2019 at 4:02 PM Marco Lettere wrote: Thanks Christian, I haven't been able to reproduce the bug with your SSCE. Nevertheless I spent some time in tracing the

Re: [basex-talk] Forcing download of JSON doc

2019-08-01 Thread Marco Lettere
ile are an escaped string rather than a serialized JSON object: e.g., "{\n  \"key\": \"value\"\n}" Is there a way to produce a properly serialized JSON file for download? -- Tim A. Thompson Discovery Metadata Librarian Yale University Library On Thu, Aug 1, 2019

Re: [basex-talk] Forcing download of JSON doc

2019-08-01 Thread Marco Lettere
Hi Tim, downloading from a browser when posting a form is usually a bit tricky. For me it always ended up with the creation of an artificial element with an href crafted from the form parameters and with an attribute download="filename.ext" added to it. Anyway you could try with returning a "f

Re: [basex-talk] Database corrupted on updating with RestXQ

2019-07-27 Thread Marco Lettere
d, possibly for your users.xml file in the data directory. [1] https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg11459.html [2] https://github.com/BaseXdb/basex/issues/1662 On Fri, Jul 26, 2019 at 4:29 PM Marco Lettere wrote: Hi all, starting with 9.2.1 we experience a stran

Re: [basex-talk] Database corrupted on updating with RestXQ

2019-07-26 Thread Marco Lettere
pnctest=1; JSESSIONID=2g5ep7mzq0ah1ktre4b398hfc - Host: localhost:8984 _ RESPONSE HTTP/1.1 200 [2] https://github.com/BaseXdb/basex/blob/f7a5492c46d55e1c1f58df24b8ed9567c176e8c1/basex-core/src/main/java/org/basex/build/Builder.java On 26/07/19 16:29, Marco Lettere wr

[basex-talk] Database corrupted on updating with RestXQ

2019-07-26 Thread Marco Lettere
Hi all, starting with 9.2.1 we experience a strange error with a RESTXQ API  of ours that we have been using for years. The typical pattern is lookup a document update it and store it back. We have done this milions of time and also all the tests work neatly. But when using it from inside th

Re: [basex-talk] Quickest way to parse a DomSource

2019-07-22 Thread Marco Lettere
om API:) let $source := bpmndom:getDomSource($document) (:DOMSource API to get underlying Document Node :) let $doc := source:getNode($source) (:Now this Xpath expression works :) return $doc//*:userTask Cheers, Marco. On 22/07/19 12:53, Martin Honnen wrote: Am 22.07.2019 um 11:32 schrieb Marco Lettere:

[basex-talk] Quickest way to parse a DomSource

2019-07-22 Thread Marco Lettere
Hi all, I'm currently working on the usage of BaseX Xquery scripts inside a BPMN engine. I have to access portions of the XML representation of the BPMN file by binding the engine's API. The closest that I can get to a standard XML representation is currently a javax.xml.transform.dom.DOMS

Re: [basex-talk] PATCH verb in RestXQ implementation

2019-07-17 Thread Marco Lettere
Hi Daniel, I'm pretty sure that PATCH is supported in recent versions of BaseX. Even if I don't remember exactly when it started since it's not traced in the Changelog of the documentation page for RestXQ. From the docs at [1]: The HTTP method annotations are equivalent to allHTTP request met

[basex-talk] [ANN.] JSR223 wrapper

2019-07-05 Thread Marco Lettere
rrent v0.1 jar from [2]. Of course every 2 cents of feedback will be warmly appreciated. Enjoy, Marco. [1] https://github.com/nubisware/basexjsr223 [2] https://github.com/nubisware/basexjsr223/releases/download/v0.1/BaseXJSR223.jar On 11/06/19 13:00, Marco Lettere wrote: Hi all, is anyone o

[basex-talk] JS223 wrapper

2019-06-11 Thread Marco Lettere
Hi all, is anyone on the list aware of a JS223 compliant wrapper for BaseX in order to include XQuery scripting "seamlessly" into scriptable applications? Thanks. Marco.

Re: [basex-talk] Update of arbitrarily selected elements?

2019-06-03 Thread Marco Lettere
Yes. In addition, if you don't have IDs in place and elements are all in the same container, you could maybe use their position. Or a combination of an XPAT selector for the contianer root and then a sequence of positions for the elements to be updated. M. On 03/06/19 09:46, Michael Seiferle w

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

2019-05-17 Thread Marco Lettere
uot;\n" + qtempl.format(path=(str(f)+"_"+str(q)))     outf.write(qout) [B] template query stored in template.txt declare   %rest:path("test/{path}")   %rest:GET function _:f{path}() {{    "{path}" }}; Cheers, Christian [1] http://docs.basex.org/wiki/Option

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

2019-05-16 Thread Marco Lettere
mail it looks like an issue in the RESTXQ parser/compiler rather than an optimizer issue... M. On 16/05/19 13:27, Marco Lettere wrote: 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

[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

Re: [basex-talk] BaseX 9.2: The Spring Edition

2019-04-17 Thread Marco Lettere
Yes, great question. We were asking this ourselves too. M. On 17/04/19 11:33, Andy Bunce wrote: I am not clear what is meant by: > - no need to import basex-api modules anymore! Does this just mean all modules listed at http://docs.basex.org/wiki/Module_Library are statically bound? /Andy

Re: [basex-talk] BaseX 9.2: The Spring Edition

2019-04-17 Thread Marco Lettere
Thanks! Great work as usual! M. On 16/04/19 16:10, Christian Grün wrote: Dear all, We are more than pleased to announce version 9.2 of BaseX, our XML framework, database system and XQuery 3.1 processor: http://basex.org/ This time, we have put a special focus on performance improvements:

Re: [basex-talk] concurrent performance issues?

2019-04-08 Thread Marco Lettere
Hi Michael, there has been a lot of discussion related to this issue. The most significant result that has alway clearly emerged and that Christian is always evangelizing us about is that beeing DB -access strictly serial, querying in paralllel is causing only trouble unless the data is actual

Re: [basex-talk] Hitting the Tail Recursion wall

2019-04-02 Thread Marco Lettere
ment = "") then $out   else if($segment = "..") then $out[position() lt count($out)]   else ($out, $segment)     })   return string-join($pathsequence, "/") }; local:topath("/a/b/c/../../../g") On 01/04/19 22:02, Andreas Mixich wrote: Marco Lettere wrote on

Re: [basex-talk] Hitting the Tail Recursion wall

2019-04-01 Thread Marco Lettere
Hi Andreas, I don't know whether I correctly understood you use-case but what about going with hof functions [1]? Maybe your code could turn to something as simple as declare function local:topath($path){   let $pathseg := tokenize($path, "/")   return     fold-left($pathseg, (), function($out,

Re: [basex-talk] Quick Windows issue: Invalid reply on port 1984, works fine on port 8984

2019-03-29 Thread Marco Lettere
Hi Jim, I think port 1984 is not meant to be connected to over HTTP. It's a pure socket connection that ships BaseX internal client-server protocol. When you connect to that port you probably have to use the Python client API in order to get your BaseX COMMANDS (not HTTP requests) serialized o

Re: [basex-talk] Serialization issue with HTTP response

2019-03-08 Thread Marco Lettere
://files.basex.org/releases/latest/ On Tue, Jan 15, 2019 at 11:35 AM Marco Lettere wrote: Hi all, we have to deal with a third-party REST service which in case of error conditions returns this mime type: application/problem+json; charset=utf-8. I wrote this RestXQ [1] to mock it. Just copy it into

Re: [basex-talk] Serialization issue with HTTP response

2019-03-06 Thread Marco Lettere
(http://expath.github.io/expath-cg/specs/http-client-2). On Tue, Jan 15, 2019 at 11:35 AM Marco Lettere wrote: Hi all, we have to deal with a third-party REST service which in case of error conditions returns this mime type: application/problem+json; charset=utf-8. I wrote this RestXQ [1] to mo

Re: [basex-talk] RESTXQ and regexp

2019-02-25 Thread Marco Lettere
eleft over" stated in the docs is not holding here. It rather looks as if BaseX is considering only the more generic one to match. Regards, Marco. On 23/02/19 23:33, Liam R. E. Quin wrote: On Fri, 2019-02-22 at 12:05 +0100, Marco Lettere wrote: (: Matches anything followed by /input :

  1   2   3   4   >