Re: [basex-talk] strange behaviour of the BaseXgui-editor

2013-10-29 Thread Christian Grün
Hi Rob, I managed to fix the bug, and I’ve uploaded a new stable snapshot [1]. Thanks, Christian [1] http://files.basex.org/releases/latest/ ___ 2013/10/26 Christian Grün : >> Improper use? Potential bug? Your feedback is welcome: >> [...] >> C

Re: [basex-talk] request:http() and servlet context

2013-10-29 Thread Christian Grün
Hi Alexander, it has been a while, but I’ve now added a request:context-path() function to BaseX [1]. A new snapshot is waiting for you [2]. Best, Christian [1] http://docs.basex.org/wiki/Request_Module#request:context-path [2] https://github.com/BaseXdb/basex/issues/765

Re: [basex-talk] Error message

2013-10-31 Thread Christian Grün
Hi Lars, > Line too long for a single database {filename} and {line number}. I guess it was "Input is too large for a single database"? In this case, the recommended procedure is to create multiple databases for your collections, which can then be queried by a single XQuery expression. You coul

Re: [basex-talk] ~webdav locks + server stop = conflicted locks

2013-11-05 Thread Christian Grün
Hi France, I’ll pass your e-mail on to Dimitar; he’ll probably take care of this on Friday. Thanks, Christian ___ > This Issue occurs when the server stops while files are open/locked: > > When basex starts it doesn't show lock icons on files the user had locked > before

Re: [basex-talk] Writeback option

2013-11-06 Thread Christian Grün
Dear Stefan, > - My impression is that the WRITEBACK option only works for databases > directly created from an initial input xml file (CREATE DB > ). Is that true? My other tests involving ADD > commands failed to write back inserted or deleted nodes. that’s correct: the WRITEBACK option is on

Re: [basex-talk] Blocking threads on updating calls

2013-11-06 Thread Christian Grün
Hi Joe, > Is there any way I can specify exactly what should be locked when going into > an expression? Or better yet have basex lock nothing? Unfortunately, the locking algorithms cannot be completely disabled, but we could think about providing such a mode. XQuery Locking Options [1] could then

Re: [basex-talk] Blocking threads on updating calls

2013-11-06 Thread Christian Grün
periences. Christian > On Wed, Nov 6, 2013 at 11:13 AM, Christian Grün > wrote: >> >> Hi Joe, >> >> > Is there any way I can specify exactly what should be locked when going >> > into >> > an expression? Or better yet have basex lock nothing? &g

Re: [basex-talk] Receiving user feedback (too much traffic for BaseX?)

2013-11-07 Thread Christian Grün
Hi France, > We have found that BaseX is unable to handle so many write operations. > […] > Expectations: Average 5 comments/minute, but bursts of 2 per second should > not break anything. It’s not possible to give a general limit of write operations per second in BaseX. In a little performance t

Re: [basex-talk] Writeback option

2013-11-08 Thread Christian Grün
…I’ve made it an GitHub issue: https://github.com/BaseXdb/basex/issues/786 On Fri, Nov 8, 2013 at 5:31 PM, Christian Grün wrote: >> - Concerning your comment on using the WRITEBACK option only for single >> file data bases: debugging the basex server yields that when using more >

Re: [basex-talk] Writeback option

2013-11-09 Thread Christian Grün
, Christian [1] https://github.com/BaseXdb/basex/issues/786 ___ On Fri, Nov 8, 2013 at 6:51 PM, Christian Grün wrote: > …I’ve made it an GitHub issue: https://github.com/BaseXdb/basex/issues/786 > > > On Fri, Nov 8, 2013 at 5:31 PM, Christian Grün > wrote: &

Re: [basex-talk] my first question: how to deal with the duplicated files in basex?

2013-11-11 Thread Christian Grün
Hi Easy, please check out our documentation for more details [1]: try db:open() or fn:collection(). Christian [1] http://docs.basex.org/wiki/Databases ___ On Mon, Nov 11, 2013 at 3:57 AM, easy wrote: > > > Hi,all, > I found basex db can add same file in same db and c

Re: [basex-talk] dynamically evaluate XPath

