Re: [basex-talk] how to speed up //myTag requests ?

2012-08-23 Thread Christian Grün
Hi Fabrice, > In a /a/b/c example schema, > Is there any index that could speed up //c request ? if there are no other descendant paths to ... elements in your database, your query will automaticlly be rewritten to /a/b/c. The InfoView in the GUI or the QUERYINFO option [1] will give you more in

Re: [basex-talk] I/O Read bytes information on Windows TaskManager

2012-08-24 Thread Christian Grün
Hi Fabrice, I‘d probably need more details in order to give an educated guess. After all, it doesn't sound like a bug, but maybe the queries can be rewritten. Did you look at the Info View? Christian ___ > Dear all at BaseX, > > I'm working with a 30 Go database, > contai

Re: [basex-talk] Concurreny troubles (?) and some remarks.

2012-08-27 Thread Christian Grün
Hi Huib, we have recently fixed some concurrency issues that have been related to the (un)compression of texts, so I'd be glad if you could test our latest stable snapshot: http://files.basex.org/releases/latest/ Thanks, Christian ___ On Mon, Aug 27, 2012 at 3:09 PM, V

Re: [basex-talk] Concurreny troubles (?) and some remarks.

2012-08-27 Thread Christian Grün
Hi Huib, an intermediate update: yes, I should have parsed your mail until the very bottom.. > [...] When we use only one > thread (simulated user) everything is fine, when we increase the number of > threads we quickly end up with a corrupted database [...] I know it’s no easy task, but if you

Re: [basex-talk] Concurreny troubles (?) and some remarks.

2012-08-27 Thread Christian Grün
> [VERWEIJ Huib - Contractor] I'll see if I can produce a SSCCE. [CG] perfect, thanks ;) > [VERWEIJ Huib - Contractor] I am trying to locate XSD files that are used to > verify incoming data. I am trying to locate them relative to the "http" dir > where my .xqm file resides, e.g. "../xsd/book.x

Re: [basex-talk] Concurreny troubles (?) and some remarks.

2012-08-28 Thread Christian Grün
Hi Huib, thanks for sending me your case, I'll have a look at soon. A note for everyone: all previous PDF versions of the documentation are now listed in our Wiki [1]. Next, we’ve added some words on the new HTTP Options, such as RESTXQPATH [2]. Some more general notes on the jetty.xml and web.xm

Re: [basex-talk] profiling function execution order

2012-08-28 Thread Christian Grün
Hi Seenivasan, hi Marco, thanks for your thorough analysis. I agree that the query rewriting comes somewhat unexpected in your query, and wouldn’t even improve performance for „deterministic” expressions in the let clause. I’ll have a look at that soon, and keep you updated, Christian ___

Re: [basex-talk] profiling function execution order

2012-08-28 Thread Christian Grün
:05 PM, Christian Grün wrote: > Hi Seenivasan, hi Marco, > > thanks for your thorough analysis. I agree that the query rewriting > comes somewhat unexpected in your query, and wouldn’t even improve > performance for „deterministic” expressions in the let clause. > > I’ll hav

Re: [basex-talk] profiling function execution order

2012-08-29 Thread Christian Grün
> plz find the sample code below. the particular URI will create a simple new > default xml under 'example' database. This was working fine in the previous > versions, but with the latest release(BaseX74-20120829.045851.zip), its just > hanging and never producing any response. Is there anywhere I

[basex-talk] OAuth with BaseX, next release

2012-08-29 Thread Christian Grün
Hi all, if you need an OAuth implementation in XQuery, feel free to check out Andy’s XQuery-OAuth project in GitHub: https://github.com/apb2006/XQuery-OAuth Cheers, Christian PS: BaseX 7.4 will most probably be finalized next month. ___ BaseX-Talk m

Re: [basex-talk] limit to the number of entity expansions

2012-08-30 Thread Christian Grün
I guess you are working with Java's default XML parser? Switching to the internal parser should do the trick. You could also try to increase the maximum via system properties (see e.g. [1]). Best, Christian [1] http://forums.pentaho.com/showthread.php?54602-Parser-has-reached-the-entity-expansio

Re: [basex-talk] Bug in XPath expression

2012-08-30 Thread Christian Grün
Hi Hans-Jürgen, do you have an example document to get the query running? Thanks in advance, Christian ___ > if I am not mistaken, the following code demonstrates a bug. The code > extracts from a schema a type definition, referenced by an element > declaration. The secon

Re: [basex-talk] Bug in XPath expression

