Re: [basex-talk] %unit:ignore broken since 8.0?

2015-03-31 Thread Lukas Kircher
Hi Marc, sorry for the inconvenience - there have indeed been some changes to the unit module in the recent past, that are not yet covered by the documentation. I assume unit:ignore is one of them (w/o checking the sources). Christian is out of town at the moment, so it might take a week before

Re: [basex-talk] %unit:ignore broken since 8.0?

2015-03-31 Thread Lukas Kircher
behind it is. Being able to put a message there to indicate why the test was ignored is quite handy to have. ​I agree ...

Re: [basex-talk] Simple xQuery functions do not work as expected

2015-03-25 Thread Lukas Kircher
Hi Goetz, I also had a quick try myself. It works without any problems on my setup (without the 'compare' function) and gives me the following results: *local:getLabel('_and', 'FR') -- et* *local:getLabel('_and') -- und* Setup: *OS X 10.10* *java version 1.8.0_25* *BaseX 8.0.3

Re: [basex-talk] Concurrent handling of reads while ADDing a file

2015-03-05 Thread Lukas Kircher
Hi David, this is maybe something we could append to the documentation that Christian already pointed you to. As far as I get it, the concurrency management works single writer/multiple reader. If you are writing to database A all reads on said database are blocked until modification is

Re: [basex-talk] Invoking database update from RESTXQ

2015-03-03 Thread Lukas Kircher
Hi Lars, are you annotating your RESTXQ endpoints with %updating? F.i.: declare %rest:path('/somepath') *%updating* function _:update() { updates ... }; Cheers, Lukas On Tue, Mar 3, 2015 at 10:36 AM, Lars Johnsen yoon...@gmail.com wrote: Hello all I was wondering how to perform

Re: [basex-talk] duplicate keys, because of missing commit

2015-02-10 Thread Lukas Kircher
Hi Christoph, I’m forwarding my answer (including yours) to the mailing list, as I think it is valuable input. I totally agree that the ‘equivalency' XQuery/transaction is very limiting. It sometimes leads to weird constructs trying to bypass the limitation. Quite often though the limitation

Re: [basex-talk] duplicate keys, because of missing commit

2015-02-06 Thread Lukas Kircher
Hi Christoph, the following xquery results in duplicate keys or missed updates, if we get two messages of the same person in one xml-document. All updates in the database are done at the end of the xquery and the reading inbetween gets the old state of the database. Correct. This is

Re: [basex-talk] following::* is 100x slower than preceding::*

2015-02-05 Thread Lukas Kircher
Hi Gioele, I just want to add a quick clarification as I feel like some stuff got mixed up here (Christian may correct me if his version is backed by some compiler-voodoo that I’m neglecting, as he definitely knows more about the matter). In the end, the performance depends strongly on your

Re: [basex-talk] following::* is 100x slower than preceding::*

2015-02-05 Thread Lukas Kircher
Draw : ) - 15:25. On 05 Feb 2015, at 15:25, Lukas Kircher lukaskirch...@gmail.com wrote: my question is: once the engine has found the node(s) `//*[@xml:id = lemma-aMSa”]`, couldn't it stop searching for nodes that match `following::*[(self::tei:entry or self::tei:re)]` once it has found

Re: [basex-talk] following::* is 100x slower than preceding::*

2015-02-05 Thread Lukas Kircher
my question is: once the engine has found the node(s) `//*[@xml:id = lemma-aMSa”]`, couldn't it stop searching for nodes that match `following::*[(self::tei:entry or self::tei:re)]` once it has found 3 of them? Correct. Well, maybe. Or, in other words, couldn't a positional predicate like

Re: [basex-talk] following::* is 100x slower than preceding::*

