[basex-talk] Database corrupted while inserting big string

2015-01-06 Thread jean-marc Mercier
Hello, I am trying to insert big string into BaseX, and ended corrupting the whole database. Here a test code , can you reproduce it ? declare updating function local:dbtest($db as xs:string) { db:replace($db,"map",{fn:serialize(1 to 1000)}) }; local:dbtest("MyDataBase") output : Impro

Re: [basex-talk] Feature request: RNG and Schematron validation

2015-01-06 Thread Glatza, Philipp, le-tex
Hi Christian, I am following the opened issue now. Thank you for the answer. Philipp On 06.01.2015 21:35, Christian Grün wrote: Hi Philipp, Currently, the main reason why we did not add support for RelaxNG and Schematron yet is that it is not supported out of the box by the JVM. However, we

Re: [basex-talk] Performance issue due to evaluation during function composition ?

2015-01-06 Thread jean-marc Mercier
Hi Christian, Thx a lot. Jean-Marc 2015-01-06 12:20 GMT+01:00 Christian Grün : > Hi Jean-Marc, > > Dirk has already outlined well what this is about. I have added a new > GitHub request [1]. > > Cheers, > Christian > > [1] https://github.com/BaseXdb/basex/issues/1052 > > > > On Fri, Jan 2, 2015

[basex-talk] prof:time and updating expression

2015-01-06 Thread jean-marc Mercier
Hi all, I was trying to profile updating expression, and the result is [XUST0001] prof:time(value[,cache[,label]]): no updating expression allowed. Is this a desired behavior ? Cheers, Jean-Marc

[basex-talk] Storing sequences of atomic type into BaseX ?

2015-01-06 Thread jean-marc Mercier
Hello, I am currently trying to store precomputed maps. The basic issue is to store a sequence $seq of integers (that are indeed element id, i.e. retrieved using db:node-pre). Actually, I am storing it using db:replace($db,"map",{fn:serialize($seq)}) and retrieve the sequence using using fn:token

Re: [basex-talk] Feature request: RNG and Schematron validation

2015-01-06 Thread Christian Grün
Hi Philipp, Currently, the main reason why we did not add support for RelaxNG and Schematron yet is that it is not supported out of the box by the JVM. However, we have more and more functionality that's activated when the required libraries (ICU, Saxon, TagSoup, Apache, etc.) are found in the cl

Re: [basex-talk] The JSON serialization controversy

2015-01-06 Thread Christian Grün
Hi Florent, > b) We motivate users to write their own JSON serializers in XQuery... As I failed miserably in my attempt to motivate any user out there (it could be that I was too impatient, though), I just wrote a simple XQuery function for serializing XML to JSON. The JSON output is similar to t

[basex-talk] DBA users permissions

2015-01-06 Thread Jérôme Chauveau
Hi, Here a "bug" I found (tested with the last release snapshot of the day) when using the DBA frontend (my BaseX server is embedded in a Tomcat ): a - I created a new user "myUser" from the DBA frontend b - I granted this one on a DB with local READ permissions Everything was fine until I r

Re: [basex-talk] The JSON serialization controversy

2015-01-06 Thread Christian Grün
Hi Florent, Experience has taught us that feature requests that are straightforward to include lead to many new requests that are much harder to satisfy. The same applies to JSON serialization: There are just too many different solutions for serializing XML as JSON (see e.g. [1]), and all of them

[basex-talk] Feature request: RNG and Schematron validation

2015-01-06 Thread Glatza, Philipp, le-tex
Just a short question: are there any plans to (not) support Schematron and/or RNG/RNC validation in the validation module? Philipp -- Philipp Glatza Content Engineering le-tex publishing services GmbH Weissenfelser Str. 84, 04229 Leipzig, Germany Phone +49 341 355356 128, Fax +49 341 355356 52

Re: [basex-talk] Xquery update question

2015-01-06 Thread Erol Akarsu
Thanks Christian That was I what I was thinking Hopefully, it will resolve the issue, Erol Akarsu On Tue, Jan 6, 2015 at 4:22 AM, Christian Grün wrote: > Hi Erol, > > > I have several xml document index keeping products features and have one > > master index file of products.. Currently, we ha