2012-08-31 Thread Christian Grün
..fixed [1]! As usual, new snapshots are available [2]. Christian [1] https://github.com/BaseXdb/basex/issues/567 [2] http://files.basex.org/releases/latest/ ___ On Thu, Aug 30, 2012 at 2:46 PM, Hans-Juergen Rennau wrote: > Hello, > > if I am not mistaken, the following c

Re: [basex-talk] Concurreny troubles (?) and some remarks.

2012-09-02 Thread Christian Grün
Hi Huib, your test case seems to run fine on my machine. I'll send you a note in private, containing more details. Best, Christian ___ On Tue, Aug 28, 2012 at 3:15 PM, Christian Grün wrote: > Hi Huib, > > thanks for sending me your case, I'll have a

Re: [basex-talk] API.Command Protocol - more and next functions

2012-09-03 Thread Christian Grün
Hi Andrei, more() and next() are only contained in the client-side bindings, and the RESULTS command is used to request all items from a server. Feel free to look into the sources of an existing client bindings; most of them provide support for the more() and next() functions. Feel free to ask f

Re: [basex-talk] Full-Text Query Including Attributes

2012-09-04 Thread Christian Grün
Hi Sam, sure; I have attached a possible solution below. It's not as compact as the XPath version, though. Hope this helps, Christian ___ let $word := 'herself' let $pos := 'VERB' let $dist := 3 (: read from file/database let $doc := doc("your-document.xml") :

Re: [basex-talk] Full-Text Query Including Attributes

2012-09-05 Thread Christian Grün
Hi Sam, > Does your code use a full-text index? I guess that the index should be applied by the "contains text" expression. Feel free to open the InfoView in the GUI to see what's happening internally. > Is it possible to use full-text index for search attributes? Others have asked for this bef

Re: [basex-talk] can restxq add a document to the db and return an http response?

2012-09-06 Thread Christian Grün
Hi Colin, > Is it possible with restxq to add a document to a db? And if so, to also > return an http response? sure; you need to mark your function as updating, and the db:output() function will allow you to return data. Your updated example is shown below. Hope this helps, Christian __

Re: [basex-talk] can restxq add a document to the db and return an http response?

2012-09-06 Thread Christian Grün
t - thanks! >> >> I was looking here for list of all annotations: >> >> http://docs.basex.org/wiki/RESTXQ >> >> But now I see these - %public, %private, or %updating - on this page >> too: >> >> http://docs.basex.org/wiki/XQuery_3.0#Annotations &g

Re: [basex-talk] Individual docs from collection

2012-09-08 Thread Christian Grün
Thanks everyone for the feedback. Here’s one more solution: let $dbname := 'db' let $doc := ( 'doc1.xml', 'doc2.xml' ) ! ($dbname || '/' || .) for $doc in collection($dbname)[document-uri() = $doc] return 'do something' The $doc variable contains the list of documents, which will be prefixed

Re: [basex-talk] xquery grouping

2012-09-09 Thread Christian Grün
H Sateesh, Dirk is currently busy with numerous other todos. If you want us (or someone else on this list) to solve your problems more quickly, please take some time to prepare simple examples that can be easily tested. Christian ___ On Fri, Sep 7, 2012 at 10:45 AM, satee

Re: [basex-talk] Unable To Query XML document with Namespace Declarations

