Re: [basex-talk] Tumbling window

2019-04-03 Thread Kirsten, Dirk
Buon giorno, there as is a “previous” clause in a window, which binds to the previous value. With this you can simply express what you verbalized in XQuery: for tumbling window $s in ("this", "is", "an", "example", "." , "this", "is", "another", "[", "example", ".", "]", "Another", "example", "

Re: [basex-talk] RESTXQ, multipart/form-data, out of memory saving to file

2019-03-20 Thread Kirsten, Dirk
Hello James, well, that is what I would expect BaseX to do. If you put the file in a map it needs to be in memory. For a large file your memory might run out. With your version 2) I assume you use the streaming capabilities of file:write-binary (see http://docs.basex.org/wiki/Streaming_Module fo

Re: [basex-talk] file:write and arrow operator

2018-07-04 Thread Kirsten, Dirk
Hi Guiseppe, You could also write a helper library and simply switch the parameters yourself. So your module file.xqm would look something like that: module namespace f = "http://guiseppe/file";; declare function f:write($items as item()*, $path as xs:string) as empty-sequence() { file:write($

Re: [basex-talk] Nugets?

2018-06-08 Thread Kirsten, Dirk
Hello Peter, just my thoughts, and Christian for sure will answer you more politely, but I am quite confused by your email. First of, I (and I am sure many others…) have never heard of Nuget before and saying “engineers expect that” is certainly wrong. It might be true for the C# community, but

[basex-talk] (no subject)

2018-05-22 Thread Kirsten, Dirk
Dear list, I tried to insert a huge XML document (english wikipedia). When doing so and using the default parser I got the following warning: "/my/path/enwiki-latest-pages-articles.xml" (Line 61696838): JAXP00010004: The accumulated size of entities is "50,000,001" that exceeded the "50,000

Re: [basex-talk] baseX vs ExistDB

2018-04-20 Thread Kirsten, Dirk
Hi Feargal, Just my two cents, but to stress the fact what Christian is saying: BaseX is an XML database (albeit the clever marketing guys at BaseX now branded it as "BaseX Framework" with the new webpage ;-) ), so of course it actually loads XML files into the database itself. I am wondering

Re: [basex-talk] Streaming results

2018-04-20 Thread Kirsten, Dirk
Hi Bram, hi Christian, I am surprised, I would have expected you to point to the upcoming websocket implementation (see https://github.com/BaseXdb/basex/issues/1449)? To me the scenario described by Bram seems like a perfect fit for websockets, where you simply subscribe to such a generator and

Re: [basex-talk] Increase/Decrease font size not possible with MacOS

2018-04-19 Thread Kirsten, Dirk
g Java 9? Have the shortcuts been working with 9.0 and/or 8.6.7? Cheers Christian Kirsten, Dirk mailto:dirk.kirs...@senacor.com>> schrieb am Do., 19. Apr. 2018, 20:33: Hi Christian, Minor issue, but using the latest snapshot I am unable to increase/decrease the editor font size in

[basex-talk] Increase/Decrease font size not possible with MacOS

2018-04-19 Thread Kirsten, Dirk
Hi Christian, Minor issue, but using the latest snapshot I am unable to increase/decrease the editor font size in MacOS (using Command +/-), whereas it works flawlessly using Windows (with Ctrl +/-). Cheers Dirk Dirk Kirsten __ Senacor Technologies AG D?sseldorfer S

Re: [basex-talk] Maven repo 9.0

2018-03-27 Thread Kirsten, Dirk
aniel Gr?zinger -Urspr?ngliche Nachricht- Von: Marc van Grootel [mailto:marc.van.groo...@gmail.com] Gesendet: Dienstag, 27. M?rz 2018 21:38 An: Kirsten, Dirk Cc: BaseX Betreff: Re: [basex-talk] Maven repo 9.0 Hi Dirk, Yes, it is synced to Maven Central now. The net.xqj:basex-xqj:9.0 depen

Re: [basex-talk] Maven repo 9.0

2018-03-27 Thread Kirsten, Dirk
Hi Marc, hi list, unfortunately something went wrong during Christians deploy process and he is now on (a well-deserved) holiday. However, he wrote me about it (as I setup the Maven Central deploy process and I think I just "fixed" it (not really a fix, but using the UI...). It is release to OS

Re: [basex-talk] Big Surprise from outputs in version 7.3.1 and 8.6.7 ?

2018-02-02 Thread Kirsten, Dirk
t and how it differs from what you expect Cheers Dirk Von: Bang Pham Huu [mailto:b.pham...@jacobs-university.de] Gesendet: Freitag, 2. Februar 2018 11:19 An: Kirsten, Dirk ; basex-talk@mailman.uni-konstanz.de Betreff: Re: AW: AW: [basex-talk] Big Surprise from outputs in version 7.3.1 and 8.6.7 ?

Re: [basex-talk] Big Surprise from outputs in version 7.3.1 and 8.6.7 ?

2018-02-02 Thread Kirsten, Dirk
m Huu [mailto:b.pham...@jacobs-university.de] Gesendet: Freitag, 2. Februar 2018 10:08 An: Kirsten, Dirk ; basex-talk@mailman.uni-konstanz.de Betreff: Re: AW: [basex-talk] Big Surprise from outputs in version 7.3.1 and 8.6.7 ? Yes, I'm sure I tested with old database from version 7.3.1 for

Re: [basex-talk] Big Surprise from outputs in version 7.3.1 and 8.6.7 ?

2018-02-02 Thread Kirsten, Dirk
Hallo, are you sure you are querying the same collection? I am quite confused by your different outputs, because they seem to have not much in common (the results on the left almost exclusively return URIs pointing to opengis.net and the one on the right to localhost:8080? If you are sure it w

Re: [basex-talk] Hundreds of thousands of java.io.IOException: Stream Closed in BaseX 7.3.1 from only catalina.out of Tomcat's log?

2018-01-05 Thread Kirsten, Dirk
Hello Bang, I am going to assume that you use the quite outdated version 7.3.1 because it was the only one in the Maven Central repository at the time. Since a few months we improved the build process and new release are now also available in Maven Central (but also in the BaseX internal Maven

Re: [basex-talk] Scripting and modules

2017-12-01 Thread Kirsten, Dirk
Hello Kristian, XQUERY just executes actual XQuery code, so you can simply import the module as you normally would. So something like XQUERY import module namespace up = 'http://your.namespace' at 'your-module-location.xqm'; up:updateFunctionA() should work fine. Cheers Dirk Senacor Techno

Re: [basex-talk] FTP client

2017-11-29 Thread Kirsten, Dirk
-Ursprüngliche Nachricht- Von: Christian Grün [mailto:christian.gr...@gmail.com] Gesendet: Mittwoch, 29. November 2017 16:01 An: Kirsten, Dirk Cc: basex-talk@mailman.uni-konstanz.de Betreff: Re: [basex-talk] FTP client Hi Dirk, there is an FTP module in our internal basex-modules repository. If you don&#

[basex-talk] FTP client

2017-11-29 Thread Kirsten, Dirk
Hi list, I would like to access a file lopcated on a remote FTP server. But to my surprise I couldn't find anything or anyone trying to do this before. Basically I would like something similar to fetch:text(), but using ftp instead of HTTP. Is there any simple way to do this using XQuery or som

Re: [basex-talk] losses von tags?

2017-11-02 Thread Kirsten, Dirk
Hi Michael, seems like you want to rename the node „dat“ into „div“. So instead of recreating the node it feels much more natural to me to use XQuery Update to transform your node. It is as simple as that: text is important. update rename node . as "div" Cheers Dirk Senacor Technologies

Re: [basex-talk] xquery:eval Issue with bindings

2017-10-20 Thread Kirsten, Dirk
Hello Shaun, seems like a simple mistake with your parathesis. It should be: declare variable $diagramSelection := xquery:eval(file:read-text("D:\\XQuery\\VPExchange Queires\\diagramSelectionCoR.xq"), $bindings); Instead, you applied $bindings to the file:read-text() function, which expects a

Re: [basex-talk] [basex-announce] Moving on to Java 8?

2017-09-27 Thread Kirsten, Dirk
Hi Christian, +1 from me as well. However, I have to say that the enterprisey customer(tm) I currently work for still uses Java 7 (because whatever...) and I would imagine it is not unheard of in the rest of the enterprise world. But I wouldn't worry too much about it: First, for the ad-hoc stu

Re: [basex-talk] Basex Inner Workings

2017-09-15 Thread Kirsten, Dirk
Hello Athanasios, I think you should really check the actual query plan which is executed. If you have such a huge spike in performance surely they processor will be executing it differently. I don't think looking into file access patterns BaseX internally uses is very useful for an end user. Y

Re: [basex-talk] Startup hooks or persisting jobs

2017-08-28 Thread Kirsten, Dirk
Hi Kendall, there is currently no way to do this using BaseX itself. But I also don’t think that should be the job of BaseX. Instead you can write a servlet and deploy it using Tomcat which runs some Java application, e.g. which could trigger some BaseXX command. See http://crunchify.com/how-t

Re: [basex-talk] Could not reserve enough space for object heap

2017-08-24 Thread Kirsten, Dirk
Hi Bram, sounds like Christian is on vacation, so I try to chip in. BaseX is definitely designed with have multiple/many documents in a database as this is how most people structure their XML database. So having fewer databases with more documents seems like in general a better approach, more s

Re: [basex-talk] Could not reserve enough space for object heap

2017-08-16 Thread Kirsten, Dirk
7;java -version'? Mine is: java version "1.8.0_144" Java(TM) SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode) If it does not contain '64-Bit', it's 32 bit, and you need to install a different binary from Ora

Re: [basex-talk] Could not reserve enough space for object heap

2017-08-15 Thread Kirsten, Dirk
Hi Bram How did you set the java heap space? Usual way would be by using the command line and setting e.g. java -Xmx2g However, the object which throws the error is already nearly 1,5GB in size, so if other stuff has to be allocates as well it could simply be that it is still not enough. Tr

Re: [basex-talk] Artifact in Maven Central?

2017-08-02 Thread Kirsten, Dirk
urzer - Aufsichtsratsvorsitzender: Daniel Grözinger -Ursprüngliche Nachricht- Von: Christian Grün [mailto:christian.gr...@gmail.com] Gesendet: Mittwoch, 2. August 2017 18:50 An: Kirsten, Dirk Cc: BaseX Betreff: Re: [basex-talk] Artifact in Maven Central? Hi Dirk, Thanks for the kudos

[basex-talk] Artifact in Maven Central?

2017-08-02 Thread Kirsten, Dirk
Hi guys, awesome database you got there! Imagine you want to use this database in a big enterprisey environment, where they block all kinds of ridiculous stuff, because of reasons... So for example you can't simply add the BaseX repository to your pom.xml, because actually all access is routed

Re: [basex-talk] State of replication and clustering

2017-08-02 Thread Kirsten, Dirk
en that BaseX itself is mostly implemented solely by Christian I think he is doing an extraordinary job. Cheers Dirk -Ursprüngliche Nachricht- Von: Richard Stanley [mailto:richardlstan...@gmail.com] Gesendet: Mittwoch, 2. August 2017 04:19 An: Andreas Jung Cc: Kirsten, Dirk ; BaseX Betr

Re: [basex-talk] State of replication and clustering

2017-08-01 Thread Kirsten, Dirk
Hi Andreas, I am not quite sure to what presentation at XML Prague 2013 you are referring to, but I would guess it was mine given that I was working at this topic at that time and I think I would remember hearing someone else giving a talk about it... Unfortunately, this was a researched proje