2013-11-11 Thread Christian Grün
Hi Gerrit, you are probably looking for the xquery:eval function [1]: xquery:eval( "db:open('" || $db || "', '" || $doc || "')" || $xpath) You can make the query string safer by bind ing variables to the evaluated expression: xquery:eval( "db:open($db, $doc)" || $xpath, map { "db" := $

Re: [basex-talk] Issue for JAVA Bindings for Basex 7.7

2013-11-11 Thread Christian Grün
Thanks Jean-Marc, the issue has now been fixed, as described in https://github.com/BaseXdb/basex/issues/787. Best, Christian ___ On Mon, Nov 11, 2013 at 4:48 PM, jean-marc Mercier wrote: > Hi, > > To resume an exchange with BaseX members : > > The issue is JAVA Bindings

Re: [basex-talk] Xquery for noobs : the HashSet problem

2013-11-12 Thread Christian Grün
Dear JohnLeM, thanks for your mail. As you already noted, XQuery is a functional language, and this is the reason why XQuery maps are not exactly comparable to maps and sets, as they are used in imperative languages: All maps in XQuery are persisent (immutable): Once a map has been generated, it

Re: [basex-talk] Xquery for noobs : the HashSet problem

2013-11-12 Thread Christian Grün
to in-memory copy. >> >> >> - second : it lacks powerful libraries, as complete math modules. >> >> > What kind of functions would you be interested in? >> >> I need a stochastic modulus, as >> http://www.boost.org/doc/libs/1_55_0/libs/math/doc/html/dist.

Re: [basex-talk] Xquery for noobs : the HashSet problem

2013-11-12 Thread Christian Grün
ested in? > > I need a stochastic modulus, as > http://www.boost.org/doc/libs/1_55_0/libs/math/doc/html/dist.html > also a linear Algebra modulus as UBLAS > http://www.boost.org/doc/libs/1_54_0/libs/numeric/ublas/doc/index.htm > > I guess that I could find JAVA equivalent an

Re: [basex-talk] Xquery for noobs : the HashSet problem

2013-11-12 Thread Christian Grün
Charles already pointed out well why it is beneficial to stick with the functional approach. It takes some time to comprehend the functional coding paradigm, but it really helps to write better code in general, even in imperative languages! Well, at least it helped me. > However, as mentionned abo

Re: [basex-talk] Multi threading doing slow process of Xquery Execution

2013-11-13 Thread Christian Grün
Hi Pushpendra, first of all, it’s highly advisable to only create one instance of the Context class and pass it on as reference. Regarding the slow down, I assume that your queries read a lot of data sequentially, and the concurrent query execution leads to competing disk operations, leading to ra

Re: [basex-talk] Multi threading doing slow process of Xquery Execution

2013-11-13 Thread Christian Grün
> I tried it with single Context also still it is taking same time as with > different context. Well, this is not about performance. Several context instances may lead to the corruption of your data if you e.g. decide to perform write operations. The JavaDoc may give you some hints [1]. Beside tha

Re: [basex-talk] BaseX rest and PHP

2013-11-13 Thread Christian Grün
Hi Lars, I’m also interested in the feedback of other mailing list readers, as we haven’t encountered such problems with the rest interface so far. The HTTP response could shed some light on the problem, though; could you please send us the HTTP response header for the calls to BaseX and SQLite?

Re: [basex-talk] BaseX Scalability

2013-11-14 Thread Christian Grün
Hi Martí, > We review at http://vschart.com/compare/basex/vs/exist-db that it is > horizontal scalable but, on BaseX documentation portal we can not find it. I don’t know who edited the info on this page, but I’ve just revised the entry. We actually have some internal projects on horizontally sca

Re: [basex-talk] Collations and testing for attribute equality

2013-11-15 Thread Christian Grün
Hi James, thanks for your observation. Indeed this was a bug in the query optimizer, which I’ve just fixed (index rewritings are now prohibited when a non-default collation is specified). However, if you are working with 7.7.2, Alex’ query rewriting is a good workaround. All the best, Christian _

Re: [basex-talk] db:open(), xquery:eval(), and path()

2013-11-17 Thread Christian Grün
Hi Gerrit, > db:node-id(xquery:eval("db:open('doc', 'doc.xml')/*")) > => 0 some quick feedback (I'll further look into this): when running xquery:eval, a main-memory copy of the original node is created, which may have another node id than the original node. To get the node id of the original nod

Re: [basex-talk] db:open(), xquery:eval(), and path()

2013-11-17 Thread Christian Grün
> for $doc in db:open('doc', 'doc.xml')/* > let $nodes as element(*)* := xquery:eval("$doc//*", map{"doc":=$doc}) > return > for $node in $nodes > return I tried to rewrite you query into sth. that may be of help for you… for $doc in db:open('doc', 'doc.xml')/* let $query := '$doc//* ! '

Re: [basex-talk] Technical and commercial support informations about BaseX

2013-11-17 Thread Christian Grün
Hi Jean-Marc, > I'd like to start a thread regarding some technical and commercial support > aspects of BaseX. > The preliminary question is : is this mailing list the correct container for > this topic ? Yes, the mailing list is open for anything related to BaseX. If you believe that your reques

Re: [basex-talk] how about use basex to manage the large quntity of personal health information files?

2013-11-17 Thread Christian Grün
Hi Easy, so you want to know if eXist-db or BaseX is the better system? There’s clearly no answer to this, as XML as technology is just too diverse. Next, the history of both systems are simply too different. It would be easy for us to write benchmarks that outperform all other XML databases, but

Re: [basex-talk] Is there a better way to do develop or test with c/s mode server?

2013-11-17 Thread Christian Grün
>I found the Gui can only work with local mode, but I want do some xquery > test / sandbox with basex server, only found can do in client mode, Is there > some other way ?esp for restful web mode. That’s true. We have no existing web admin interface for BaseX, but if you want to perform simple

Re: [basex-talk] db:open(), xquery:eval(), and path()

2013-11-17 Thread Christian Grün
ample, '[namespace-uri(/*) = > ''http://www.tei-c.org/ns/1.0'']'. > > I’ll have to deal with writing back the (edited) fragments; maybe I’ll > contact you folks off-list soon for some guidance on forging the updating > queries because I never did updatin

Re: [basex-talk] Technical and commercial support informations about BaseX

2013-11-18 Thread Christian Grün
> As far as I understand, my first option is to ship BaseX together with its > native BSD licensing. This is probably enough for my needs in a first phase, > fitting for non critical apps, or POC (proof of concept) for clients. True; the license gives you all righs to ship BaseX in any free or com

Re: [basex-talk] Linear Algebra module in XQUERY ?

2013-11-18 Thread Christian Grün
Hi again, > - I don't know how to allocate and address directly contiguous memory blocks > in XQUERY. Operations on this level cannot be realized in XQuery. Instead, the query processor is responsible for all memory management. If operations turn out to really be too cpu/memory consuming, Java bi

Re: [basex-talk] query function like matches can't work fast as = op , how to optimizer it? how to create range index?

2013-11-18 Thread Christian Grün
Hi Easy, >I found the @attribute='value' operation will fast after create attribute > index, but function like matches,contains,starts-with has no effect even > after create text index. > how to optimum it , how to create path index, range index? matches() works on arbitrary regular expres

Re: [basex-talk] Linear Algebra module in XQUERY ?

2013-11-18 Thread Christian Grün
> That's interesting. Specially if further version of xquery support > constant-sized arrays, meaning that xquery can allocate contiguous block of > memory (I will not have to bind JAVA anymore !). This will depend on the way how XQuery arrays are implemented; a constant-sized array could be one p

Re: [basex-talk] Blocking threads on updating calls

2013-11-19 Thread Christian Grün
Hi Joe, >> I'm going to try and build my own version of basex with the option to turn >> off all locking. If I get something acceptable I will send a pull request >> for it to be merged in. did you already have to look at the code? My impression is that we could quite easily add a QUERYLOCKING t

Re: [basex-talk] Blocking threads on updating calls

2013-11-19 Thread Christian Grün
, we’ll probably have to look into your implementation first. Thanks for your feedback, Christian > > I'm planning on submitting a pull request for the DISABLELOCKING feature > soon. > > Thanks, > Joe > > > > On Tue, Nov 19, 2013 at 5:26 AM, Christian Grün &

[basex-talk] GUI Editor, Code Completions

2013-11-19 Thread Christian Grün
Dear followers, we are interested to get your opinion on the code completions that we’ve just added to the text editor of our BaseX GUI [1]. You are invited to propose templates that you are missing here! Many of you would probably love to have context-based code completions (such as all function

Re: [basex-talk] Bugreport V7.7 java.lang.ArrayIndexOutOfBoundsException

2013-11-19 Thread Christian Grün
Hi Bodo, thanks for sending the testing code; I’ll have a look at it later. To be sure: does the problem also occur with the latest snapshot [1]? Thanks, Christian [1] http://files.basex.org/releases/latest/ ___ On Tue, Nov 19, 2013 at 11:58 PM, Bodo Hüsemann wrote: > H

Re: [basex-talk] Bug with Full Text functions ?

2013-11-20 Thread Christian Grün
Hi Maud, thanks for your e-mail. I’m pleased to hear you’ve nearly finished your work! > We only have a last bug using the Full Text functions. Out of curiosity: have you also tried 7.7.2 or the latest snapshot? > works fine and returns the number of occurrences whereas > let $o

Re: [basex-talk] BaseX Interpreter / Eclipse integration issue ?

2013-11-22 Thread Christian Grün
Hi Jean-Marc, the bug you encountered is due to a newly feature (called “function inlining”) we’ve introduced just recently. It will be fixed soon [2]. Until then, you can simply disable it by setting INLINELIMIT to 0 [1] This can e.g. be done by choosing »Command« in the dropdown box of the GUI m

Re: [basex-talk] BaseX Interpreter / Eclipse integration issue ?

2013-11-22 Thread Christian Grün
s it means that it is > possible to inline function in XQUERY ? This is quite close to template > mechanism programming ! > > Cheers, > > Jean-Marc > > > > > > > > > > > 2013/11/22 Christian Grün >> >> Hi Jean-Marc, >> >

Re: [basex-talk] document update timestamp?

2013-11-24 Thread Christian Grün
Hi Pascal, > Is there any way to retrieve the date/time a document was pushed into a > BaseX database? Currently, no timestamp is stored for each single document. > We have an external tool that needs to sync a folder > holding XML files with a BaseX database (and we don't want to reload the > e

Re: [basex-talk] Database-level locking

2013-11-24 Thread Christian Grün
Hi Charles, currently, there is no such option in BaseX, but I’ve added an issue [1]; let’s see if some more people give feedback on this. Thanks, Christian [1] https://github.com/BaseXdb/basex/issues/802 ___ On Fri, Nov 22, 2013 at 4:16 PM, Charles Duffy wrote: > Howdy

Re: [basex-talk] Line Number for Node

2013-11-26 Thread Christian Grün
Hi Jeremy, there’s currently no way to retrieve the original line/column position of XML nodes, as this would blow up the data structure. The same applies to the original XML file only serves as database input. The fn:path() function gives you the unique path to a node in a document, maybe that h

Re: [basex-talk] Getting 404s through restxq

2013-11-26 Thread Christian Grün
Hi Joe, all I can say is: No, we haven’t encountered this behavior so far. Maybe someone else out there? Usually, it’s even no problem to modify the RESTXQ files while a server is running. If BaseX is started with the debugging flag (-d), you’ll get some more output on the command-line. Beside th

Re: [basex-talk] HTML serialization error

2013-11-27 Thread Christian Grün
Hi Lars, > When converting files from xml to html, there appeared a serialization error > saying something to the effect that x84 was an illegal html character. The > files were written using file:write with parameter $params defined as: Do you have some idea how the x84 byte was stored into the

Re: [basex-talk] how to develop our repository lib package?

2013-11-27 Thread Christian Grün
It should be possible to parse XAR packages as long as they don’t contain any implementation-specific contents. On Thu, Nov 28, 2013 at 12:59 AM, easy wrote: > hi,all, >what's the extension package specifinition? > can I install exist-db 's xar package into basex? > > > > > > -- > 此致 > >

Re: [basex-talk] Reg : Group By Clause

2013-11-28 Thread Christian Grün
Hi Chandra, the following query runs fine on my machine, even with 64mb assigned to Java: { for $data in collection("MyFile")//R let $grpByValue := data($data/C4) group by $grpByValue return { distinct-values($data/C7) } { sum($data/C7) } { $grpByValue } 1 } Did yo

Re: [basex-talk] preprocessor instructions for BaseX XQUERY interpreters ?

2013-11-29 Thread Christian Grün
Hi Jean-Marc, > Note : processor instructions might not be relevant for XQuery, since > interpreters are heavily optimized. Dito. > 2) Could you confirm that BaseX interpreter will not try to interpret "dead" > code ? If you want to see what’s going on under the hood, simply check out the outpu

Re: [basex-talk] default element namespace and restxq

2013-11-29 Thread Christian Grün
Hi Stefan, thanks for the bug report. The issue is now fixed in the latest stable snapshot [1]. Best, Christian [1] http://files.basex.org/releases/latest/ ___ On Wed, Nov 27, 2013 at 6:21 PM, wrote: > Hi, > I'm experiencing problems using a default element namespace i

Re: [basex-talk] Decoupling custom code with restxq

2013-11-30 Thread Christian Grün
Hi Sebastian, thanks for your e-mail; I’m pleased to see you are still working with BaseX. > So just by dropping a file like „custom.xqm" in the restxq path, we can > customize the system. …sounds like a nice idea. > The drawback is that we can only use this for HTTPS requests from the > client

Re: [basex-talk] user.dir and BaseX Add Command

2013-11-30 Thread Christian Grün
Hi Simon, > 1. With exporting, this seems to work fine except for a minor issue: in > addition to the successful export to c:\tmp, an empty folder is created in > the basex/bin directory with the name of the exported db. I didn’t manage to reproduce this; could you please provide us with an SSCCE

Re: [basex-talk] user.dir and BaseX Add Command

2013-12-01 Thread Christian Grün
Hi Simon, The reason for the trouble was the following Java operations do different things if user.dir is changed: new File("X").mkdirs() new File("X").getAbsoluteFile().mkdirs() I’ve rewritten our file operations such that they are always resolved against the absolute file path. I can’t pro

Re: [basex-talk] Decoupling custom code with restxq

2013-12-02 Thread Christian Grün
Hi Sebastian, > BTW: I unfortunately missed your and Alexanders presentation at the MarkUp > Forum: are there any slides available? The slides should soon be available here: http://www.markupforum.de/archiv.html > This is similar to imported modules in XSLT: If you import template rules, > which

Re: [basex-talk] inspect functions and %private

2013-12-02 Thread Christian Grün
> However, If the function test is located in another module, say test, then > the following code > > import module namespace test="http://www.example.com/test"; at test.xq"; > > for $fun in inspect:functions() return "gotcha" > > raise an exception. If you mean the exception "Function 'test:test'

Re: [basex-talk] Results from ft:extract()

2013-12-02 Thread Christian Grün
Hi Lars, > When using ft:extract() on nodes, it seems to clip into the match itself too > often. Is it possible to have ft:extract() leave as much before the match as > after? the ft:extract algorithm is an intricate one [1], as the inputs to be processed can be very manifold, but we can try to t

Re: [basex-talk] Error while adding a document.

2013-12-03 Thread Christian Grün
Hi Toko, thanks for your mail. Is the NBS database empty? Could you provide us with the document that causes the problem? Christian ___ > I am new to BaseX and exploring its functionalities. > I have created an empty database named 'NBS' and I have got a script in > which

Re: [basex-talk] csv-parser

2013-12-04 Thread Christian Grün
Hi Lars, > When importing CSV files, it seems that BaseX is parsing fields for balanced > bracketing and quotes (a single quote or bracket causes trouble). Is it > possible to turn that off, so that files are processed based only on > delimiter? I couldn't find any information in the documentation

Re: [basex-talk] some questions over the profile module

2013-12-04 Thread Christian Grün
Hi Jean-Marc, > 1) The following code > declare function local:sequence($nb){for $i in 1 to xs:integer($nb) return > $i}; > prof:time(fn:count(local:sequence(100))) > return 4.94 ms. the InfoView will give you some hints what’s going on. The reason is that your code is compiled an

Re: [basex-talk] some questions over the profile module

2013-12-05 Thread Christian Grün
Hi Jean-Marc, >>Currently no. You can use the prof:current-ns() > I thought about this one, but isn't this method less accurate than prof:time If your measurements don’t fall below milliseconds, it should make no difference. Benchmarking is a complex field on its own, however: • In BaseX, it’s

Re: [basex-talk] some questions over the profile module

2013-12-05 Thread Christian Grün
, 2013 at 11:39 AM, Christian Grün wrote: > Hi Jean-Marc, > >>>Currently no. You can use the prof:current-ns() >> I thought about this one, but isn't this method less accurate than prof:time > > If your measurements don’t fall below milliseconds, it should make no &

Re: [basex-talk] Serializing unescaped xml to string

2013-12-05 Thread Christian Grün
Hi Joe, one solution is to use "text" as serialization method: serialize("", { 'method': 'text'}) As an alternative, you can specify in the query prolog (the beginning) of your query that all results are to be output as text: declare option output:method "text"; Hope this helps, Christian _

Re: [basex-talk] inspect functions and %private

2013-12-05 Thread Christian Grün
annotation in any imported module. > > Maybe an alternative behavior for the inspection module could be to ignore > %private functions ? > > > > 2013/12/2 Christian Grün >> >> > However, If the function test is located in another module, say test, >>

Re: [basex-talk] Serializing unescaped xml to string

2013-12-05 Thread Christian Grün
Hi Joe, > > > > > What I would like is ".. Expected: output ..." since what > is being returned is XML. This is syntactically not possible, because "<" cannot occur in attribute values. The following XML is not well-formed: However, it’s possible to output the value of an attribut

Re: [basex-talk] the slf4j in basex is 1.5.8, compatibility issue took place

2013-12-05 Thread Christian Grün
Hi Johnny, I’ve just updated our pom.xml to slf4j 1.7.5; I guess this is the version your other projects are using as well? Christian ___ > When I use basex with a gradle project, it failed at runtime because of a > transitive dependency problem: basex used slf4j 1.5.8, a

Re: [basex-talk] Serializing unescaped xml to string

2013-12-06 Thread Christian Grün
> Ah that makes sense. Is there no way then to return a message from a > unittest which contains XML? The framework creates the blocks > based on the result of assertions so I don't have control over what is > displayed it seems. We could possibly extend the existing Unit Module with additional f

Re: [basex-talk] inspect functions and %private

2013-12-06 Thread Christian Grün
$fun in inspect:functions() where fn:data(inspect:function($fun)/@name) > = "common:test" return $fun() > > and it returns "test" > > Cheers, > > Jean-Marc > > > > > > > > > > 2013/12/5 Christian Grün >> >> Hi Jean-Ma

Re: [basex-talk] Node Insertion through XQJ and XSD Validation

2013-12-06 Thread Christian Grün
Hi Ando, > 1. Can I have an example query of how I could insert another book node into > this file? XQuery Update will help you here [1]: insert node ... into /bookstore > 2. If I would like to perform schema validation through XSD, how should I > change the code? > - eg. (if I have set the m

Re: [basex-talk] BaseX Failing After a Number of Requests

2013-12-06 Thread Christian Grün
Hi Jeremy, I guess your question is related to Joe Templeman’s posting a few days ago? I would really be interested to hear if other users have encountered this phenomena, as we haven’t encountered this or similar behavior in our own RESTXQ applications. Have you checked out the BaseX debugging o

Re: [basex-talk] BaseX Evaluation for Big Data

2013-12-06 Thread Christian Grün
Dear Gary, and thanks, Jean-Marc, for the feedback. > I'm evaluating BaseX to use in a project that involves 10s of TB of xml data. > Our goal is to be able to return a small amount of data from a query within > a few seconds. Is BaseX capable of handling this much data? BaseX can in fact be

Re: [basex-talk] some questions over the profile module

2013-12-07 Thread Christian Grün
Hi Jean-Marc, > However I can't find the log left by fn:trace, or prof:time. Do you know > where these traces append in this configuration ? The dump/trace output can be viewed when turning on the query info (-V). As the output is generated by the server, it will first be collected and then sent

Re: [basex-talk] map:module. Behavior of maps of nodes

2013-12-07 Thread Christian Grün
>> write a Red / Black removable tree written in XQUERY, together with a map >> interface that mimic the basex one. However I won't go public, and would >> advise not to use it, because it suffers from performance issues. >> >> I opened a thread concerning this per

Re: [basex-talk] Issue with backup

2013-12-07 Thread Christian Grün
Hi John, Please give us more details. What do you mean with "affected"? Christian Am 08.12.2013 06:59 schrieb "John Best" : > Hi team, > > The backup have some problem... > > After taking multiple backups, all the previous backups get affected... > > Suppose, I took backup, say B1, then I made

Re: [basex-talk] Basex Gui as server client?

2013-12-09 Thread Christian Grün
Hi José, thanks for your mail. You’d probably like to hear something different, but the BaseX GUI is not connected with the client/server architecture (you can find more details here [1]). This is one reason why the "Server Administration" dialog will probably removed in a future version of BaseX

Re: [basex-talk] XPath child::node() axis sequence order

2013-12-10 Thread Christian Grün
> In BaseX, is the result of the child::node() axis always in document-order ? The nodes will be in document order if child::node() is part of a path expression (/). All the nifty details can be found in the spec [1]. Christian [1] http://www.w3.org/TR/xquery-30/#id-path-operator ___

Re: [basex-talk] server side restxq calls

2013-12-10 Thread Christian Grün
Hi Florian, using http:send-request for server-side calls is dangerous indeed. Did you have a look at the rest:forward construct?.. http://docs.basex.org/wiki/RESTXQ#Forwards_and_Redirects Best, Christian ___ On Tue, Dec 10, 2013 at 1:59 PM, Eckey, Florian wrote: > H

Re: [basex-talk] XPath child::node() axis sequence order

2013-12-10 Thread Christian Grün
) > > Cheers, Wendell > > Wendell Piez | http://www.wendellpiez.com > XML | XSLT | electronic publishing > Eat Your Vegetables > _oo_o_o___oooo_^ > > > On Tue, Dec 10, 2013 at 8:02 AM, Christian Grün > wrote: >>> In BaseX, is the resu

Re: [basex-talk] SET GLOBAL OPTION DBPATH

2013-12-10 Thread Christian Grün
H Ramesh, since a while, global options like DBPATH cannot be dynamically changed anymore, because such updates led to various undesirable side-effects. If you want to enforce the change of the option in Java, you can directly modify the variable via: context.globalopts.set(GlobalOptions.DBP

Re: [basex-talk] basex errors

2013-12-10 Thread Christian Grün
Hi Raj, Did you use the GUI and the client/server architecture in parallel (please see [1] for more information)? If no, could you provide us with an sscce? Christian [1] http://docs.basex.org/wiki/Startup ___ On Tue, Dec 10, 2013 at 6:41 PM, Kamineni, Rajeshwar wrote:

Re: [basex-talk] basex errors

2013-12-10 Thread Christian Grün
I wasn¹t even doing any > heavy load testing. > > We are just evaluating > > Thanks > Raj Kamineni > [T] +1 571 434 5463 [M] +1 703 342 9358 > > > > > > On 12/10/13, 12:43 PM, "Christian Grün" wrote: > >>Hi Raj, >> >>Did you

Re: [basex-talk] Is there a way to do incremental backup in basex?

2013-12-10 Thread Christian Grün
Hi Easy, incremental backups are planned for a future version of BaseX. One (manual) solution is to log all update activites via XQuery, which can then be applied to the last official backup whenever an update fails. This is what we have done in one of our own projects. Hope this helps, Christian

Re: [basex-talk] Basex Gui as server client?

2013-12-10 Thread Christian Grün
red... > > Thanks again. Best, > jta > > > On Mon, Dec 9, 2013 at 2:53 PM, Christian Grün > wrote: >> >> Hi José, >> >> thanks for your mail. >> >> You’d probably like to hear something different, but the BaseX GUI is >> not connected with

Re: [basex-talk] basex errors

2013-12-10 Thread Christian Grün
Thanks for your answer. You are invited to also check out our latest stable snapshot [1]. I remember that one issue related to locking had been fixed in 7.8 (although I’m not sure how it should be related to your issue). > We are planning to have our own REST API server that uses XQJ to the baseX

Re: [basex-talk] Alternative to XQDT ?

2013-12-11 Thread Christian Grün
Hi Jean-Marc, currently, there are no plugin alternatives for Eclipse, and it seems that the development has pretty much stalled. Grzegorz Ligas is currently developing a nice plugin for IntelliJ IDEA [1]; you may want to have a look it, too. Best, Christian [1] http://ligasgr.github.io/intelli

Re: [basex-talk] Alternative to XQDT ?

2013-12-11 Thread Christian Grün
expensive "ultimate edition" of IntelliJ can integrate > with spring framework and SQL databases ? > > Too bad that XQDT is stalling for xquery 3.0, because Eclipse was capable to > integrate JAVA, C++, xquery, SQL and spring framework in the same IDE, very > handy for me. &g

Re: [basex-talk] XQuery development and Access through URL

2013-12-11 Thread Christian Grün
Mansour, please check out our documentation to find out more about our REST services [1,2]. Hope this helps, Christian [1] http://docs.basex.org/wiki/Web_Application [2] http://docs.basex.org/wiki/REST ___ On Wed, Dec 11, 2013 at 5:23 PM, Mansour Al Akeel wrote: > Hello

Re: [basex-talk] Any way to access attributes directly from XQItem class?

2013-12-11 Thread Christian Grün
Hi Ando, this list is mainly about BaseX. To find out more about XQJ, you may get more help by targeting other platforms (such as StackOverflow). Sorry for the redirection, hope this helps, Christian ___ On Wed, Dec 11, 2013 at 4:45 PM, Ando Roy wrote: > Hi all, > > I ha

Re: [basex-talk] basex errors

2013-12-11 Thread Christian Grün
> How do we get the best of both worlds > > [...] > > Makes sense? …maybe ;) I would recommend you to first have a closer look at our documentation [1], which provides many insights how we and other people work with BaseX. [1] http://docs.basex.org/wiki/Main_Page _

Re: [basex-talk] Throughput Issues

2013-12-11 Thread Christian Grün
Hi Jeremy, > The most common place for threads to be blocking is at > org.basex.io.random.TableDiskAccess.read*. The threads are waiting for other > threads to finish, since these method calls are synchronized. Is it possible > to concurrently read from disk? Concurrent reads are indeed supported

Re: [basex-talk] Xquery for multiple files

2013-12-12 Thread Christian Grün
Mansour, Sorry for being persistent, but I would be grateful if you could first check out our Wiki and try things before requesting the list. Two links that should give you a start: http://docs.basex.org/wiki/File_Module http://docs.basex.org/wiki/XQuery XQuery is a very powerful language. E

Re: [basex-talk] basex errors

2013-12-12 Thread Christian Grün
> For setAutoCommit(false) I got the error - Client-side transactions are > unsupported. > > I was wondering if its basex or the xqj driver that I am using from > http://xqj.net/basex/ It’s due to the XQJ driver, so I can’t tell more about that.. Christian _

Re: [basex-talk] Local variables holding retrieved data from BaseX

2013-12-12 Thread Christian Grün
Hi Teena (cc @basex-talk), first of all, thanks for giving us details on your data and queries. To complete this: do you have a complete version of your query that shows us what are the values of $context, $project and $scopeName? As an example, I’m wondering what are the ancestor nodes of the el

Re: [basex-talk] Throughput Issues

2013-12-12 Thread Christian Grün
> No files in the RESTXQ folder are changing at runtime, and from looking at > the code it appears that the result of the parsing should be cached unless > the files change anyways, but that does not appear to be the case, at least > from my analysis of the thread dumps. Could this possibly be a bu

Re: [basex-talk] Throughput Issues

2013-12-12 Thread Christian Grün
> It looks like a bug simply because it seems like all (perhaps only some?) > threads are reparsing the RESTXQ files, even when the modified time has not > changed, and other threads are blocked on the cache object that holds the > results of the parse. Your feedback is welcome if you should decid

Re: [basex-talk] Local variables holding retrieved data from BaseX

2013-12-12 Thread Christian Grün
> Is there a way to get a local copy of the database node so that we do not > reference the node in the database for further usage in the xquery (any > other cleaner way instead of iterating over the data and creating a local > copy that foo:get-node-v2 is doing)? You could try the XQuery Update t

Re: [basex-talk] strange behaviour of the BaseXgui-editor

2013-12-14 Thread Christian Grün
Hi Rob, we have just reworked the way exceptions are handled in the GUI editor. As a positive side effect, some of the problems you encountered with the error status messages should now be resolved. Your feedback on the latest stable snapshot is welcome [1]. Best, Christian [1] http://files.base

[basex-talk] Upcoming: XMLPrague 2014!

2013-12-14 Thread Christian Grün
Dear all, The XMLPrague Conference is the most important event for XML experts, developers and users in Europe. Next year, it will take place from Feb 14-16 (Fri-Sun): http://www.xmlprague.cz/ Don’t miss the event (which is, by the way, very affordable)! Just like last year, we will be offeri

Re: [basex-talk] Serializing unescaped xml to string

2013-12-14 Thread Christian Grün
Hi Joe, a little preview: I agree that the current output of the unit reporting functions is not as convenient as it could be. This is why we’ll soon extend the XML testcase output, and add some more functions like unit:assert-equals() which will create a more helpful error output. Best, Christia

Re: [basex-talk] Serializing unescaped xml to string

2013-12-15 Thread Christian Grün
Feel free to check out the updated example in our Wiki [1] and the latest snapshot [2]. [1] http://docs.basex.org/wiki/Unit_Module [2] http://files.basex.org/releases/latest/ ___ On Sat, Dec 14, 2013 at 5:35 PM, Christian Grün wrote: > Hi Joe, > > a little p

Re: [basex-talk] restxq: default namespace and variable in path annotation don't like each other

2013-12-16 Thread Christian Grün
Dear Jean-Philippe, thanks for the attached files. I remember there was such a bug in 7.7.2. Have you already tried the latest snapshot [1]? Christian [1] http://files.basex.org/releases/latest/ ___ On Mon, Dec 16, 2013 at 3:55 PM, Jean-philippe Magué wrote: > Hello, >

Re: [basex-talk] Performance questions

2013-12-16 Thread Christian Grün
Hi José, sorry for the late feedback. > 1) I'm working with a database that is smaller than the available memory in > my main research machine. I noticed the MAINMEM option, but for some reason > I couldn't get it to work, and then noticed that it would only affect newly > created db's. Is it pos

Re: [basex-talk] Array Size Exceptions

2013-12-17 Thread Christian Grün
Hi Jeremy, > I was unable to replicate the issue with 7.8. Good to know. > Is 7.8 stable enough to be > used in a production environment? Yes, it is. There will be no substantial changes until the official release (to be scheduled along with XMLPrague in February). Christian __

<    2   3   4   5   6   7   8   9   10   11   >