2012-09-09 Thread Christian Grün
Hi Ramesh, have you specified the namespaces in your XQuery expression? As a shortcut, you may also use wildcards: /*:this/*:may/*:help Christian ___ On Mon, Sep 10, 2012 at 6:04 AM, Ramesh G wrote: > Hi All, > > I am trying to query an XML document which has some n

Re: [basex-talk] RegExp Bug S{n,m}

2012-09-11 Thread Christian Grün
Noted, thanks [1]; will be fixed soon. Christian [1] https://github.com/BaseXdb/basex/issues/573 ___ > Hi > This expression: > replace(" ddd ",'(.{6,15}) ','$1@') > results in > [FORX0002] Invalid pattern: 'Illegal quantifier, lower > upper bound: > {6,1}'. >

Re: [basex-talk] The future of db:create

2012-09-12 Thread Christian Grün
Hi Andy, it's nice to hear that you spotted my temporary Wiki edit.. Yes, I'm quite positive that db:create() will make it into 7.5, although there are still lots of "minor issues" to resolve. Next, as you've probably read, db:create() will always executed after all other database operations on th

Re: [basex-talk] The future of db:create

2012-09-12 Thread Christian Grün
__ > On Wed, Sep 12, 2012 at 3:05 PM, Christian Grün > wrote: >> >> Hi Andy, >> >> it's nice to hear that you spotted my temporary Wiki edit.. Yes, I'm >> quite positive that db:create() will make it into 7.5, although there >> are sti

Re: [basex-talk] using xslt 2 --- Unknown function 'current-grouping-key(...)'.

2012-09-13 Thread Christian Grün
Dear Alex, as Max stated, it would be interesting to know what xslt:processor() gives you as result. This way, we will know if Saxon or Java is used as processor. Thanks, Christian ___ On Thu, Sep 13, 2012 at 3:47 PM, Alex Muir wrote: > As I said in the first line of my

Re: [basex-talk] using xslt 2 --- Unknown function 'current-grouping-key(...)'.

2012-09-13 Thread Christian Grün
Thanks. What happens if you specify BaseX73.jar in the classpath? java -cp saxon9he.jar;BaseX73.jar org.basex.BaseXGUI ___ On Thu, Sep 13, 2012 at 3:53 PM, Alex Muir wrote: > Java is being used > > On Thu, Sep 13, 2012 at 9:51 AM, Christian Grün > wrote:

Re: [basex-talk] Is BaseX suitable for storing XML files that follow different schemas ?

2012-09-14 Thread Christian Grün
Dear Tom, BaseX can be used to store any type of XML documents, no matter if schema information is available or not. As a consequence, you can distribute your files in several databases, or store them all in a single db. It mostly depends on the size of your documents. While it's theoretically pos

Re: [basex-talk] REST "directory" listing

2012-09-18 Thread Christian Grün
Hi Marcus, thanks for your feedback. This may be related to the 7.3 release. Could you please try the latest stable BaseX 7.5 snapshot [1] and give us some quick feedback? 7.5 will be released the end of September. Christian [1] http://files.basex.org/releases/latest/ __

Re: [basex-talk] BaseX 7.3: unexpected Stack Overflow

2012-09-18 Thread Christian Grün
Dear Torsten, thanks for the bug report, always welcome. The issue is related to the "Info View" in the GUI or, more exactly, the generation of the query plan, which was triggering a recursive loop. It was running fine when the Info View was deactivated (which was the reason why I first couldn't r

Re: [basex-talk] REST "directory" listing

2012-09-18 Thread Christian Grün
___ On Tue, Sep 18, 2012 at 12:26 PM, Christian Grün wrote: > Hi Marcus, > > thanks for your feedback. This may be related to the 7.3 release. > Could you please try the latest stable BaseX 7.5 snapshot [1] and give > us some quick feedback?

Re: [basex-talk] restxq..Does the extension .xqm is mandatory?

2012-09-19 Thread Christian Grün
Dear Seenivasan, > Was .xqm extension for the xquery module that handles RESTXQ calls are > mandatory? Yes, the extension is mandatory, and has been mandatory since the introduction of RESTXQ. Before, however, RESTXQ methods were also detected in imported modules. We have disabled this feat

Re: [basex-talk] Configuration for locking files with Oxygen/webDAV

2012-09-19 Thread Christian Grün
Dear France, > What is the proper BaseX configuration to allow multiple users to > concurrently update a database from Oxygen? I am sorry we cannot tell how the oXygen editor locks files opened via WebDAV, so it may be worth to ask this question on the oXygen mailing list. > According to http:/

Re: [basex-talk] (no subject)

2012-09-20 Thread Christian Grün
This might help: data(doc('sample')/Docs/Doc[MainDesc/text() contains text 'unfavorable' or FullDesc/text() contains text 'unfavorable']/DocTitle/@C) On Thu, Sep 20, 2012 at 1:43 PM, John Best wrote: > Hi there, > > > > > > Below is my XML Structure – > > > > > > > >

Re: [basex-talk] Indexes update

2012-09-20 Thread Christian Grün
> Is it necessary to update indexes and fulltext on every insert for the > complete Database, The UPDINDEX option can be used to activate incremental indexing of text and attribute values [1,2]. For now, the full-text needs to be manually rebuilt. Hope this helps, Christian [1] http://docs.basex

Re: [basex-talk] date field ordering

2012-09-20 Thread Christian Grün
Dear Hariprasad, I have attached a possible solution below. Note that it may be useful to represent dates in the xs:date format (-MM-DD) in your data, as this will potentially speed up sorting. Next, the t...@x-query.com list or StackOverflow could be a better target for general questions on X

Re: [basex-talk] convert:dateTime-to-ms and the release date of BaseX 7.5

2012-09-23 Thread Christian Grün
Dear Andreas, > 1.Therefore I would like to ask what a possible release date for version > 7.5 could be, is it planned in rather in > weeks or month? BaseX 7.5 was initially scheduled for the end of September; due to some other important deadlines, we're sorry to say we'll have to postpone th

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

2012-09-23 Thread Christian Grün
Dear Samuel Lacmene , sorry for the delay, and thanks for the bug report. First of all, I'd be interested if the bug persists with the latest stable snapshot [1]? If that should be the case, I'be glad if you could provide us with a small example [2] that allows us to reproduce the issue. Thanks

Re: [basex-talk] Regarding ft:tokens() ...

2012-09-24 Thread Christian Grün
> I want to use the ft:tokens() to show the word occurrences, but I am getting > chopped output... > There are 82419 results, but only 63598 are being displayedin BaseX... Do you refer to the display in the text view? Text results are generally limited to 2MB in order to avoid out of memory is

Re: [basex-talk] Two basic questions

2012-09-24 Thread Christian Grün
Dear Garey, > would it be better to have a collection of small XML > documents, one to each user; or does BaseX provide the concurrent access > control to allow me to have one document with any number of user records? the transaction management of BaseX will ensure that there won't be any con

[basex-talk] (How to) build application with BaseX

2012-09-25 Thread Christian Grün
Hi Andreas, hi everyone, > Since XQDT works under Eclipse 3.7 and offers parentheses matching [...] that's an important point of course. I would generally interested what tools you (all) prefer to develop applications with BaseX, XQuery and XML. As you may know, the embedded BaseX editor can be

Re: [basex-talk] Two basic questions

2012-09-25 Thread Christian Grün
to address one or more databases at the same time. Some more details on our transaction management are found in our documentation: http://docs.basex.org/wiki/Transaction_Management Hope this helps; feel free to ask for more, Christian > On 9/24/2012 6:27 PM, Christian Grün wrote

Re: [basex-talk] (How to) build application with BaseX - request for parameters

2012-09-25 Thread Christian Grün
> When testing the script during the development against a sample database > with BasexGUI this is manually changed into: > > (: declare variable $dbName external; :) > declare variable $dbName := 'll_i_one'; There may be various solutions for that problem: 1) You can specify a default v

Re: [basex-talk] (How to) build application with BaseX

2012-09-25 Thread Christian Grün
Thanks, Florent, mails to the oXygen list are always welcome. Christian ___ On Tue, Sep 25, 2012 at 6:59 PM, Florent Georges wrote: > Maximilian Gärber wrote: > > Hi, > >> The execution of XQuery is a different topic: oXygen uses Saxon for >> XQuery execution/debugging

Re: [basex-talk] (How to) build application with BaseX

2012-09-25 Thread Christian Grün
gt; >> When I have to do anything specific to BaseX, the built-in editor is very >> good and provides everything at hand! >> >> Regards, >> >> -- >> Florent Georges >> http://fgeorges.org/ >> http://h2oconsulting.be/ >> >> >>

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

2012-09-26 Thread Christian Grün
ve to stop > and start the basex-server and run the example. > > Best regards > Samuel > > > -----Ursprüngliche Nachricht- > Von: Christian Grün [mailto:christian.gr...@gmail.com] > Gesendet: Montag, 24. September 2012 00:10 > An: samuel.lacm...@buit-solutions.com &

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

2012-09-26 Thread Christian Grün
n the > attachment). > > I have remarked that, to have more chance to see the BUG, you have to stop > and start the basex-server and run the example. > > Best regards > Samuel > > > -----Ursprüngliche Nachricht- > Von: Christian Grün [mailto:christian.gr...@gmai

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

2012-09-26 Thread Christian Grün
wrote a small example based on the factbook.xml, the bug occurred in >> the first 2 tests and then it has disappeared (See the example in the >> attachment). >> >> I have remarked that, to have more chance to see the BUG, you have to stop >> and start the basex-server and

Re: [basex-talk] Adding a XML and fulltext index is gone

2012-09-27 Thread Christian Grün
Hi Abhishek, currently, incremental updates only exist for the text and attribute value index [1]. There are several solutions for your problem. In BaseX, a single XQuery expression can be used to query or update an arbitrary databases at the same time. If you want to include recently add documen

Re: [basex-talk] User rights: does using db:add really need the GLOBAL write permission?

2012-09-27 Thread Christian Grün
Hi Arjan, > # That's more like it. But: what when I forget that one day...? ;) Thanks for your elaborate report. It's completely true that.. >> xquery db:add("db1", "created by user1", "test-doc-1") > Stopped at line 1, column 67: > [BASX0001] WRITE permission required. ..shouldn’t have thrown

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

2012-09-27 Thread Christian Grün
wrote: >>> Dear Christian, >>> >>> Thank you for the answer. I have tried to reproduce the BUG with the last >>> Snapshot, but it still persists. >>> So, I wrote a small example based on the factbook.xml, the bug occurred >>> in >>

Re: [basex-talk] Silent installation of BaseX on Windows7

2012-09-28 Thread Christian Grün
Hi Christian, the Windows installers of BaseX are being built with the NSIS installer [1]. I guess that some minor modifications will be necessary in order to activate the silent installer flag /S [2]. If you are interested in updating our installation script, feel free [3]! Cheers, Christian [1

Re: [basex-talk] XQJ: Exception using Saxon9 TransformerFactoryImpl

2012-09-28 Thread Christian Grün
Dear David, thanks for your e-mail and your report. I finally had some time to look at your example, and I managed to reproduce the problem. As the error is raised before BaseX gets into action, I'm passing this on to Charles Foster who wrote the wonderful XQJ implementation for BaseX.. @Charles:

Re: [basex-talk] XQJ: Exception using Saxon9 TransformerFactoryImpl

2012-10-06 Thread Christian Grün
Hi David, I have included Charles' fixed API in the latest stable snapshot [1]. Your feedback is welcome, Christian [1] http://files.basex.org/releases/latest/ ___ On Fri, Sep 28, 2012 at 9:17 PM, Christian Grün wrote: > Dear David, > > thanks for your e

Re: [basex-talk] Documents added by db:add(...) not visible for other existing database connections?

2012-10-07 Thread Christian Grün
Hi Arjan, thanks again for your helpful report. It pointed me to a generally buggy behavior, which may occur when document updates occur in databases that are opened by multiple clients. I have opened a new issue [1]. As I'll be on the road for some (more) days, it may take some time until this is

Re: [basex-talk] db creation mini tool

2012-10-08 Thread Christian Grün
Dear Hans-Jürgen, the necessity for db:create() and db:drop() is getting more and more obvious, which is why we will definitely introduce those two functions with BaseX 7.5. We also thought about adding variable support to command scripts, but this would result in additional challenges (e.g, how t

Re: [basex-talk] Navigating a DOM

2012-10-16 Thread Christian Grün
+1, thx Johannes. BaseX has quite a powerful internal API, but JavaDoc is the only available documentation. I'll give some more feedback end of the week. Am 16.10.2012 01:57 schrieb "Johannes.Lichtenberger" < johannes.lichtenber...@uni-konstanz.de>: > On 10/15/2012 07:12 PM, Rainer Klute wrote: >

Re: [basex-talk] Using full Java regular expressions

2012-10-21 Thread Christian Grün
Hi Gary, BaseX provides the full XQuery 3.0 regular expression syntax [1,2]; maybe it already contains the features you need for your queries? If not, could you give us a hint which ones you are missing? While we could add an additional flag to the regex evaluator in BaseX, we are generally hesit

Re: [basex-talk] Using full Java regular expressions

2012-10-21 Thread Christian Grün
ublic/query.cgi > ____ > From: Christian Grün > > To: The Trainspotter > Cc: "basex-talk@mailman.uni-konstanz.de" > > Sent: Sunday, 21 October 2012, 18:23 > > Subject: Re: [basex-talk] Using full Java regular expressions > > Hi Gary, > > B

Re: [basex-talk] Navigating a DOM

2012-10-21 Thread Christian Grün
er, though! Christian ___ On Tue, Oct 16, 2012 at 10:53 AM, Rainer Klute wrote: > On 16.10.2012 10:42, Christian Grün wrote: >> >> +1, thx Johannes. BaseX has quite a powerful internal API, but JavaDoc >> is the only available documentation. I&#x

Re: [basex-talk] Bug in db:rename()

2012-10-22 Thread Christian Grün
Charles, thanks for your observation, which I had added to our issue tracker [1]. It has been fixed in the latest snapshot [2]. Best, Christian [1] https://github.com/BaseXdb/basex/issues/583 [2] http://files.basex.org/releases/latest/ ___ On Tue, Oct 16, 2012 at 10:23 P

Re: [basex-talk] BaseX Scala Client 0.5 released, this time with documentation

2012-10-23 Thread Christian Grün
Manuel, thanks a lot for your Scala client! I have finally added it to the list of clients in our documentation [1]. Best, Christian [1] http://docs.basex.org/wiki/Clients ___ On Thu, Oct 18, 2012 at 12:33 PM, Manuel Bernhardt wrote: > Hi all, > > I finally found / forc

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

2012-10-23 Thread Christian Grün
Dear Riyaz, as Lucas indicated, we have marked the XML:DB API as deprecated, as it's already many years old and not developed any further. Still, you are invited to have a look at our examples, which should be up-to-date, and see if they can be aligned with your scenario. Hope this helps, Christi

Re: [basex-talk] running xquery scripts in REST server

2012-10-23 Thread Christian Grün
Dear Peter, thanks for your question, and sorry for the outdated example. Sime time ago, we have disabled the direct execution of query files residing in databases in order to make our simple REST interface more RESTful, i.e., reduce the number of side effects that can be caused by a REST call. I

Re: [basex-talk] Unable to get jetty servlet to see existing database

2012-10-23 Thread Christian Grün
Dear Michael, sorry for the late feedback. Along with BaseX 7.5, several changes have been performed in the web application context, so I would like to hear if you have already tried our latest snapshot [1], and if the problems are resolved with that version. The new version will be released prett

Re: [basex-talk] Best practices for concurrency

2012-10-23 Thread Christian Grün
Hi Gary, as Andreas mentioned, the server approach will ensure that all operations will be concurrently handled. An alternative, however, is to create a LocalSession instance, which provides the same interface and functionality as the ClientSession class, but does not rely on a database server. A

Re: [basex-talk] Unable to get jetty servlet to see existing database

2012-10-23 Thread Christian Grün
re I think I'm hitting the wall. > > Thank you again! > > Michael Mendez > > > > > > On Tue, Oct 23, 2012 at 7:47 AM, Christian Grün > wrote: >> >> Dear Michael, >> >> sorry for the late feedback. Along with BaseX 7.5, several ch

Re: [basex-talk] Unable to get jetty servlet to see existing database

2012-10-23 Thread Christian Grün
> Thank you! I really look forward to testing our system with basex, I > expect a vast improvement in speed based on an alpha build I've been > playing with on the windows side. > > Michael Mendez > > > > On Tue, Oct 23, 2012 at 1:07 PM, Christian Grün >

Re: [basex-talk] Navigating a DOM

2012-10-23 Thread Christian Grün
Dear Rainer, > I have a really large XML file which does not fit into memory, and I > would like to navigate it as a DOM. My hope was that I could store it as > a BaseX database, retrieve the root element as a org.w3c.dom.Node, and > then start navigating down and up the DOM as needed without havi

Re: [basex-talk] Best practices for concurrency

2012-10-23 Thread Christian Grün
hat works out. > > Cheers > Gary > ____ > From: Christian Grün > To: Andreas Weiler > Cc: The Trainspotter ; > "basex-talk@mailman.uni-konstanz.de" > Sent: Tuesday, 23 October 2012, 12:55 > Subject: Re: [basex-talk] Best practices for concurrency > > Hi Gary, &

Re: [basex-talk] Resource doesn't exist… but it does

2012-10-24 Thread Christian Grün
Dear France, some questions: – you mentioned that your code used to work before; have you done any updates, or do you have any other indication that caused the potential bug? – have you tried to restart the server/services? – how does your full XQuery (or, better, the snippet that builds the re

Re: [basex-talk] XQJ and local database and BaseX 7.3/7.5

2012-10-24 Thread Christian Grün
Hi Andreas, as you correctly observed, the old XQJ implementation has been discontinued, and our current XQJ implementation is based on the client/server architecture. We already thought about providing a local version as well. The (closed source) implementation would be completely up to Charles F

Re: [basex-talk] RegExp Bug S{n,m}

2012-10-24 Thread Christian Grün
Hi Andy, hi Alex, the regex bug has eventually been fixed [1,2]. Cheers, Christian [1] https://github.com/BaseXdb/basex/issues/573 [2] http://files.basex.org/releases/latest/ ___ On Tue, Sep 11, 2012 at 6:18 PM, Andy Bunce wrote: > Hi > This expression: > replace("

Re: [basex-talk] BaseX as Windows Services

2012-10-24 Thread Christian Grün
Raymond, thanks for the hint. Maybe we'll encounter some problems if we want to support all recent Windows platforms?.. If you find some time to try this out, your feedback is very welcome. Christian ___ On Wed, Oct 24, 2012 at 3:55 PM, Raymond Meester wrote: > > Right n

Re: [basex-talk] Create DB from query

2012-10-25 Thread Christian Grün
Dear Bryan, we are currently including new db:create() and db:drop() functions to BaseX. Until then, there are other options to do what you want. One example is creating a command script from XQuery [1] and run it afterwards, e.g. as follows: file:write('script.bxs', { for $c in distinct-va

Re: [basex-talk] Create DB from query

2012-10-25 Thread Christian Grün
>>> for $doc in db:open('DK') >>> let $name := $doc/*/name() >>> return db:add($name, $doc) >> where DK is the name of my db. Maybe one of the returned name strings is empty. Could you send me the result of the following query? for $name in db:open('DK')/*/name() return element name { $

Re: [basex-talk] Create DB from query

2012-10-25 Thread Christian Grün
> Ok, its attached, can't see any issue. Hope you don't mind that I > gzipped but there's nearly 300 thousand documents. Yes, the data looks fine. As you already indicated, only invalid data would cause such errors, so I'm still not sure what causes the problem in your data, sorry.. Maybe someone

Re: [basex-talk] Create DB from query

2012-10-26 Thread Christian Grün
Hi Bryan, I noticed I overlooked an important detail in your query: there was no indication of how the target document should be called. The following query should work: for $doc in db:open('AFGDOK') let $name := $doc/*/name() let $target := replace(base-uri($doc), '.*?/', '') return db:a