Re: [basex-talk] Fetching a binary document from BaseX with C# using the server API

2015-01-06 Thread Boxstart, Bjorn
Hello Christian, Thanks a lot for the modification. This works like a charm! I will take a look at the 8.0 authentication and give you a reply when I would like to start working on this. Kind regards,   Björn Boxstart -Oorspronkelijk bericht- Van: Christian Grün [mailto:christian.gr...

Re: [basex-talk] Question / Suggestion : Template mechanisms and operator overloading for XQUERY 3.++ ?

2015-01-06 Thread Christian Grün
Hi Jean-Marc, It may be worthwhile to discuss this general XQuery feature request on t...@x-query.com or the W3 bug tracker [1]. Best, Christian [1] https://www.w3.org/Bugs/Public/ On Sun, Jan 4, 2015 at 11:05 AM, jean-marc Mercier wrote: > Hello, > > I was wondering if it is possible to imp

Re: [basex-talk] Performance issue due to evaluation during function composition ?

2015-01-06 Thread Christian Grün
Hi Jean-Marc, Dirk has already outlined well what this is about. I have added a new GitHub request [1]. Cheers, Christian [1] https://github.com/BaseXdb/basex/issues/1052 On Fri, Jan 2, 2015 at 11:30 PM, Dirk Kirsten wrote: > Hello Jean-Marc, > > yeah, I can reproduce that. However, I would

Re: [basex-talk] copy-namespaces declaration

2015-01-06 Thread Christian Grün
Hi Alex, sorry, support for copy-namespaces is still pending. See [1] for more information. Christian [1] https://mailman.uni-konstanz.de/pipermail/basex-talk/2014-September/007251.html On Tue, Dec 30, 2014 at 10:16 PM, Alex R. Loayza wrote: > Hello, I've found this same issue on version 7.

Re: [basex-talk] BaseX 8.0 snapshot on OpenShift

2015-01-06 Thread Christian Grün
Hi Andy, > I wonder if SERVERHOST should be set here? As with SERVER PORT.. > https://github.com/BaseXdb/basex/blob/0af4ead914d3d1946e5a8ce9672811a34f9330c2/basex-api/src/main/java/org/basex/BaseXHTTP.java#L287 I have updated the code as suggested by you. Could you please give it another try? The

Re: [basex-talk] Out Of Memory

2015-01-06 Thread Christian Grün
Hi Mansi, > curl -ig > 'http://localhost:8984/rest?run=get_query.xq&n=/Archives/*/descendant::D/@name/string()' > | cut -d: -f1 | cut -d. -f1-3 | sort | uniq -c | sort -n -r I guess you will get your result much faster by avoiding the post processing steps and doing everything with XQuery instead

Re: [basex-talk] Fetching a binary document from BaseX with C# using the server API

2015-01-06 Thread Christian Grün
Hi Björn, sorry for letting you wait. I have just updated the C# code [1] (see [2] for more details). Could you give it another try? Thanks, Christian PS: We are looking for users who help us to update the client bindings to the new 8.0 authentication. It should be fairly easy to realize; if you

Re: [basex-talk] Xquery update question

2015-01-06 Thread Christian Grün
Hi Erol, > I have several xml document index keeping products features and have one > master index file of products.. Currently, we have about 25 million products > that have size about 25G xquery index size. One solution is to generate a BaseX command script, which contains multiple subsequent u

Re: [basex-talk] Python client and BaseX 8.0

2015-01-06 Thread Christian Grün
Thanks Marc, I have patched the python code, it should now be compatible with BaseX 8.0. Christian On Mon, Dec 29, 2014 at 5:35 PM, Marc van Grootel wrote: > Hi, > > Seems to work fine. At least, I didn't introduce any issues that > weren't already there. I didn't find the email address of th

Re: [basex-talk] What's the best way to do some qualitative benchmarking?

2015-01-06 Thread Christian Grün
Hi Marc, I can only agree that benchmarking is a complex issue. While it's usually easy to "prove" somehow that the own implementation is much faster than all others, it's much more difficult to do performance comparisons that do justice to all compared systems. Usually, a good question to start w