Re: [basex-talk] RegExp bug

2012-01-07 Thread Christian Grün
Dear Mark, I'm sorry to tell you that the boundary matcher \b is not officially supported by XQuery [1,2]; this is why it is not supported anymore by the latest version of BaseX. If you want to have this feature provided in XQuery 3.0 or a future version, you are invited to submit a small feature

Re: [basex-talk] line number and column

2012-01-12 Thread Christian Grün
Dear Anders, I'm sorry: information on the original line and columns gets lost as soon as a database, or a main memory instance of a document, is created. If you look for ways to address the same XML nodes multiple times, you may want to have a look at the fn:path(); it returns an XPath

Re: [basex-talk] performance question

2012-01-12 Thread Christian Grün
Dear Cerstin, thanks for your e-mail, and the detailed information on your use case. To make inspection of results easier, I added ft:mark. A collection with only a dozen of texts of about 71 MB with full text index for German, optimized, etc. works quite well. However, the example query

Re: [basex-talk] http:request post parameter bug? basex 7.01

2012-01-13 Thread Christian Grün
Hi Andy, sorry for the late feedback. Could there be an encoding issue with http:request post requests? I send..  let $r:=http:request method='post'    http:body media-type=application/x-www-form-urlencoded method=texta=3amp;b=4/http:body  /http:request return

Re: [basex-talk] performance question

2012-01-16 Thread Christian Grün
Thanks. I guess, I cannot do everything directly within XQuery, e.g., extending marked elements to continuous marking, to make markKorb/mark markgeben/mark to be markKorb geben/mark -- it will be more important for queries with ftand or ftor. Currently, the ft:mark() and ft:extract()

Re: [basex-talk] GUI query editor -- revert file

2012-01-19 Thread Christian Grün
Hi Piotr, I've added a GitHub issue to memorize your report.. https://github.com/BaseXdb/basex/issues/343 ..will probably be taken care of before the next release. Thanks, Christian ___ On Thu, Jan 19, 2012 at 9:38 PM, Piotr Bański ba...@o2.pl wrote: Hi all, I

Re: [basex-talk] python client library

2012-01-23 Thread Christian Grün
Arjen, this is great news! I have updated the Python code [1] and credited you in the code/Wiki [2]. Thanks, Christian [1] https://github.com/BaseXdb/basex-api/tree/master/src/main/python [2] http://docs.basex.org/wiki/Clients ___ On Mon, Jan 23, 2012 at 4:51 PM,

Re: [basex-talk] baseX performance with large number of small documents (are the indexes working??)

2012-01-25 Thread Christian Grün
Dear Shahin, thanks for your email. As your queries include a non-equality condition (), the existing indexes won't speed up your query. Instead, your data is sequentially parsed, which explans the linear increase of your query times. A future version of BaseX will include a range index [1] --

Re: [basex-talk] Qualified Attributes In Root Elements

2012-01-26 Thread Christian Grün
Dear Jack, thanks for your feedback. The latest version of BaseX [1] gives me the following result... basex -c create db testing;xquery db:add('testing', document{ a:Root xmlns:a='ns1' xmlns:b='ns2' a:id='test'b:ChildText/b:Child/a:Root },'doc_1');xquery / a:Root xmlns:a=ns1 xmlns:b=ns2

Re: [basex-talk] GUI query editor -- revert file

2012-01-26 Thread Christian Grün
[1] https://github.com/BaseXdb/basex/issues/343 [2] http://docs.basex.org/wiki/Releases ___ BaseX Team Christian Grün Uni KN, Box 188 D-78457 Konstanz http://www.basex.org 2012/1/24 Piotr Bański ba...@o2.pl: Dear Christian, Somewhat belated thanks -- also for pointing

Re: [basex-talk] Problem with create database?

2012-02-14 Thread Christian Grün
Isidre, if I got you right, you'd like to have the command aborted if the database already exists? That's indeed expected behavior. If you want to get sure that your database does not already exist, you can run open DB before calling the create command. Hope this helps, Christian

Re: [basex-talk] Reusing connections to BaseX

2012-02-14 Thread Christian Grün
Dear Andreas, thanks for your mail. Some answers (even if they may have been addressed to Godmar): *    Which of the BaseX interfaces do you use: XQJ or just the plain ClientSession's? In general, the plain client sessions will give you better performance, as they are very light-weight and

Re: [basex-talk] Recursive query performance

