Re: [basex-talk] File permissions on .basex files

2015-08-03 Thread Amanda Galtman
Thanks for the reply, Christian. I want to create the databases on Linux, and then multiple users need to access the database directory. The other users are generally on Windows. You're correct, I'm not using the client/server architecture. (I haven't looked into it. If you think it's what I

Re: [basex-talk] File permissions on .basex files

2015-08-03 Thread Amanda Galtman
-Original Message- From: Christian Grün [mailto:christian.gr...@gmail.com] Sent: Monday, August 03, 2015 11:35 AM To: Amanda Galtman amanda.galt...@mathworks.com Cc: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] File permissions on .basex files I want to create the

Re: [basex-talk] File permissions on .basex files

2015-08-03 Thread Christian Grün
I want to create the databases on Linux, and then multiple users need to access the database directory. The other users are generally on Windows. You're correct, I'm not using the client/server architecture. (I haven't looked into it. If you think it's what I really should be doing, I can

Re: [basex-talk] Round tripping JSON

2015-08-03 Thread Christian Grün
Hi Marc, declare %rest:POST({$body}) %rest:path(/json) %rest:consumes(application/json;lax=yes;format=map) %rest:produces(application/json;format=map) If I remember right, content-type parameters in rest annotations will be ignored, because these annotations only serve as filters.

Re: [basex-talk] Round tripping JSON

2015-08-03 Thread Marc van Grootel
Hi Christian, No luck. I'm using Postman. I already had Content-Type = application/json and Accept = application/json. I tried changing it to application/json;format=map (btw do you think it's necessary to have the basex/restxq specific pseudo attributes (format= etc) in the HTTP request

Re: [basex-talk] Destination of result-document from XSLT module

2015-08-03 Thread Marc
Thank Vincent, But it the input of the xslt I want to control. I'm using BaseX with the CHOP false because I use text documentation and space is important at the end or the begining of an element, and when I try to use xslt (with baseX 7) it serialize with indent true the input of my xslt, so I

Re: [basex-talk] BaseX Package and Jetty

2015-08-03 Thread Christian Grün
Hi Florian, Sorry again for not providing you with an in-depth solution, but your code was not as self-contained as I was hoping, and it would take me some more time to find out why it was originally working in a previous version of BaseX. However, I checked your wrapper.xq file inside the

Re: [basex-talk] compiling and building basex-core with maven

2015-08-03 Thread Rob Stapper
Hi Jens, Ok that did the trick: I raised both constants 10-times and quit all activities except walking the dogs. Didn't get the error anymore and the build completed. Thnx, Rob PS. sound like nice: Lake Constance. -Oorspronkelijk bericht- Van: Jens Erat

Re: [basex-talk] Round tripping JSON

2015-08-03 Thread Marc van Grootel
Wow, clicked send before I meant to. The last line was a copy from the table in the documentation and the last column has document-node() which seems to suggest that getting a map(*) there isn't possible. So not sure what is supposed to happen. Anyway I would think that correct behaviour would

Re: [basex-talk] File permissions on .basex files

2015-08-03 Thread Christian Grün
Hi Amanda, In Java, we use default operations for creating files and directories. My knowledge on Linux file permissions is limited, but I just ran BaseX on two different Linux machines, and I noticed that different permissions were assigned to the newly created files on both systems. So.. Maybe

Re: [basex-talk] Round tripping JSON

2015-08-03 Thread Christian Grün
Hi Marc, I'm using Postman. I already had Content-Type = application/json and Accept = application/json. I tried changing it to application/json;format=map I noticed that you get different result when specify 'format=basic' or 'format=direct': curl -XPUT

[basex-talk] Destination of result-document from XSLT module

2015-08-03 Thread Lizzi, Vincent
I'm trying to use the XSLT Module in BaseX 8.2.3 with Saxon 9.6 to run an XSLT that produces several output documents using xsl:result-document. I'm having trouble setting the location of the output documents. I want to have xsl:result-document create the output documents in a temporary folder

Re: [basex-talk] Round tripping JSON

2015-08-03 Thread Christian Grün
…fixed, and available via the latest snapshot [1]. Thanks, Christian [1] http://files.basex.org/releases/latest On Mon, Aug 3, 2015 at 5:11 PM, Christian Grün christian.gr...@gmail.com wrote: Hi Marc, I'm using Postman. I already had Content-Type = application/json and Accept =

Re: [basex-talk] No debug info

2015-08-03 Thread Menashè Eliezer
Hi, I've simply used the client GUI. Should I see query logs in the server? In the past maybe the logs I've seen were always a result of the Java client queries, not the GUI. With kind regards, Menashè On 07/30/2015 10:23 AM, Christian Grün wrote: I don't know why I don't see anymore query

Re: [basex-talk] Applying indexes

2015-08-03 Thread Menashè Eliezer
Hi, So in case of six exact conditions (With different xpaths) should I see the usage of six indexes? Anyway, I'll send the exact query inside the old thread. On 07/30/2015 10:21 AM, Christian Grün wrote: Hi Menashè, Because none of our index structures is particularly suited for range

Re: [basex-talk] Applying indexes

2015-08-03 Thread Christian Grün
So in case of six exact conditions (With different xpaths) should I see the usage of six indexes? It always depends on your data. My assumption is that you'll only have one index access in your optimized query. Sure, I've also responded to it:

Re: [basex-talk] Slow query

2015-08-03 Thread Menashè Eliezer
On 08/03/2015 03:24 PM, Christian Grün wrote: What was the last version it was working with? 8.2.1. Not really working, but better...

[basex-talk] File permissions on .basex files

2015-08-03 Thread Amanda Galtman
Hi, It seems that the commands and functions that operate on the .basex files, such as ADD and db:add(...), make the .basex files writable by the creator but not by anyone else. On the other hand, executing a query requires write permission for at least some of the .basex files, even if the

Re: [basex-talk] Slow query

2015-08-03 Thread Christian Grün
I'm have again performance problems. I have BaseX 8.2.2. What was the last version it was working with?

Re: [basex-talk] Slow query

2015-08-03 Thread Christian Grün
What was the last version it was working with? 8.2.1. Not really working, but better... I ran the attached query with 8.2.1, and no index was used either. Are you sure you sent me the correct query? Sorry for confronting you with all those questions, but to help you, I really need your help as

Re: [basex-talk] Slow query

2015-08-03 Thread Menashè Eliezer
I think I've already mentioned that the new query is different. The reference to 8.2.1 is included here where also the old query can be found: https://www.mail-archive.com/basex-talk%40mailman.uni-konstanz.de/msg06544.html With kind regards, Menashè On 08/03/2015 03:38 PM, Christian Grün

Re: [basex-talk] Destination of result-document from XSLT module

2015-08-03 Thread Marc
Hi, I have an other problem is to control the serialization of the node passed to the transform function. I don't see how to control it. Marc Le 03/08/2015 22:32, Andy Bunce a écrit : Hi Max, This sounds like a good thing. Another solution to the result-document issue might be to implement the

Re: [basex-talk] Destination of result-document from XSLT module

2015-08-03 Thread Lizzi, Vincent
Thanks, Max and Andy. The XQuery 3.1 transform function looks promising. Marc, For controlling the serialization of XSLT output, you can specify serialization for the XSLT within the XSLT itself using xsl:output, run the XSLT using the xslt:transform-text, and then write the output to a file.

Re: [basex-talk] Destination of result-document from XSLT module

2015-08-03 Thread Andy Bunce
Hi Max, This sounds like a good thing. Another solution to the result-document issue might be to implement the XQuery 3.1 transform function [1] /Andy [1] http://www.w3.org/TR/xpath-functions-31/#func-transform On 3 August 2015 at 20:54, Max Goltzsche max.goltzs...@algorythm.de wrote: Hello

Re: [basex-talk] Destination of result-document from XSLT module

2015-08-03 Thread Max Goltzsche
Hello Vincent, besides an URI resolver I also want to set XSLT 2.0's output destination in BaseX. Currently as you can see in BaseX' xslt:transform and xslt:transform-text implementation in