2015-02-05 Thread Lukas Kircher
in version 7.9 using the parenthesis like this does not help, I get the same ~250 milliseconds. Suggest you try the latest snapshot (8.0), things change fast. Actually I am surprised, as I was expecting this to be slower as it is more general and requires more data to be computed. (might

Re: [basex-talk] Silly XQUERY exception

2015-01-07 Thread Lukas Kircher
Hi Mansi, let $cmd := /A/*/descendant::C/descandant::*[contains(@name,'|| $n ||')]” Just a quick scan - I marked the problem in bold above - I would try ‘descendant’ instead of 'descandant’. Cheers, Lukas

Re: [basex-talk] slow response time over large update query

2014-05-16 Thread Lukas Kircher
, get queries are fast, the only problem we have is with insertions and replacements. Regards Yannis On 05/16/2014 12:40 PM, Lukas Kircher wrote: Hi Yannis, we need a little bit more information - as Dirk already pointed out. It would be especially interesting to know what you mean

Re: [basex-talk] Trying to use http:request to emulate curl -X PUT -T xxx.pdf

2014-01-05 Thread Lukas Kircher
Hi Andy, - just a quick report, as I wasn't able to solve the problem so far. This working using curl as the client curl -X PUT -T aa.pdf http://localhost:9998/tika If I add '--header Content-Type: application/pdf ' it works fine for me, too. If I don't specify the content-type I get a 415:

Re: [basex-talk] Trying to use http:request to emulate curl -X PUT -T xxx.pdf

2014-01-05 Thread Lukas Kircher
Hi all, again: curl -v -X PUT -T some.pdf http://localhost:9998/tika --header Content-Type: application/pdf ... and tika returns plain text as it should - so a working MIME type would be 'application/pdf'. *Now off to BaseX:* let $request := http:request method='PUT' http:body

Re: [basex-talk] 7.7.x UI freeze

2013-12-23 Thread Lukas Kircher
Filed a bug report on github [1] for now ... [1] https://github.com/BaseXdb/basex/issues/835 On Mon, Dec 23, 2013 at 11:18 AM, Lukas Kircher lukas.kirc...@uni-konstanz.de wrote: Hi Pascal, Recently upgraded to 7.7.2 from 7.6 and getting UI freeze on MacOSX when I try to open existing

Re: [basex-talk] Replace node attribute value

2013-11-12 Thread Lukas Kircher
Hi Thomas, just remove the 'attribute' token from your statement, as it is not necessary ... *replace value of node /mondial/country[@name='Austria']/@car_code with 'B'* Cheers, Lukas On Tue, Nov 12, 2013 at 5:13 PM, Thomas Knight tom1vuu2...@gmail.comwrote: Hi everyone, I have a problem

Re: [basex-talk] XUDY0027 - Insert target must not be empty with default namespaces

2013-07-08 Thread Lukas Kircher
Hi Carlos, the element two/ in the second example is also bound to the default namespace, so you have to take care of this. Adding a wildcard to the name test (.../**:two*) should do the trick. Your final insert query then looks like this: insert node three/ into db:open(MyDB,

Re: [basex-talk] [GUI] Properties window is frozen for a DB with a lot of documents

2013-03-26 Thread Lukas Kircher
Hi Fabrice, we just uploaded a fix (hopefully) for this problem. The maximum number of displayed nodes is now limited. Would be nice if you could report your experience with the current solution, which will be contained in the next latest stable release. Cheers, Lukas On Fri, Mar 15, 2013 at

Re: [basex-talk] Bug (?): Document damaged after db upload

2013-03-24 Thread Lukas Kircher
Hi Hans-Juergen and Arve, I'm taking a look at the issue and get back to you as soon as it's fixed or we know how to deal with it. Cheers, Lukas On Fri, Mar 22, 2013 at 3:22 PM, Hans-Juergen Rennau hren...@yahoo.dewrote: Dear BaseX team, I encountered a strange phenomenon: after loading a

Re: [basex-talk] [UPDINDEX] db:add bug

2013-03-21 Thread Lukas Kircher
Hi Fabrice, Christian just uploaded a new [snapshot] that should fix the problem. Thanks for your report! Cheers, Lukas [snapshot] http://files.basex.org/releases/latest/ On Fri, Mar 15, 2013 at 5:04 PM, Fabrice Etanchaud fetanch...@questel.comwrote: Dear all, ** ** The following

Re: [basex-talk] Scientific Numbers in Scatter Plot

2013-01-25 Thread Lukas Kircher
Hi Greg, the scatter plot takes its information whether an attribute is numerical/categorical from some DB statistics. The checkbox for the log scale in your provided screenshot is deactivated - most likely because BaseX assumes that the TIME attribute is categorical. This explains the

Re: [basex-talk] Need help on Xquery create Collection using java

2012-10-19 Thread Lukas Kircher
it on my own. Would you please help me on this. -- Thanks Regards, Riyaz Shaik, In10^s Technologies Ltd. * What you risk reveals what you value.* On 10/18/2012 3:02 PM, Lukas Kircher wrote: Hi Riyaz, that's a good starting point - a huge load of things changed with BaseX since 671, so

Re: [basex-talk] Need help on Xquery create Collection using java

2012-10-18 Thread Lukas Kircher
Hi Riyaz, 1) do you use the [latest stable snapshot] or [latest release] of BaseX? 2) Could you equip us with some more facts about your case, like the exact query, the document (structure) or maybe even an SSCCE? You could also send it directly to one of us if you don't want to post it to the

Re: [basex-talk] Need help on Xquery create Collection using java

2012-10-18 Thread Lukas Kircher
can be done, or anything needed for more clarification. -- Thanks Regards, Riyaz Shaik, In10^s Technologies Ltd. * What you risk reveals what you value.* On 10/18/2012 2:18 PM, Lukas Kircher wrote: just a little addition: Depending on the nature of the document you add and the kind

Re: [basex-talk] update database with insert and db:open-id

2012-10-10 Thread Lukas Kircher
] documentation for assistance) If you have further questions just drop a note ... Looking forward to your report! Cheers, Lukas [UPDINDEX] http://docs.basex.org/wiki/Options#UPDINDEX [OPTIONS] http://docs.basex.org/wiki/Options On Wed, Oct 10, 2012 at 10:40 AM, Lukas Kircher lukaskirch

Re: [basex-talk] update database with insert and db:open-id

2012-10-10 Thread Lukas Kircher
Me again, sorry :) Getting hands on the optimization just became easier - simply download the latest [snapshot]. No need to hussle with GitHub. [snapshot] http://files.basex.org/releases/latest/ On Wed, Oct 10, 2012 at 10:56 AM, Lukas Kircher lukaskirch...@gmail.comwrote: Hi again - small

Re: [basex-talk] BUG# Multiple Thread try to execute some Query

2012-09-28 Thread Lukas Kircher
Hi Samuel, testing on my machine (OSX 10.8, Java 7) I can only report what you already came across yourself: - activating/deactivation output makes no difference - Java 6/7 makes no difference - limiting PARALLEL option to 1 seems to resolve the issue As we couldn't figure out the problem on

[basex-talk] Fwd: Usin Basex for Desktop Application

2012-04-26 Thread Lukas Kircher
Hi Anand, forwarding this to the list ... Regards, Lukas -- Forwarded message -- From: Anand Chiney anandc@gmail.com Date: Thu, Apr 26, 2012 at 10:25 AM Subject: Re: [basex-talk] Usin Basex for Desktop Application To: Lukas Kircher lukaskirch...@googlemail.com Hi Lukas, I

Re: [basex-talk] Problem with BaseX inserting a namespace … how do I stop it

2012-04-03 Thread Lukas Kircher
/ /h /d /a Query executed in 1.71 ms. --- So, item 'h' suddenly gains a namespace. Sorry it's a bit convoluted to recreate, but it gets the results I see. Cheers Mike On 2 Apr 2012, at 16:18, Lukas Kircher wrote: Ok, I see the problem, unfortunately I still can't replicate

Re: [basex-talk] Usin Basex for Desktop Application

2012-03-27 Thread Lukas Kircher
Hi, It's generally possible to use BaseX as a standalone application. You could start by taking a look at our local BaseX API examples [1] in our documentation. Feel free to contact us, if you need any assistance. Regards, Lukas [1] http://docs.basex.org/wiki/Java_Examples On Tue, Mar 27,

Re: [basex-talk] nesting queries

2012-03-14 Thread Lukas Kircher
Hi Cerstin, However, I am not sure if it is possible at all to mix displaying (in the then part) and updating (in the else part) True - that's actually a limitation of the update specification, wich forbids mixing updating and non-updating expressions. You can find some information on it in