2012-02-14 Thread Christian Grün
Dear Charles, First, a note that bears saying -- I'm very, *very* excited by BaseX; this is my first use of the database, and I'm already extremely impressed. thanks for the positive feedback, always appreciated! My immediate use case centers around the following pair of functions: [...]

Re: [basex-talk] importing library with alternative namespace

2012-02-24 Thread Christian Grün
Dear Jan, The import worked well, but when calling functxyz:capitalize-first(test) I got result: Error: [FONS0004] No namespace declared for prefix 'functx'. that's probably related to sth. listed in the following GitHub issue.. https://github.com/BaseXdb/basex/issues/133 ..which is now

Re: [basex-talk] NPE in DataBuilder.stripNS() during RESTPost.run() with rest:context provided

2012-02-24 Thread Christian Grün
..I managed to reproduce this issue; seems to be related to [1], so I guess it has been recently introduced with a snapshot. I'll give you feedback soon. Christian ___ On Fri, Feb 24, 2012 at 3:58 AM, Charles Duffy char...@dyfis.net wrote: Howdy -- I'm getting a stack

Re: [basex-talk] NPE in DataBuilder.stripNS() during RESTPost.run() with rest:context provided

2012-02-24 Thread Christian Grün
Dear Charles, the problem should now be fixed, just as the issue reported by Andy [1]. Once again, you are invited to check out the latest snapshot [2]. Christian [1] https://github.com/BaseXdb/basex/issues/397 [2] http://files.basex.org/releases/latest/ ___ On Fri,

Re: [basex-talk] Listing packages in machine-readable form w/ versioning info?

2012-02-29 Thread Christian Grün
we've decided to update the repo:list() function: it now returns element nodes including the package versions. ..and yet another update: repo:list() can now be run by all users, no matter what permissions they have (before, it was in fact limited to admins).

Re: [basex-talk] db:list-details() @modified-date not valid xs:dateTime?

2012-03-05 Thread Christian Grün
Hi Charles, thanks for your offer; your proposal seems quite reasonable to me. Looking forward to your patch, Christian ___ On Mon, Mar 5, 2012 at 6:19 PM, Charles Duffy char...@dyfis.net wrote: Howdy -- I note that the modified-date attribute given in

Re: [basex-talk] Gets name of collection

2012-03-09 Thread Christian Grün
Dear Anh, the document-uri() / base-uri() functions may help you here. Christian ___ On Thu, Mar 8, 2012 at 9:59 AM, Anh Thuấn thuan...@emotive.de wrote:         Hi BaseX team, I 've met a problem of getting the name of the collection when retrievingXQuery. I am looking

Re: [basex-talk] Performance and the capital of Albania

2012-03-09 Thread Christian Grün
this helps, Christian __ On Fri, Mar 9, 2012 at 12:12 PM, Christian Grün christian.gr...@gmail.com wrote: Hi Andy, it looks as if all expressions are optimized and evaluated in a little bit different way. No doubt this will be handled sooner or later (but it may take

Re: [basex-talk] [xquery-talk] say how to get newline working

2012-03-11 Thread Christian Grün
fyi: I have added the suggestion [1] to the latest snapshot [2]. feedback is welcome. [1] http://docs.basex.org/wiki/Serialization#Version_7.2 [2] http://files.basex.org/releases/latest/ ___ On Sun, Mar 11, 2012 at 1:09 PM, Christian Grün christian.gr...@gmail.com wrote

Re: [basex-talk] BaseX 7.1.1 WAR problems: Permissions and other issues

2012-03-12 Thread Christian Grün
Dear Peter, thanks again for your request. We have had a closer look on our provided WAR file, and the two prominent issues [1] have now be fixed. You are invited to check out the latest stable snapshot [2], and give us feedback if the issues have also been resolved for your Tomcat instance. By

Re: [basex-talk] BaseX: New XQuery 3.0 Features

2012-03-13 Thread Christian Grün
Thanks Florent, Do you have any result of the W3C test suites, in order to see the coverage of the current support? we are frequently running the W3 XQuery and Q3 Test Suites to check our conformance (the test classes are part of the open source code, too). Currently, most pending bugs are

Re: [basex-talk] Any way to persist OutputStream in DiskData?

2012-03-14 Thread Christian Grün
Hi Dave, thanks for your analysis - profound as usual. You may get much better results by setting the AUTOFLUSH option to false [1]. Please tell me if you've done that already.. Christian [1] http://docs.basex.org/wiki/Options#AUTOFLUSH ___ On Wed, Mar 14, 2012 at 8:09

Re: [basex-talk] fulltext index: case sensitive vs. case insensitive

2012-03-16 Thread Christian Grün
Dear Cerstin, Which would mean creating actually four indices to allow for fuzzy search or exact matches as well: w/ stemming and w/ case sensitive w/ stemming and w/o case sensitive w/o stemming and w/ case sensitive w/o stemming and w/o case sensitve. That's quite a lot of data!

Re: [basex-talk] REPOPATH prefixed twice on current snapshots?

2012-03-16 Thread Christian Grün
Sounds serious; but I didn't manage to reproduce this locally. Does your module import yet another module? Could you try to build an example that demonstrates the problem? On Fri, Mar 16, 2012 at 7:19 PM, Charles Duffy char...@dyfis.net wrote: On 03/16/2012 01:13 PM, Charles Duffy wrote: In

Re: [basex-talk] after upgrading one big disaster

2012-03-16 Thread Christian Grün
Thanks for your efforts. Still, it looks as if I'd quite some time to get your example running (I'd like to, but many other todos are waiting as well). Could you send me a plain xquery file that demonstrates the varying output for 7.1 and the latest version? ___ wget

