[basex-talk] server time out

2013-05-31 Thread Cerstin Elisabeth Mahlow
Hi, I run several web applications using various CGI scripts to read and update BaseX databases via various XQUERIES. I use the basexserver -S command to start the server on a CentOS Server. Maybe this is not the very best idea. I already split the data into various databases to avoid

Re: [basex-talk] whitespace around comments

2013-04-12 Thread Cerstin Elisabeth Mahlow
Hi Christian, Am 12.04.2013 um 10:49 schrieb Christian Grün christian.gr...@gmail.com : our CHOP flag is subject to frequent discussions, which is why we will eventually change the default to FALSE. I really second that! For now, we are still a little bit resistant, as such a change will

[basex-talk] xquery help

2013-03-26 Thread Cerstin Elisabeth Mahlow
Hi, I got stuck with an XQuery, could you please help? I have data like this: collection entry q[text() contains text ('Johann' ftand 'Ballhorn') distance at most 5 words ordered][self::*:p or self::*:q]/q id12345/id pbey welchen die Verbesserungen durch Johann Ballhorn öfter vorkommen

Re: [basex-talk] xquery help

2013-03-26 Thread Cerstin Elisabeth Mahlow
Hi Alex, thanks for your answer! Am 26.03.2013 um 18:43 schrieb Alexander Holupirek alexander.holupi...@uni-konstanz.de : if I got you right you want to evaluate a query, such as ft:mark(pbey welchen die Verbesserungen durch Johann Ballhorn öfter vorkommen als man glauben

[basex-talk] replace value vs. insert node

2013-03-22 Thread Cerstin Elisabeth Mahlow
Hi, in terms of performance, is it cheaper to update the value of an existing node or to insert a node with that value? I'm not sure if I should create empty nodes or nodes with a default-value in the first place and when users specify values these nodes will be updated. Or if I insert

Re: [basex-talk] store results of a query in a new database

2013-03-21 Thread Cerstin Elisabeth Mahlow
Hi Christian, Am 18.03.2013 um 23:53 schrieb Christian Grün christian.gr...@gmail.com: And my assumption isn't true: The document has to exist, I cannot specify a non-existing document, i.e., a document I maybe would like to produce later as an export of the DB. This sounds surprising to

Re: [basex-talk] store results of a query in a new database

2013-03-18 Thread Cerstin Elisabeth Mahlow
Hi Christian, Am 18.03.2013 um 15:54 schrieb Christian Grün christian.gr...@gmail.com : So I have the DB 'collect' open and then do: db:create('annotate-abcdef') as you guessed, you’ll have to specify a document path, in which you can then add new nodes. Every XML document has a root node,

Re: [basex-talk] re-sort database

2013-03-14 Thread Cerstin Elisabeth Mahlow
Hi, Am 14.03.2013 um 00:02 schrieb Liam R E Quin l...@w3.org: On Wed, 2013-03-13 at 22:29 +0100, Christian Grün wrote: You could try to export your data and create a new database without updatable index structures; this could also speed up your updates. Maybe it even allows you to update

[basex-talk] store results of a query in a new database

2013-03-14 Thread Cerstin Elisabeth Mahlow
Hi, I would like to store the results of an xquery extracting some nodes from an existing database into a new database. So I have the DB 'collect' open and then do: db:create('annotate-abcdef') and then for $i at $p in //entry[phraseme[text() = abcdef] and selected[text() = yes]] let

Re: [basex-talk] text() vs string()

2013-01-29 Thread Cerstin Elisabeth Mahlow
Hi Wendell, Am 28.01.2013 um 22:27 schrieb Wendell Piez: 1. Unless I learn better, I'm going to prefer [B] or [C], because in my world, mixed content is common; is there any reason (performance or otherwise) to prefer [A] in cases where I know it will be robust? Is there any reason to prefer [B]

Re: [basex-talk] Upcoming: XMLPrague 2013

2012-12-14 Thread Cerstin Elisabeth Mahlow
Hi Christian, Am 21.11.2012 um 02:46 schrieb Christian Grün: The XMLPrague Conference is the most important European event for XML specialists, developers and users. Next year, it will take place from Feb 8-10: http://www.xmlprague.cz/ Once again, our team will be present there, and it will

Re: [basex-talk] slow query

2012-11-16 Thread Cerstin Elisabeth Mahlow
Hi Christian, Am 15.11.2012 um 20:00 schrieb Christian Grün: for $i at $p in //entry[phraseme[text() = Ad0194] and selected[text() = yes]] It’s often beneficial to avoid nested predicated. Does the following version give you better results? //entry[phraseme/text() = Ad0194 and

[basex-talk] index:facets()

2012-10-05 Thread Cerstin Elisabeth Mahlow
Hi, after Andreas recommended using index:facets(), my application speeds up. However, I don't think that this is the best solution. The database, I apply this function to is changing constantly. As the function is using the index, I would have to re-create the index first, is this correct?

Re: [basex-talk] index:facets()

2012-10-05 Thread Cerstin Elisabeth Mahlow
Web: http://www.oldphras.net Von: Andreas Weiler [andreas.wei...@uni-konstanz.de] Gesendet: Freitag, 5. Oktober 2012 18:51 An: Cerstin Elisabeth Mahlow Cc: basex-talk@mailman.uni-konstanz.de Betreff: Re: [basex-talk] index:facets() Hi Cerstin, re-created

Re: [basex-talk] bug: cancel = shut down

2012-10-04 Thread Cerstin Elisabeth Mahlow
...@unibas.ch Web: http://www.oldphras.net Von: Michael Seiferle [m...@basex.org] Gesendet: Donnerstag, 4. Oktober 2012 10:41 An: Cerstin Elisabeth Mahlow Cc: basex-talk@mailman.uni-konstanz.de Betreff: Re: [basex-talk] bug: cancel = shut down Hi Cerstin, true

[basex-talk] bug: cancel = shut down

2012-10-03 Thread Cerstin Elisabeth Mahlow
Hi, when closing BaseX GUI, you will be asked to save edited files. When you click cancel, it shuts down immediately. Shouldn't it cancel the closing process but not the application? Best regards Cerstin -- Dr. phil. Cerstin Mahlow Universität Basel Departement Sprach- und

Re: [basex-talk] slow processing

2012-10-02 Thread Cerstin Elisabeth Mahlow
Elisabeth Mahlow Cc: basex-talk@mailman.uni-konstanz.de Betreff: Re: [basex-talk] slow processing Hi Cerstin, can you check each single query contained in the script with the GUI and see how much time each one takes? Why are you creating a new session for each query? You should be able to take the same