Re: [basex-talk] Use xquery:eval or not?

2014-11-17 Thread Marco Lettere
On 16/11/2014 12:17, Christian Grün wrote: If one is aware of the obvious drawbacks of using eval (code injection, query strings cannot be parsed at compile time, ...), Hi Christian, according to the latter of these points I'd like to know whether there is a possibility of having an XQuery

Re: [basex-talk] Use xquery:eval or not?

2014-11-17 Thread Christian Grün
Hi Marco, according to the latter of these points I'd like to know whether there is a possibility of having an XQuery string validated from a syntactical viewpoint. currently no. It would certainly be doable, but I would like to hear more about the applications you have in mind. For example,

Re: [basex-talk] REST queries: Read permissions needed

2014-11-17 Thread Jérôme Chauveau
Hi Christian, I am sorry for the delay. I solved my problem with a new tomcat + basex installation/deployment. But a new one appears now :-) With this user configuration: Username Read Write Create Admin admin X X X X myuser

[basex-talk] IDs management

2014-11-17 Thread Ioan Fericel
Hello all, I would like to ask your advice on the best practice to use the IDs in BaseX, somewhat in the classic style of relationships between records in different nodes or documents. I have not found a simple way to create autoincrement IDs, and indexes generated by BaseX I understand

Re: [basex-talk] IDs management

2014-11-17 Thread Paul Swennenhuis
Hi Ioan, I'd use a GUID-generation algorithm, with a near to 100% certainty of generating unique id's. Or do you need a sequential order? Paul Hello all, I would like to ask your advice on the best practice to use the IDs in BaseX, somewhat in the classic style of relationships between

[basex-talk] Origimi 0.3: Extractors

2014-11-17 Thread Marc van Grootel
Hi, I just tagged the code for Origami as 0.3 (https://github.com/xokomola/origami) In this 'release' I added Extractors. With these you can build node extraction functions from composable selectors. This still doesn't make Origimi a full templating library but it's starting to be useful, for

Re: [basex-talk] Connecting to BaseX with PHP client

2014-11-17 Thread Paul Swennenhuis
I have solved this issue myself. It appeared that traffic from my computer to port 1984 was blocked by the firewall that is installed over here. After opening port 1984 the connection works. Paul Hi, I have successfully deployed BaseX on an Amazon Web Services instance using the Elastic

Re: [basex-talk] Use xquery:eval or not?

2014-11-17 Thread Christian Grün
I see… Instead of immediately executing the query, you are only interested in parsing errors, right? Sounds reasonable. We could have some more thoughts on how the output of such a function (e.g. xquery:parse) could look like. Instead of returning an error, we could return an element that

Re: [basex-talk] Distributed processing on roadmap ?

2014-11-17 Thread Christian Grün
Hi Mansi, it's nice to hear that you have been successfully scaling your database instances so far. I love using BaseX and the powers of BaseX. Currently I am able to query ~60GB of XML files under 2.5 mins. I still have a few more optimization a to try. I also do see this data increasing

Re: [basex-talk] IDs management

2014-11-17 Thread Christian Grün
Hi Ioan, In BaseX exist random:uuid() function. Do you use it, or another way to generate GUID? In our own use case, we sometimes use UUIDs and sometimes create our own IDs. If you don't need an easily readable ID, and none that is incremental, I would recommend the use of random:uuid()

Re: [basex-talk] REST queries: Read permissions needed

2014-11-17 Thread Christian Grün
Dear Jérôme, I solved my problem with a new tomcat + basex installation/deployment. Good news! I always get a read permission needed with this kind of query (my db contains xml-tei documents): [A] = http://localhost:8080/BaseX79/rest/mydb/mydoc.xml?query=//*:p[1] Thanks for reporting

Re: [basex-talk] REST queries: Read permissions needed

2014-11-17 Thread Christian Grün
Hi Jérôme, the strange behavior you encountered should be fixed in the latest snapshot [1]. Looking forward to your feedback, Christian [1] http://files.basex.org/releases/latest/ On Mon, Nov 17, 2014 at 6:46 PM, Christian Grün christian.gr...@gmail.com wrote: Dear Jérôme, I solved my

[basex-talk] Opened by another process

2014-11-17 Thread Paul Swennenhuis
Why would I get a bxerr:BXDB0007 error Database 'profiles' cannot be updated, as it is opened by another process when executing these commands from a BaseX client: open profiles; xquery insert node profileabc/profile into /profiles Where profiles is an existing database, and /profiles an

Re: [basex-talk] Opened by another process

2014-11-17 Thread Fabrice Etanchaud
Hi Paul, Is there any basexhttp instance that could have opened the db ? Best regards, Fabrice Questel/Orbit -Message d'origine- De : basex-talk-boun...@mailman.uni-konstanz.de [mailto:basex-talk-boun...@mailman.uni-konstanz.de] De la part de Paul Swennenhuis Envoyé : lundi 17 novembre

Re: [basex-talk] Opened by another process

2014-11-17 Thread Paul Swennenhuis
Hi Fabrice, How would I know? A thought that just crossed my mind: the files of the database are not owned by root or tomcat. Could that be an issue? (I'm not very familiar with unix, so I don't know exactly how ownership of a file effects processes). Paul Hi Paul, Is there any basexhttp

Re: [basex-talk] Opened by another process

2014-11-17 Thread Paul Swennenhuis
Ah, that did the trick! I changed ownership to tomcat:tomcat and now the error has disappeared. Thanks very much for the hint Paul :-) Paul Hi Fabrice, How would I know? A thought that just crossed my mind: the files of the database are not owned by root or tomcat. Could that be an issue?

Re: [basex-talk] Opened by another process

2014-11-17 Thread Christian Grün
Ah, that did the trick! I changed ownership to tomcat:tomcat and now the error has disappeared. Thanks very much for the hint Paul :-) Thanks, too ;) Christian Paul Hi Fabrice, How would I know? A thought that just crossed my mind: the files of the database are not owned by root or