Re: [basex-talk] Setting the context item via the native protocol

2012-03-16 Thread Christian Grün
Context.current() accepts only Nodes, which are database-backed; QueryProcessor.context(), by contrast, can accept the ItemCache returned by a query which doesn't return a database reference. As such -- it seems to me that what is needed is an extension to the query command protocol (as

Re: [basex-talk] Setting the context item via the native protocol

2012-03-16 Thread Christian Grün
all files have been updated. ___ On Fri, Mar 16, 2012 at 8:01 PM, Christian Grün christian.gr...@gmail.com wrote: Context.current() accepts only Nodes, which are database-backed; QueryProcessor.context(), by contrast, can accept the ItemCache returned by a query which

Re: [basex-talk] Use of unsalted password hashes

2012-03-16 Thread Christian Grün
I agree that plain md5 hashes are not state-of-the-art anymore (..well, for quite a while). If we update our storage, however, we should guarantee backwards-compatibility. If anyone wants to dive into this.. Code patches are welcome.. ;) ___ On Fri, Mar 16, 2012 at 8:59

Re: [basex-talk] Use of unsalted password hashes

2012-03-17 Thread Christian Grün
[...] The first thing that concerns me -- something strong, like bcrypt, will make the REST interface, with its per-command authentication (lack of sessions) unworkably expensive [...] I agree, performance is very essential here. What about using SHA-2? Christian

Re: [basex-talk] Use of unsalted password hashes