Re: [basex-talk] Create DB from query

2012-10-26 Thread Christian Grün
t 26, 2012 at 1:22 PM, Christian Grün wrote: > Hi Bryan, > > I noticed I overlooked an important detail in your query: there was no > indication of how the target document should be called. The following > query should work: > > for $doc in db:open('AFGDOK') >

Re: [basex-talk] Bug in document order

2012-10-29 Thread Christian Grün
Hans-Jürgen, thanks for the compact example. I reduced it to the following input and query.. XML x.xml: Query x.xq: let $out := element x { ., } return $out/* Command: basex -ix.xml x.xq ..and recorded it as a GitHub issue [1]. We’ll let you know when the bug has been fixed. Christian [1] h

Re: [basex-talk] Navigating a DOM

2012-10-29 Thread Christian Grün
Hi Rainer, I’m sorry there is no public documentation on our low-level API. Did you have a look at the JavaDoc of our source code? This is e.g. how you may request the value of an attribute: ANode node = ... byte[] value = node.attribute(new QNm("name")); System.out.println(Token.string(va

Re: [basex-talk] Calling static Java function from XQuery

2012-10-31 Thread Christian Grün
Hi Gary, we are frequently using and embedding Java code in our projects. Do you have a quick example? Christian ___ On Wed, Oct 31, 2012 at 7:39 PM, The Trainspotter wrote: > Hi, > > I followed the docs and examples on calling Java functions from XQuery, but > when I tr

Re: [basex-talk] Calling static Java function from XQuery

2012-10-31 Thread Christian Grün
Does your code work if you remove the "static" flag from the getEntryXPath function? ___ Christian Grün Box 188, Uni KN D-78457 Konstanz http://christian-gruen.de On Wed, Oct 31, 2012 at 7:52 PM, The Trainspotter wrote: > Sure, here's the module

Re: [basex-talk] Setting User-Agent for http:send-request?

2012-10-31 Thread Christian Grün
This may work: The spec may give you some more hints [1]. Christian [1] http://www.expath.org/spec/http-client > I am trying to set User-Agent header attribute for an HTTP request with > following code snippet. > > > let $content := http:send-request( status-only='false' User-Agent='Mozilla

Re: [basex-talk] Calling static Java function from XQuery

2012-10-31 Thread Christian Grün
I've tried your little example. It works fine on my system, so feel free to send me an sscce, which allows us to reproduce the issue locally. Best, Christian ___ Christian Grün Box 188, Uni KN D-78457 Konstanz http://christian-gruen.de On Wed, Oct 31, 2012 at 11:

Re: [basex-talk] Calling static Java function from XQuery

2012-10-31 Thread Christian Grün
ed as part of an eclipse plugin and > therefore my class won't be on it's classpath. > > ____ > From: Christian Grün > To: The Trainspotter > Cc: "basex-talk@mailman.uni-konstanz.de" > > Sent: Wednesday, 31 October 2012, 22:52 >

Re: [basex-talk] Setting User-Agent for http:send-request?

2012-11-01 Thread Christian Grün
> Erol Akarsu > > > > On Wed, Oct 31, 2012 at 6:25 PM, Christian Grün wrote: >> >> This may work: >> >> >> >> The spec may give you some more hints [1]. >> Christian >> >> [1] http://www.expath.org/spec/http-client >&

Re: [basex-talk] Create DB fails with 'Input is too large for a single database'

2012-11-01 Thread Christian Grün
Dear Fabrice, your input document is indeed too large for a single database, as it seems to exceed 2 billion (2^31) nodes. you'll have to split up the document manually, and save it in multiple databases, which can then be accessed by a single XQuery. We have some plans for BaseX 8 to support up t

Re: [basex-talk] Function will return node(), but db:output(node()) returns 'Attribute xmlns redefined'

2012-11-02 Thread Christian Grün
Hi France, I tried a while to reproduce the issue you've been presenting, but I didn't succeed so far. Do you think you could create a runnable example for testing, or are there too many other components involved? Thanks in advance, Christian ___ Christian Gr

Re: [basex-talk] Newbie Question - DOCTYPE declarations

2012-11-02 Thread Christian Grün
Hi Roy, if documents are parsed and stored as XML, they will be normalized and, in this process, some meta information, such as the doctype declaration, is lost. The same applies e.g. to text declarations ( or entities. With XQuery and other interfaces, it is possible to serialize documents with

Re: [basex-talk] pre values and add-only dbs

2012-11-02 Thread Christian Grün
Hi Fabrice, > Can pre values change in add-documents-only databases ? using the latest version of BaseX (maybe also with 7.3 or previous versions? I don’t remember), pre values for existing documents will never change, even if you add new documents. This is not valid, however, in the second case

Re: [basex-talk] BaseX Scala Client 0.5 released, this time with documentation

2012-11-03 Thread Christian Grün
As there have been no general changes in the protocol, I assume that all existing clients (incl. Manuel's Scala protocol) should also work with 7.5.. http://files.basex.org/releases/latest/ ___ On Sat, Nov 3, 2012 at 1:02 PM, Manuel Bernhardt wrote: > Hi Greg, > > sorry

Re: [basex-talk] Installation on mochahost

2012-11-05 Thread Christian Grün
/ ___ Christian Grün Box 188, Uni KN D-78457 Konstanz http://christian-gruen.de On Mon, Nov 5, 2012 at 1:24 PM, wrote: > Hello List > I am wanting to install basex on a mochahost web service > (http://http://www.mochahost.com) with a shared JVM > > The service pro

Re: [basex-talk] java 7 support

2012-11-05 Thread Christian Grün
Dear Asaf, yes, BaseX is being tested with both Java 6 and 7. As Oracle’s support for Java 6 will expire in February [1], we may even stop support for Java 6 soon (but this is still being discussed). Best, Christian [1] http://www.oracle.com/technetwork/java/eol-135779.html _

Re: [basex-talk] Function will return node(), but db:output(node()) returns 'Attribute xmlns redefined'

2012-11-06 Thread Christian Grün
Thanks, Christian _______ Christian Grün Box 188, Uni KN D-78457 Konstanz http://christian-gruen.de On Mon, Nov 5, 2012 at 4:37 PM, France Baril wrote: > Setup: > >- Empty DB feedback >- DB named 'en-us' with some content. >- The attached .xmq >- BaseX 7.4 &

Re: [basex-talk] best practices questions

2012-11-06 Thread Christian Grün
Dear MIke, it's always difficult to give general advise on how to distribute data in XML databases or, particularly, BaseX, but… it's often helpful to look at how often your data, and parts of it will be updated. If some of your data is rather static, but needs to be queried often, and some other

Re: [basex-talk] Installation on mochahost

2012-11-06 Thread Christian Grün
It would be great if you could just try 7.5 and report if some of your problems have been solved by the new version. Thanks, Christian ___ Christian Grün Box 188, Uni KN D-78457 Konstanz http://christian-gruen.de On Tue, Nov 6, 2012 at 2:24 PM, wrote: > Hi Christ

Re: [basex-talk] Concurrency

2012-11-06 Thread Christian Grün
You shouldn't encounter any problems if you are accessing the two databases in a single XQuery expression. Could you give some more details on what you've tried so far? ___ Christian Grün Box 188, Uni KN D-78457 Konstanz http://christian-gruen.de On Tue, Nov

Re: [basex-talk] Newbie Question - DOCTYPE declarations

2012-11-06 Thread Christian Grün
compliance with > legal requirements and company policies and your sending to, or receiving > from, us of any email constitutes your agreement to these terms. > > > > From: Christian Grün [christian.gr...@gmail.com] > Sent: 02 November 2012 19:58 > To: Roy MacLean > Cc: bas

Re: [basex-talk] Concurrency

2012-11-06 Thread Christian Grün
take some time to get to know the nuts and bolts of the language. Christian ___ On Tue, Nov 6, 2012 at 3:05 PM, Rainer Klute wrote: > On 06.11.2012 14:51, Christian Grün wrote: >> You shouldn't encounter any problems if you are accessing the two >> dat

  1   2   3   4   5   6   7   8   9   10   >