2012-03-17 Thread Christian Grün
Finally (I promise I'll shut up... :-), if you're putting services out on any sort of relatively open network, it's a very good idea to put some thought into addressing at least some basic anti-Denial-Of-Service capabilities if availability matters. Thanks John, your feedback (and everyone

Re: [basex-talk] Detecting abandoned locks

2012-03-18 Thread Christian Grün
Hi Charles, I have a BaseX database with a pin-* file in its directory, reporting as locked and unavailable. However, OS-level tools such as fuser report that no programs have open file handles for any processes in this directory. pin files have been introduced just recently to avoid that

Re: [basex-talk] Detecting abandoned locks

2012-03-20 Thread Christian Grün
According to the docs, java.nio.channels.FileLock should be implemented on UNIXlike operating systems with flock() or fcntl(), both of which are widely used, fast and reliable. I don't know how the Windows version would be implemented, but I'm quite curious about the result of your tests.

Re: [basex-talk] Java functions, packages, and ADMIN privileges

2012-03-20 Thread Christian Grün
With the current packaging architecture, I may get difficult to assign user privileges to specific functions or modules. Maybe the EXPath mailing list could be another target for discussing this (cc'ed/hi to Florent.. did you maybe have some plans on this issue?). Regarding our own thoughts on

Re: [basex-talk] REST API now returning exceptions as HTML?

2012-03-21 Thread Christian Grün
Historically, the BaseX REST API has handled exceptions by returning only the exception content itself. ..wow, you're always up to date ;) We played around with the return message, and we're not sure if we should go for a complete HTML-based error message or limit the feedback to a simple text

Re: [basex-talk] webdav issue using oxygen

2012-03-22 Thread Christian Grün
Max, thanks for the report! The bug could be tracked down to a single character: https://github.com/BaseXdb/basex-api/commit/a09b6d40b09c85370878dc37fbae8de5acca1daf The latest version should do again what it's supposed to do. All the best, Christian ___ On Thu, Mar

Re: [basex-talk] Java functions, packages, and ADMIN privileges

2012-03-22 Thread Christian Grün
Does the ADMIN restriction apply to classes extending QueryModule as well as those found via reflection? The QueryModule extension is an early intent to simplify the import of Java code. It hasn't been documented yet, and is subject to change. I agree that it should, and will, be treated

[basex-talk] BaseX 7.2: The EDBT Release

2012-03-24 Thread Christian Grün
Dear subscribers, after some busy weeks, we are glad to announce BaseX 7.2, the EDBT Release! The latest version offers the following new features: * support for the new RESTXQ API for building XQuery web services [1] * improved support for running BaseX as web application [2] * XQuery: higher

Re: [basex-talk] Mechanism to serialize maps in output?

2012-03-27 Thread Christian Grün
Hi Charles, and thanks Hans-Jürgen, I've added a GitHub issue to avoid that this is getting lost: https://github.com/BaseXdb/basex/issues/448 Christian ___ On Tue, Mar 27, 2012 at 2:48 PM, Hans-Juergen Rennau hren...@yahoo.de wrote: Hello, perhaps it is also

Re: [basex-talk] Using stemming via the BaseX API

2012-03-27 Thread Christian Grün
Dear Michael, thanks for your mail. Just to get sure: did you have a look at our Wiki page on Japanese tokenization [1]? I believe there may be quite different reasons why the files are not found. Could you provide us with a simple, self-contained example that allows us to reproduce the problem?

Re: [basex-talk] Updates failing due to opened by another client on a system running only basexhttp

2012-03-30 Thread Christian Grün
Hi, My first idea would be to try and lock the main table of the database, `tbl.basex`, via FileChannel.tryLock(). That should be just as effective in preventing concurrent access, with the added benefit of leaving no orphaned files behind when the BaseX instance isn't terminated gracefully.

Re: [basex-talk] Updates failing due to opened by another client on a system running only basexhttp

2012-03-30 Thread Christian Grün
Thanks for the teaching lesson on shared locks, which just makes it easier, and obviously makes more sense. Am 30.03.2012 12:38 schrieb Charles Duffy char...@dyfis.net: 2012/3/30 Christian Grün christian.gr...@gmail.com Hi, My first idea would be to try and lock the main table

Re: [basex-talk] possible bug? or opportunity for documentation enhancement? [2d sending]

2012-04-01 Thread Christian Grün
Dear Michael Sperberg-McQueen, thanks as usual for your concise feedback, and sorry for the delay and the fact that I cannot tell why the error occurred in your particular case. In earlier versions of BaseX, problems like this sometimes happened if multiple GUIs with the same database instance

Re: [basex-talk] Moving to log4j, java.util.logging, Apache Commons Logging, etc?

2012-04-01 Thread Christian Grün
Hi Charles, Is the decision to use an in-house logging framework open to reconsideration? I'd be willing to do a first-draft cut on a transition to log4j, Sun's java.util.logging, or Apache Commons Logging (a thin indirection layer which can use either of those as an underlying backend) if

Re: [basex-talk] Moving to log4j, java.util.logging, Apache Commons Logging, etc?

2012-04-01 Thread Christian Grün
Could you quickly run through the requirements for a logging system in BaseX, to be sure we're on the same page? Just a short one... It might be a good start to check out the existing debug mode, which is very cheap, too, and rewrite it in a way such that this output is redirected to the

Re: [basex-talk] Moving to log4j, java.util.logging, Apache Commons Logging, etc?

2012-04-02 Thread Christian Grün
Work started on that, present in my github tree (https://github.com/charles-dyfis-net/basex/commits/java_util_logging). Good news, I'll look at that soon. FYI -- I rather strongly disagree with building our own indirection layer to dynamically switch between logging libraries, when at least

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

2012-04-02 Thread Christian Grün
Hi Mike, thanks for your report. It would be great if you could provide us with a small example that allows us to reproduce the issue (an export of your original database with the namespace (which is being added to the new node) may suffice). Best, Christian On Mon,

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

2012-04-02 Thread Christian Grün
, Christian Grün wrote: Hi Mike, thanks for your report. It would be great if you could provide us with a small example that allows us to reproduce the issue (an export of your original database with the namespace (which is being added to the new node) may suffice). Best, Christian

Re: [basex-talk] Moving to log4j, java.util.logging, Apache Commons Logging, etc?

2012-04-03 Thread Christian Grün
..thanks for keeping me updated. ___ On Tue, Apr 3, 2012 at 1:18 AM, Charles Duffy char...@dyfis.net wrote: On 04/02/2012 08:07 AM, Christian Grün wrote: Work started on that, present in my github tree (https://github.com/charles-dyfis-net/basex/commits

Re: [basex-talk] Losing username/password info

2012-04-03 Thread Christian Grün
You might want to check the Configuration Wiki page [1], which described how to change the path to all .basex... files. Hope this helps, Christian [1] http://docs.basex.org/wiki/Configuration ___ Thank you -- I think this actually answers my question adequately. I was

Re: [basex-talk] Module versioning for new packaging system

2012-04-05 Thread Christian Grün
For the most part, I'm glad to have the non-EXPath packaging mechanism introduced for 7.2.1 -- [...] - No mechanism for atomically upgrading a module exists; it must be uninstalled, then installed again, leaving an intermediate period in which the module is unavailable. We could add a

Re: [basex-talk] Concurrency, maximum number of concurrent users / queries

2012-04-05 Thread Christian Grün
Dear Peter, In the documentation I read that the default amount of concurrent reads is 8. But as it seems quite low, is this just a number, or is BaseX limited on this aspect? thanks for your e-mail. The default value of 8 concurrent reads has been experimentally chosen as a good average

Re: [basex-talk] fn:collection

2012-04-09 Thread Christian Grün
The bug has been fixed (along with the issue you mentioned on StackOverflow); please check out one of our latest stable snapshot [1]. Christian [1] http://files.basex.org/releases/latest/ ___ On Mon, Apr 9, 2012 at 2:39 PM, Christian Grün christian.gr...@gmail.com wrote

Re: [basex-talk] basex 7.2.1 html5 serialization

2012-04-09 Thread Christian Grün
: Ahh, yes it works for me too  when I remember to deploy the code. Thanks /Andy On Mon, Apr 9, 2012 at 5:19 PM, Christian Grün christian.gr...@gmail.com wrote: My use is really with RESTXQ and following[1] I tried declare %rest:path(snipsnapx) %output:method(html) %output:doctype-system

Re: [basex-talk] Detecting abandoned locks

2012-04-09 Thread Christian Grün
Hi Charles, as recently discussed, we have replaced our pinning concept with shared exclusive locks on the database table, which seems to work out pretty well. Your feedback is welcome, Thanks for your valuable input, Christian ___ On Sat, Mar 17, 2012 at 10:59 PM,

Re: [basex-talk] fn:collection

2012-04-09 Thread Christian Grün
by file:list() will be relative to its root, as printed in the documentation. Best, Christian _ On Mon, Apr 9, 2012 at 4:07 PM, Christian Grün christian.gr...@gmail.com wrote: The bug has been fixed (along with the issue you mentioned on StackOverflow); please check out

Re: [basex-talk] Javadoc for XML:DB BaseX implementation

2012-04-11 Thread Christian Grün
Where can I found the Javadoc for XML:DB BaseX implementation? We currently don't have any online version of XML:DB JavaDoc, so I'd recommend you to check out our sources and build the JavaDoc from there, or access it via IDEs such as Eclipse or IntelliJ IDEA. Hope this helps, Christian I

Re: [basex-talk] Database opened by another process while using REST interface

2012-04-11 Thread Christian Grün
Dear Seenivasan, as Max has already indicated (thanks!), the locking concept of BaseX 7.2 has been revised. Please give us some feedback if the problems persist with the latest stable snapshot: http://files.basex.org/releases/latest/ Best, Christian ___ On Wed, Apr

Re: [basex-talk] glob syntax

2012-04-11 Thread Christian Grün
Hi David, the CREATEFILTER option can only be used to include files for parsing. To exclude files, the best alternative is to write a little XQuery and do some string matching by yourself, as e.g. shown in the following example: let $root := /path/to/files/ for $file in file:list($root,

Re: [basex-talk] JSON/XML mapping

2012-04-18 Thread Christian Grün
Dear Hans-Juergen, 1) The text says: As arrays have no names, value/ is used as element name. But I suppose it should be array members, rather than arrays, as an array may of course be associated with a name as any other JSON item. Correct? thanks for the hint; I have updated our

Re: [basex-talk] BaseXClient.py raised IOError

2012-04-23 Thread Christian Grün
Hi Kento, what's the total size of your XML documents? As Mattijs indicated, it may be that you have reached the id limit of 2^31 entries. In this case, you can distribute your data to multiple database instances, all of which can be queried by a single XQuery. Our documentation contains some

Re: [basex-talk] a possible enhancement to program exit

2012-04-24 Thread Christian Grün
Dear Michael, you stumbled upon one of the issues that are specific to Mac OSX (the Cancel button works on all Windows and Linux distributions we are aware of). It's a pity that Apple's Java support is deficient in many aspects, which is why we already have introduced some Mac-specific wrapper

[basex-talk] Release 7.2.1: The Spring Edition

2012-04-27 Thread Christian Grün
Dear all, once more, we are proud to announce a new version of BaseX! And once more, we can provide you with a whole bunch of new features: * Our value indexes now support string-based range queries: http://docs.basex.org/wiki/Indexes#Value_Indexes A big thank you to our sponsors who made

Re: [basex-talk] cookie-param + restxq

2012-05-06 Thread Christian Grün
There seems to be problem with cookie-param when the cookie is NOT set. The error is [XPDY0002] No value assigned to $c. See code below for an example. Thanks Andy; I have fixed this issue and updated the code (if the problem persists.. your feedback is welcome).

[basex-talk] Future of RESTXQ

2012-05-06 Thread Christian Grün
Hi Andy, hi Adam, I understand the restxq stuff is in development/experimental and I wonder what plans you have in that direction? I think there are  issues/limitations  with the url limited to restxq/ and that xqm can be accessed directly (as text) etc, but one limitation of the spec seems

Re: [basex-talk] Future of RESTXQ

2012-05-06 Thread Christian Grün
Adam, thanks for your quick feedback; great to hear you are working on new versions! I then hope to write up the draft specification and get it to Balisage for late-breaking news, but we will have to see. Either way, comments and input are welcome :-) The feature that we've been asked for

Re: [basex-talk] Java proxy host port credentials

2012-05-07 Thread Christian Grün
I would like basex to use Java proxy host port credentials when basexis making url request to pull binary data from a remote web site. How can I set these proxy settings? Did you already have a look at the proxy options (PROXYHOST, PROXYPORT, NONPROXYHOSTS)[1]? Christian [1]

Re: [basex-talk] Java proxy host port credentials

2012-05-07 Thread Christian Grün
name and password. Thanks Erol Akarsu On Mon, May 7, 2012 at 5:39 PM, Christian Grün christian.gr...@gmail.com wrote: I would like basex to use Java proxy host port credentials when basexis making url request to pull binary data from a remote web site. How can I set these proxy

Re: [basex-talk] Full-text search and mixed content

2012-05-08 Thread Christian Grün
Dear Michael, to get the requested result, you need to deactivate the chopping of whitespaces (via SET CHOP OFF, or Dialog → New… → Parsing → Chop Whitespaces). Hope this helps, Christian Footnotes: [1]  http://www.w3.org/TR/xpath-full-text-10-use-cases/ -- Dr.-Ing. Michael Piotrowski,

Re: [basex-talk] Java proxy host port credentials

2012-05-09 Thread Christian Grün
: Christian, No.  I don't know how to set it through XQJ. But I tried to set system properties  http.ProxyHost and http.proxyPort in Java but it does not have any effect on xquery calling through XQJ. Erol Akarsu On Mon, May 7, 2012 at 5:49 PM, Christian Grün christian.gr

Re: [basex-talk] insert arbitrary files

2012-05-09 Thread Christian Grün
The first ruins all brackets it encounters, escaping them. That's what XML serialization is about; everything else would be invalid. Once again, you may want to switch to text as output method to avoid escaping: http://docs.basex.org/wiki/Serialization Christian

Re: [basex-talk] Full-text search and mixed content

2012-05-09 Thread Christian Grün
Ah, thanks a lot!  I would have never guessed this...  Maybe the documentation should say something like: Querying across elements is only supported when whitespace chopping is off.  If it's ok with you, I'll add it. ..thanks again for editing our Wiki -- always welcome! I've slightly added

Re: [basex-talk] Preferred way to run BaseX as service on Debian

2012-05-10 Thread Christian Grün
Hi Manuel, thanks for your input; at times, there were some online references to init.d scripts for BaseX; maybe they could be of interest here? http://blog.neolocus.com/2012/02/basex-xml-server-as-a-linux-service/ http://cubeb.blogspot.com/2011/07/basex_23.html Christian

Re: [basex-talk] java.lang.NoClassDefFoundError

2012-05-10 Thread Christian Grün
What would be the good directory to run that command from? The one containing BaseX.jar? Well, you'll only succeed if the argument of your -cp argument points to a JAR file, or a directory with Java classes. Otherwise, the Java runtime environment will have no clue where to locate the code to

Re: [basex-talk] feedback for RESTXQ and pure XML

2012-05-13 Thread Christian Grün
Hi Philippe, I would like to know best practices for using RESTXQ for pure XML Web services, in my case AtomPub. as RESTXQ is still pretty fresh, and as BaseX is still the first implementation (the one from eXist will follow soon, thanks to Adam!), it’s probably too early to talk about best

Re: [basex-talk] Error using transform method (XSLT Module)

2012-05-14 Thread Christian Grün
Dear Anand, thanks all, I have updated the buggy example (it was successfully parsed by Saxon, which is probably the reason why it managed to slip into the documentation): http://docs.basex.org/wiki/XSLT_Module#Examples Christian ___ On Mon, May 14, 2012 at 9:30 AM,

Re: [basex-talk] restxq and DB access

2012-05-15 Thread Christian Grün
Dear Gilles, I’m trying to use restxq to generate web report from a DB and I just don’t understand where to put the xqueries in the xqm files. you can put your queries in any *.xqm file located in the http root directory. http://httpserverIP:8080/BaseX72/restxq/ showing the page: Welcome

Re: [basex-talk] Full Text Search Ignore Option

2012-05-15 Thread Christian Grün
Hi Michael, I just noticed that BaseX doesn't support the Full Text ignore option (without content).  Are there any plans to add support for it? currently, no (this may change if we find enough people willing to sponsor this feature). Best, Christian

Re: [basex-talk] Using FOTS format with BaseX

2012-05-15 Thread Christian Grün
Hi Florent, thanks for your input. I am playing around with basex-tests [1].  I cloned the repository, then went to the directory and tried mvn test.  I got a compilation error: The error seems to point to an automatically generated class, which contains a string with (way) too many

Re: [basex-talk] Backup all databases at once?

2012-05-16 Thread Christian Grün
Hi Manuel, the CREATE BACKUP command supports the glob syntax, which means that you can backup all databases with one command call [1]. Hope this helps, Christian [1] http://docs.basex.org/wiki/Commands#CREATE_BACKUP ___ On Wed, May 16, 2012 at 9:47 AM, Manuel

Re: [basex-talk] DB replication

2012-05-17 Thread Christian Grün
Dear Mike, currently, all server operations are logged as plain text and shortened to a maximum of 1000 characters per single command. If you want to have more control on logging, and provide it on a higher level, you can e.g. use functions like file:append() to write your own logs to disk [1].

Re: [basex-talk] List all documents in a database

2012-05-20 Thread Christian Grün
Hi Anupam, as Jens indicated, you will find many hints on the notion of 'databases' and 'resources' in our documentation. LIST ([path])   List databases or documents in database. True, the wording is not up-to-date anymore (some time ago, we only stored documents, and no binaries, in the

Re: [basex-talk] Best way to insert large amounts of records

2012-05-20 Thread Christian Grün
Hi Manuel, thanks for your e-mail. - is this the most performant approach, or would it make sense to e.g. build one stream on the fly and somehow turn it into an inputstream to be sent via add? I'd say that your approach is close to an optimal solution, as the ADD command is pretty cheap,

Re: [basex-talk] Scala client library for BaseX

2012-05-20 Thread Christian Grün
Manuel, thanks for the announcement! I'd also be interested in your feedback on our existing, light-weight Scala API [1,2]. Christian [1] https://github.com/BaseXdb/basex-api/tree/master/src/main/scala [2] http://docs.basex.org/wiki/Clients ___ I'd like to announce the

Re: [basex-talk] Disable or control query caching

2012-05-21 Thread Christian Grün
Hi Manuel, dimcongeheugen-van-nederland        QUERY(3)        for $i in /record[@version = 0] order by $i/system/index return $i   OK      0.06 ms as you have already seen, all results are first cached by the client if they are requested via the iterative query protocol. In earlier

Re: [basex-talk] http server and client mode

2012-05-21 Thread Christian Grün
, Gilles. -Original Message- From: Christian Grün [mailto:christian.gr...@gmail.com] Sent: vendredi 18 mai 2012 16:52 To: Gilles CARRY Cc: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] http server and client mode Hi Gilles, Though, whenever httpserver (via restxq

Re: [basex-talk] http server and client mode

2012-05-21 Thread Christian Grün
Hi Gilles, Do you think it is big deal to modify Restxq in order to support client mode? I'm afraid that's probably a bigger issue, as the interpretation of the client request is tightly coupled with the query evaluation process. However, the RESTXQ code itself is pretty compact, so you are

Re: [basex-talk] RESTXQ and parameters in the media-type

2012-05-21 Thread Christian Grün
Hi Philippe, I would like to know if the parameters in the media-type should be in the produces annotation or elsewhere. Because I can't get it to work with the media-type of an atom feed member. the RESTXQ spec. or/and our implementation may need to be extended to support subtypes. Reg. your

Re: [basex-talk] db:add and ADD logic

2012-05-22 Thread Christian Grün
I don't understand the ADD/db:add behaviour when adding two documents with the same name : previous document is not replaced, but copied, and I did not find a way to correct, and delete only one of the documents, because they all have the same name... Currently, to optimize performance, ADD

Re: [basex-talk] RESTXQ and parameters in the media-type

2012-05-22 Thread Christian Grün
Philippe, Aren't subtypes already supported by RESTXQ? I was talking about the parameters of a media type which is the type=entry part in the following media type: thanks for the details, and: yes, of course I wanted to refer to the media type's parameters. -- I guess you are busy enough with

Re: [basex-talk] Managing databases via XQuery

2012-05-23 Thread Christian Grün
I sometimes find myself, in code, wanting to create a database, or more specifically test if a database exists and create it if does not. The database module appears not have functions to create (or delete databases). Is this a deliberate design decision? Indeed it is; but we are still

Re: [basex-talk] Managing databases via XQuery

2012-05-24 Thread Christian Grün
, Andreas Weiler andreas.wei...@uni-konstanz.de wrote: You still could use the Java Bindings. -- Andreas Am 23.05.2012 um 14:23 schrieb Christian Grün: I sometimes find myself, in code, wanting to create a database, or more specifically test if a database exists and create it if does

Re: [basex-talk] XML file with xmlns attribute and XPATH

2012-05-25 Thread Christian Grün
Do I really need to declare a default namespace or can I just use namespace everywhere in my code and it will be ok? Defining a default namespace is just one option; it's completely ok to declare namespace and attach them to prefixes. You may as well use the new XQuery 3.0 notation:

Re: [basex-talk] Too Many Open Files

2012-05-26 Thread Christian Grün
___ On Wed, May 16, 2012 at 1:11 AM, Christian Grün christian.gr...@gmail.com  wrote: Hi Andreas, seems you managed to get half of our team up and running.. ;) We have added a new option to limit the maximum time for connecting to the server [1]. By default, it is currently set to 10 seconds

Re: [basex-talk] Who is using...?

2012-05-26 Thread Christian Grün
Dear all, thanks for your voices! As it seems that the client mode of BaseXHTTP is used by none of you who reacted on my call -- and it's not used in any of the commercial projects we are/have been involved in -- we will most probably remove it in the next official release. Instead, we can

Re: [basex-talk] Who is using... ?

2012-05-26 Thread Christian Grün
Hi Fabrice, 1. Will BaseX clients still able to connect to the BaseX server serving HHTP requests ? Yes, that's for sure. By default, a server instance will be started with BaseXHTTP, which can also be accessed by other clients. This XQuery Client API Module is a very good idea ! Your

Re: [basex-talk] error message

2012-05-28 Thread Christian Grün
Dear David, do you have a reproducible example, or at least a full stack trace? Otherwise, it may get tough for us to track down the problem. Christian _ On Mon, May 28, 2012 at 9:08 PM, Brown, David (SSC-A) david.k.bro...@navy.mil wrote: The first 8 characters

Re: [basex-talk] Problem with copy-namespaces declaration

2012-05-30 Thread Christian Grün
Dear Hans-Juergen, yes, we are aware of some inconsistencies of the copy-namespace declarations, and the issue is still on one of our internal todo lists. Due to some secondary details, a different handling is required for main memory fragments and nodes stored in databases. It may take some time

Re: [basex-talk] Ask about the Context object!

2012-05-31 Thread Christian Grün
I've created 2 database with the same context. After making changes to the first database, I exported the whole database, but I could not see the changes. I have no problem with the second database. Is the same context the reason? Do you have a working example that allows us to reproduce the

  1   2   3   4   5   6   7   8   9   10   >