[basex-talk] Running BaseX commands from xquery esp REPO LIST

2012-01-10 Thread Andy Bunce
Hi, I using the EXPath repository and it is going well. It would be useful to me to manage the repository from Xquery, at least to get the REPO LIST result. I see Exist DB has http://demo.exist-db.org/repo/repo.xml#d5510e705 Are there any plans to add something similar to BaseX One quick, if a

[basex-talk] eval evil?

2012-04-13 Thread Andy Bunce
Musing on the the usefulness of actions that update the database and return something, specifically in a web server with Xforms context, and the absence of XQuery scripting. I have been playing around with things like the following: let $s:=util:eval(' let $x:=copy $c:=db:open(listman,1.xml)

Re: [basex-talk] eval evil?

2012-04-23 Thread Andy Bunce
___ On Fri, Apr 13, 2012 at 2:54 PM, Andy Bunce bunce.a...@gmail.com wrote: Musing on the the usefulness of actions that update the database and return something, specifically in a web server with Xforms context, and the absence of XQuery scripting. I have been playing around with things

[basex-talk] cookie-param + restxq

2012-05-03 Thread Andy Bunce
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. I understand the restxq stuff is in development/experimental and I wonder what plans you have in that direction? I think there are

Re: [basex-talk] Future of RESTXQ

2012-05-08 Thread Andy Bunce
Which gaps do you see modules filling? Well that request module has many things, in addition to multipart, that can not be accessed via the RestXQ of Prague 2012. But as you say, there may be better ways. Looking forward to see, and discuss more, when your next draft appears. /Andy On Tue,

[basex-talk] XML command syntax and options

2012-07-03 Thread Andy Bunce
I am looking at the new 7.3 XML format commands and some things that are not clear to me in the documentation. My particular goal is to create a new database ensuring CHOP is off. There is a Rest syntax example that is exactly what I want at http://docs.basex.org/wiki/REST *command

Re: [basex-talk] BaseX client event protocol

2012-07-08 Thread Andy Bunce
:150) --- Any ideas? /Andy On Sun, Jun 3, 2012 at 10:28 PM, Andy Bunce bunce.a...@gmail.com wrote: I have made some progress on this... I think the protocol response to the watch is in fact {port}{id}\0 Where {port} is a basex server

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

2012-09-11 Thread Andy Bunce
Hi This expression: replace( ddd ,'(.{6,15}) ','$1@') results in [FORX0002] Invalid pattern: 'Illegal quantifier, lower upper bound: {6,1}'. Could it be that *S*{n,m} is only accepting single digit n and m? This causes http://stackoverflow.com/questions/3767452/xquery-word-wrap to

[basex-talk] The future of db:create

2012-09-12 Thread Andy Bunce
I saw there was briefly 7.4 build with a db:create function and then this functionality was removed. Is this likely to come back for the 7.5 release? It would seem if HTTPLOCAL [1] is in use then the options for database management are somewhat limited? Also would you except any significant

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

2012-09-12 Thread Andy Bunce
the updated HTTP architecture. I guess there are many open questions. If you want to know more about the changes, just ask what feels confusing to you (this may also improve the Wiki texts to be written). Christian ___ On Wed, Sep 12, 2012 at 3:22 PM, Andy Bunce bunce.a

[basex-talk] Options in Basex 7.5

2012-11-15 Thread Andy Bunce
There are many ways to set options [1] but it is not clear to me which one wins in the case where different values are specified for the same option by the different ways. I guess it is the 1st one to be set. So SystemProperty, then command line, then .basex? I am often getting caught out by the

Re: [basex-talk] XQuery web app authentication - best practices?

2012-11-15 Thread Andy Bunce
You can use the magic of XQuery closures to only write that if once as here in the role-check function: (:~ : return all users as json if this session is for admin :) declare %rest:GET %rest:path(cellar/api/users) %output:method(json) function users() { web:role-check(admin,function(){

Re: [basex-talk] Options in Basex 7.5

2012-11-15 Thread Andy Bunce
The confidential port is not too important to me. I have been playing with the PaaS Openshift [1]. which needs to listen on a IP address that is runtime determined With confidential port I am just doing a one-off change to say 15000 to get it in the openshift allowed range. I can do that as

Re: [basex-talk] http server ... outsider localhost

2012-12-31 Thread Andy Bunce
Hi Peter, I wonder if this problem is related to a change I suggested to the webapps/WEB_INF/jetty.xml file. Do you still get the problem if you remove the line below and restart? Set name=hostSystemProperty name=org.basex.serverhost default=//Set Or if you change default= to default=0.0.0.0

Re: [basex-talk] http server ... outsider localhost

2013-01-02 Thread Andy Bunce
Peter, Good to know it worked. Christian, I think this change should be made to the github source /Andy On Tue, Jan 1, 2013 at 2:00 AM, p...@themail.co.uk wrote: Andy changing the default to 0.0.0.0 worked. Many thanks Peter Original Message From: bunce.a...@gmail.com To:

Re: [basex-talk] XQuery update: updating inside a closure how to modify a node and insert it in a DB

2013-01-09 Thread Andy Bunce
From my reading: it looks like the latest version of the spec has addressed the updating operations in closures issue. Can we expect a BaseX implementation soon :-) /Andy On Thu, Nov 22, 2012 at 2:40 PM, Christian Grün christian.gr...@gmail.comwrote: Hi Daniel, Doesn't it introduce

Re: [basex-talk] XQuery update: updating inside a closure how to modify a node and insert it in a DB

2013-01-10 Thread Andy Bunce
section do you exactly refer to? Christian ___ On Wed, Jan 9, 2013 at 10:19 PM, Andy Bunce bunce.a...@gmail.com wrote: /Andy On Thu, Nov 22, 2012 at 2:40 PM, Christian Grün christian.gr...@gmail.com wrote: Hi Daniel, Doesn't it introduce

Re: [basex-talk] XQDoc for BaseX

2013-02-12 Thread Andy Bunce
at 11:17 AM, Andy Bunce bunce.a...@gmail.com wrote: Hi John, Thanks very much for the fast response on this. I will take for a spin and let you know. My guess the remaining issues will be: 1. The statically known namespaces. I cobbled together this list https://github.com/apb2006

[basex-talk] File module path encodings

2013-04-03 Thread Andy Bunce
Hi, The following two expressions create a file called d d.txt (Windows, BaseX 7.6) file:write(c:\temp\d d.txt,what) file:write(c:\temp\d%20d.txt,what) I wonder if it would not be better if the second would create a file d%20d.txt? My use case is creating a file name that encodes a path e.g.

Re: [basex-talk] quick dereferencing of elements found earlier

2013-04-06 Thread Andy Bunce
You might try db:node-id and db:open-id [1] or the pre versions depending on your use case. Regards /Andy [1] http://docs.basex.org/wiki/Db_Module#db:node-id On Sat, Apr 6, 2013 at 3:35 AM, C. M. Sperberg-McQueen cms...@blackmesatech.com wrote: I'm experimenting with the construction of

[basex-talk] Proposal for programmatically setting index options

2013-05-13 Thread Andy Bunce
Hi, The index settings for a database can make a huge difference to query performance. I have been playing with a database where the time for a query using distinct-values went from 4secs to 4ms by increasing the MAXCATS value. Currently it is rather fiddly to change these values, particularly to

Re: [basex-talk] limiting time or space resources in calls to xquery:eval() ?

2013-06-28 Thread Andy Bunce
As someone coming at this from the other direction - I would like to allow dynamic execution of anything (given the appropriate passwords, of course). I am trying to implement something similar to eXide [1] to run on an Android phone. I am using client:connect('localhost', 1984, 'admin',

Re: [basex-talk] limiting time or space resources in calls to xquery:eval() ?

2013-06-28 Thread Andy Bunce
That code got a little garbled. I meant: client:connect('localhost', 1984, $user, $password) ! client:query(.,$src) See http://docs.basex.org/wiki/Client_Module#client:query On Fri, Jun 28, 2013 at 11:52 AM, Andy Bunce bunce.a...@gmail.com wrote: As someone coming at this from the other

Re: [basex-talk] XUDY0027 - Insert target must not be empty with default namespaces

2013-07-08 Thread Andy Bunce
Or if you really want two and three in no namespace like your first example your starting data should be: one *xmlns=oneone* two *xmlns=* / /one /Andy On Mon, Jul 8, 2013 at 1:05 PM, Lukas Kircher lukaskirch...@gmail.comwrote: Hi Carlos, the element two/ in the second example is also

Re: [basex-talk] Protocol Question

2013-07-23 Thread Andy Bunce
Hi Gerald, Could that '\u\u' be part of an asynchronous response to some previous command? Otherwise it looks fine: - '\u () \u' // create query returning empty sequence - '1\u \u' //The 1 is the query handle. - '\u0004 1 \u'//Execute the query with handle

Re: [basex-talk] Protocol Question

2013-07-23 Thread Andy Bunce
? -Gerald On Tue, Jul 23, 2013 at 3:54 PM, Andy Bunce bunce.a...@gmail.com wrote: Hi Gerald, Could that '\u\u' be part of an asynchronous response to some previous command? Otherwise it looks fine: - '\u () \u' // create query returning empty sequence - '1\u \u

Re: [basex-talk] Set Operator Examples

2013-09-25 Thread Andy Bunce
Hi, Nice work. I wonder if the BaseX query optimizer could not spot the idioms for the set operations and rewrite the query to something similar for the cases: distinct-values(($arg1, $arg2)) distinct-values($arg1[.=$arg2]) distinct-values($arg1[not(.=$arg2)]) From :

Re: [basex-talk] Issues inserting nodes with @xml:lang

2013-12-18 Thread Andy Bunce
Hi France, It looks like it might be the same as an issue I found [1]. Fixed for me by the 7.8 beta. Regards /Andy [1] https://github.com/BaseXdb/basex/issues/780#issuecomment-27771795 On Wed, Dec 18, 2013 at 4:22 PM, France Baril france.ba...@architextus.comwrote: Hi, I am trying to

Re: [basex-talk] BaseX for noobs : how to add user module ?

2013-12-30 Thread Andy Bunce
Hi Jean-marc, Have you looked at using the repository? [1] There is a more complex example at [2] Regards /Andy [1] http://docs.basex.org/wiki/Repository#Java [2] http://files.basex.org/modules/org/basex/modules/StringSimilarity/ On Mon, Dec 30, 2013 at 11:03 AM, jean-marc Mercier

[basex-talk] Java bindings - ambiguous Signature

2014-01-02 Thread Andy Bunce
Hi, In my ongoing attempts to use various Java libraries, without writing any Java myself, I have trying Apache Tika. (http://tika.apache.org/1.4/api/org/apache/tika/Tika.html). With the tika jar on the classpath I hoped the following would work: import module namespace tika =

Re: [basex-talk] Java bindings - ambiguous Signature

2014-01-03 Thread Andy Bunce
Or maybe better with a pragma e.g. return tika:parse( (# basex:java-type java:java.io.File #){$file} ) On Thu, Jan 2, 2014 at 5:42 PM, Andy Bunce bunce.a...@gmail.com wrote: Hi, In my ongoing attempts to use various Java libraries, without writing any Java myself, I have trying

Re: [basex-talk] Java bindings - ambiguous Signature

2014-01-03 Thread Andy Bunce
://h2oconsulting.be/ On 3 January 2014 11:25, Andy Bunce wrote: Or maybe better with a pragma e.g. return tika:parse( (# basex:java-type java:java.io.File #){$file} ) On Thu, Jan 2, 2014 at 5:42 PM, Andy Bunce bunce.a...@gmail.com wrote: Hi, In my ongoing attempts

Re: [basex-talk] Trying to use http:request to emulate curl -X PUT -T xxx.pdf

2014-01-05 Thread Andy Bunce
headers seems to be fatal...) Cheers, Dirk On 05/01/14 15:00, Florent Georges wrote: On 5 January 2014 00:57, Andy Bunce wrote: Hi, curl -X PUT -T aa.pdf http://localhost:9998/tika [...] I have tried: let $file:=C:\tmp\aa.pdf let $request := http:request method='PUT

Re: [basex-talk] Trying to use http:request to emulate curl -X PUT -T xxx.pdf

2014-01-06 Thread Andy Bunce
and we have to wait for someone to take a proper look at it. Regards, Lukas On Sun, Jan 5, 2014 at 5:06 PM, Andy Bunce bunce.a...@gmail.com wrote: Hi Dirk, The Tika documentation is not very clear[1]. tika-app has a simple server mode. tika-server, which I am using, is a different jar [2] [1

Re: [basex-talk] import in xsd

2014-03-03 Thread Andy Bunce
Could not a custom LSResourceResolverhttp://docs.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/ls/LSResourceResolver.html[1] be created to handle loading from the database? Regards /Andy [1]

Re: [basex-talk] BaseX server.close() Connection refused in Openshift

2014-03-07 Thread Andy Bunce
Hi P.C, I think you will need to set the STOPPORT option (-s) [1] to an Openshift friendly value e.g. 15002. Regards /Andy [1] http://docs.basex.org/wiki/Options#STOPPORT On Fri, Mar 7, 2014 at 12:10 PM, Christian Grün christian.gr...@gmail.comwrote: Hi P.C., thanks for describing your

Re: [basex-talk] BaseX server.close() Connection refused in Openshift

2014-03-07 Thread Andy Bunce
Does server.stop(15000,15001) work? https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/BaseXServer.java#L329 On Fri, Mar 7, 2014 at 1:04 PM, Andy Bunce bunce.a...@gmail.com wrote: I think -s applies only to the basexhttp server not tomcat, but the message does

Re: [basex-talk] BaseX: Upcoming Features

2014-03-19 Thread Andy Bunce
Hi Christian, These sound like very useful features. Regarding [1] Do you see this feature, or something close, becoming part of a future standard XQuery update standard? /Andy On Tue, Mar 18, 2014 at 12:03 PM, Christian Grün christian.gr...@gmail.comwrote: Dear BaseX aficionados, An

Re: [basex-talk] BaseX: Upcoming Features

2014-03-20 Thread Andy Bunce
To put some numbers on query precompilation [3]. I have been using Apache ab to time a very simple RESTXQ request declare %rest:GET %rest:path(bsp/simple) %output:method(text) function simple() {test}; ab -n 100 -c 10 http://localhost:8984/bsp/simple I timed this when my webapp folder had a

Re: [basex-talk] BaseX: Upcoming Features

2014-03-24 Thread Andy Bunce
I have added a comment to https://www.w3.org/Bugs/Public/show_bug.cgi?id=9026 On Wed, Mar 19, 2014 at 10:41 PM, Christian Grün christian.gr...@gmail.comwrote: Hi Andy, These sound like very useful features. Regarding [1] Do you see this feature, or something close, becoming part of a

Re: [basex-talk] WEBDAV bug when changing admin password in 7.8.1

2014-04-01 Thread Andy Bunce
I wonder if this is related? It seems to me that the port and host do not get picked up from the system properties in WEB_INF/jetty.xml. Set name=hostSystemProperty name=org.basex.serverhost default=0.0.0.0//Set Set name=portSystemProperty name=org.basex.serverport default=8984//Set

[basex-talk] Full text score with or

2014-04-10 Thread Andy Bunce
Hi, I want to score searches with multiple conditions e.g. let $data:=( rared apple/a/r, rablue lagoon/a/r, rbfish and chips/b/r) for $hit score $s in $data[ a contains text(red) or b contains text(fish)] return $s In 7.8.2 it always returns scores of

Re: [basex-talk] Full text score with or

2014-04-16 Thread Andy Bunce
how you want to combine scores. The drawback, obviously, is that your code gets more complex. Best, Christian On Thu, Apr 10, 2014 at 6:27 PM, Andy Bunce bunce.a...@gmail.com wrote: Hi, I want to score searches with multiple conditions e.g. let $data:=( rared apple/a/r

Re: [basex-talk] Deploying a BaseX Web application... (beginner question)

2014-05-08 Thread Andy Bunce
Hi Aurelien, If you do try the BaseXHTTP server route on OpenShift, rather than the WAR packaging, this repo may help https://github.com/Quodatum/openshift-basex-quick-start. By default just RESTXQ is enabled but it is easy to re-able REST and or Webdav. This uses the OpenShift data directory to

Re: [basex-talk] Deploying a BaseX Web application... (beginner question)

2014-05-08 Thread Andy Bunce
ssh... Rather frustrating, but well, I'm patient and open to any suggestion. Andy, thanks for the interesting link! Christian On Thu, May 8, 2014 at 2:10 PM, Andy Bunce bunce.a...@gmail.com wrote: Hi Aurelien, If you do try the BaseXHTTP server route on OpenShift, rather

Re: [basex-talk] Deploying a BaseX Web application... (beginner question)

2014-05-09 Thread Andy Bunce
the application to the local machine via ssh... Rather frustrating, but well, I'm patient and open to any suggestion. Andy, thanks for the interesting link! Christian On Thu, May 8, 2014 at 2:10 PM, Andy Bunce bunce.a...@gmail.com wrote: Hi Aurelien, If you do try

Re: [basex-talk] Deploying a BaseX Web application... (beginner question)

2014-05-09 Thread Andy Bunce
Great news. Looks like you did not need my changes. /Andy On 9 May 2014 09:24, Andy Bunce bunce.a...@gmail.com wrote: Hi Aurelien, Sorry you could not get it to work. If you want to try one more time,I have slightly changed the install instructions for https://github.com/Quodatum/openshift

Re: [basex-talk] Rest Access from javascript using AngularJs

2014-05-14 Thread Andy Bunce
Hi Yoann, I do it like this: http://quodatum.wordpress.com/2014/05/14/using-angular-with-basex /Andy On 14 May 2014 10:53, Yoann Maingon yoann.main...@minerva-plm.fr wrote: Hi, I've got two questions about using Basex with Angular, because I still have an issue accessing the XQuery

[basex-talk] RESTXQ declare base-uri .;

2014-06-14 Thread Andy Bunce
Hi, It seems that in restxq mode relative paths for *declare base-uri* are resolved differently [1]. If I have -webapp --folder1 ---mod1.xqm (which has import module namespace xm='test' at 'mod2.xqm';) ---mod2.xqm The import works. If I add declare base-uri .; to mod1. the import fails, running

Re: [basex-talk] RESTXQ declare base-uri .;

2014-06-16 Thread Andy Bunce
query file, no matter in which context. This should be fixed in the latest snapshot [1]. Thanks, Christian On Sun, Jun 15, 2014 at 12:25 AM, Andy Bunce bunce.a...@gmail.com wrote: Hi, It seems that in restxq mode relative paths for declare base-uri are resolved differently [1]. If I

Re: [basex-talk] RESTXQ declare base-uri .;

2014-06-16 Thread Andy Bunce
On Mon, Jun 16, 2014 at 5:04 PM, Andy Bunce bunce.a...@gmail.com wrote: Thanks, I will give it a go. My motivation is to find a restxq config that avoids the parsing tax. I am thinking of trying setting RESTXQPATH to restxq. Then using this structure: webapp -app1 --mod2.xqm

Re: [basex-talk] RESTXQ declare base-uri .;

2014-06-16 Thread Andy Bunce
or xquery annotated, then the problem would go away. /Andy On 16 June 2014 16:21, Andy Bunce bunce.a...@gmail.com wrote: Did you already try to move all non-restxq modules into the repository? I am sure that works but it does not seem the right use of the repository to me, particularly

Re: [basex-talk] RESTXQ declare base-uri .;

2014-06-16 Thread Andy Bunce
not an extension rather than a location to flag up this behavior. /Andy On 16 June 2014 23:19, Christian Grün christian.gr...@gmail.com wrote: ;) What about adding a .tmp extension to temporarily inactive files? On Tue, Jun 17, 2014 at 12:13 AM, Andy Bunce bunce.a...@gmail.com wrote: I hesitate

Re: [basex-talk] BaseX 7.9: The Summer Edition

2014-06-28 Thread Andy Bunce
Hi Christian, Looking good. One minor issue, the *two* argument form of session:get [1] with a default seems to be broken. [XPST0017] Java function 'org.basex.modules.Session:get' is not found. Also regarding the wiki session documentation: The session get/set functions are documented as only

Re: [basex-talk] BaseX 7.9: The Summer Edition

2014-06-29 Thread Andy Bunce
I do not have aproblem with functionality, it is just a documentation problem - I think http://docs.basex.org/wiki/Session_Module#session:get and set should say *session:get*($key as xs:string) as item() or similar /Andy On 29 June 2014 13:30, Christian Grün christian.gr...@gmail.com wrote: Hi

Re: [basex-talk] What is the best way to implement an async REST method?

2014-07-16 Thread Andy Bunce
That marklogic link should have been: http://docs.marklogic.com/xdmp:spawn On 16 July 2014 09:55, Andy Bunce bunce.a...@gmail.com wrote: Hi Micheal, I think there may be a problem with the idea of using RESTXQ. My experience is that something stops requests after a minute or so, maybe

[basex-talk] running in eclipse

2014-08-07 Thread Andy Bunce
Hi, I am having problems running the source. I have download the zip from github, and added as a java project in eclipse. When I run I get... /lang/English.lang not found. English.lang: 'srv_started_port_%' is missing English.lang: 'srv_stopped_port_%' is missing English.lang: 'srv_running' is

Re: [basex-talk] running in eclipse

2014-08-08 Thread Andy Bunce
8549 CBC2 613C D745 722B Am 08.08.2014 um 00:11 schrieb Andy Bunce bunce.a...@gmail.com: Hi, I am having problems running the source. I have download the zip from github, and added as a java project in eclipse. When I run I get... /lang/English.lang not found. English.lang

Re: [basex-talk] running in eclipse

2014-08-08 Thread Andy Bunce
]: http://www.jenserat.de PGP: 350E D9B6 9ADC 2DED F5F2 8549 CBC2 613C D745 722B Am 08.08.2014 um 00:11 schrieb Andy Bunce bunce.a...@gmail.com: Hi, I am having problems running the source. I have download the zip from github, and added as a java project in eclipse

Re: [basex-talk] running in eclipse

2014-08-09 Thread Andy Bunce
Software Subversive SVN Team Provider1.1.3.I20140206-1700 org.eclipse.team.svn.feature.groupEclipse.org XQuery Development Tools Feature1.0.0.201108251748 org.eclipse.wst.xquery.feature.feature.groupEclipse Web Tools Platform On 8 August 2014 11:53, Andy Bunce bunce.a...@gmail.com

Re: [basex-talk] Looking for something that may not exist...

2014-08-19 Thread Andy Bunce
If the goal is debugging .. another approach might be to think about Aspect Oriented Programming something like http://www.mkyong.com/spring3/spring-aop-aspectj-annotation-example/ /Andy On 19 August 2014 18:05, France Baril france.ba...@architextus.com wrote: Hi, I am hoping to use this

Re: [basex-talk] Downloading files

2014-08-21 Thread Andy Bunce
Hi Lars, You need to return a sequence of two items: (restxq:response,thedata) I do something like... declare %rest:path(/download/{$file}) function page:download-file($file) { (download-response(raw,$file), file:read-binary(..)) }; (:~ headers for download :) declare function

Re: [basex-talk] validate:xsd-info xs:import

2014-09-16 Thread Andy Bunce
cause problems in certain environments. C. /Andy [1] https://github.com/BaseXdb/basex/blob/7e7aad58feae2f7e36bb1bcad9641cbf944f4594/basex-core/src/main/java/org/basex/query/func/validate/ValidateXsdInfo.java#L66 On 12 September 2014 17:03, Andy Bunce bunce.a...@gmail.com wrote

Re: [basex-talk] Templating

2014-10-17 Thread Andy Bunce
To be more clear. The render arguments that referenced xml files now reference xquery files. e.g. return render(main.xq,map{}) On 17 October 2014 21:37, Andy Bunce bunce.a...@gmail.com wrote: Hi Emmanuel, At some point BaseX was changed so that variables must be declared. Now you must

Re: [basex-talk] Feature Request: serializable functions

2014-11-06 Thread Andy Bunce
In some case, it's even not possible because the optimizer creates new expressions that have no counterpart in the original XQuery language Do you mean they invoke internal BaseX functions? Also to help me understand what BaseX optimization involves: If these serializations are post

[basex-talk] GUI feature request Add as import

2014-11-13 Thread Andy Bunce
Hi, I often find myself adding module imports in the GUI and I wonder if the following suggestion might speed up that process. Add a new menu item to the filelist right click context menu Add as import when the file selection is a XQuery module. The action would be to add a line to the current

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

2014-11-14 Thread Andy Bunce
Hi Marc, I have not used it, or even claim to understand it, but https://github.com/jpcs/transform.xq might give you some ideas. It avoids eval by using an EBNF to pre-generate an XPath parser in XQuery. /Andy On 13 November 2014 21:51, Marc van Grootel marc.van.groo...@gmail.com wrote:

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

2014-11-21 Thread Andy Bunce
Hi Mansi, The other day, I came across this work [1] [2] by Darin McBeath that may be of interest. It use Apache Spark [3] with Saxon. In principle it looks like one could build something similar using the BaseX jar in place of Saxon. /Andy [1] https://github.com/elsevierlabs/spark-xml-utils

[basex-talk] basex 8 beta json serialization

2014-12-02 Thread Andy Bunce
Hi, I cant get this to work. My test is https://gist.github.com/apb2006/2f1a6ec32de4b0aefcdd /json2 returns the text I expect. /json returns zero content. Is there some new config I am missing? /Andy

Re: [basex-talk] BaseX 8.0: DBA

2014-12-12 Thread Andy Bunce
Hi Christian, The DBA looks good. One comment inspired by a quick play with it. It does not show the name of the logged in user. Indeed I have previously looked to get this information and it does not seem to be available via any BaseX function. Is this intentional? /Andy On 11 December 2014

[basex-talk] file names with [] and base-uri

2014-12-15 Thread Andy Bunce
Hi, If I create a database with a file with [] in the name e.g. *bracket[in]name.xml *then /*/base-uri(.) gives the error [XQST0046] URI 'bracket[in]name/bracket[in]name.xml' is invalid. Query: /*/base-uri(.) Is this correct behavior? /Andy

Re: [basex-talk] file names with [] and base-uri

2014-12-22 Thread Andy Bunce
Thanks. As my documents are in a database I can use db:path [1] for now. /Andy [1] http://docs.basex.org/wiki/Database_Module#db:path On 15 December 2014 at 19:58, Christian Grün christian.gr...@gmail.com wrote: Hi Andy, interesting issue. I just tried some other XQuery processors in order

[basex-talk] BaseX 8.0 snapshot on OpenShift

2014-12-30 Thread Andy Bunce
Hi, I am having difficulty getting this to work. I had something working with 7.9 (see https://github.com/Quodatum/openshift-basex-quick-start/tree/releases/0.2 ) Using a recent snapshot. I am running ${OPENSHIFT_DATA_DIR}/basex/bin/basexhttp -n ${OPENSHIFT_DIY_IP} -h ${OPENSHIFT_DIY_PORT} -p

[basex-talk] Library imports in latest snapshot BaseX 8.0 beta b39b77d

2015-01-26 Thread Andy Bunce
Hi, Imports to library modules are giving modules not found errors for me. E.g. add a reference to the xquery module to restxq.xqm. /Andy (:~ : This module contains some basic examples for RESTXQ annotations : @author BaseX Team :) module namespace page =

Re: [basex-talk] infelicity in the default web.xml settings? and failure logging?

2015-01-23 Thread Andy Bunce
Michael, As Christian suggests the web.xml from GraphXQ does date from the old default basexhttp configuration (~basex 7.8?). Initially I was unconvinced by the change to what is the current default configuration but I have grown to appreciate it. This old configuration gives you a http server

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

2015-01-07 Thread Andy Bunce
Hi Philipp, At one point I converted Norman Walsh's ML-Schematron https://github.com/ndw/ML-Schematron to run under BaseX. It is not hard to do. But it would be nice to have a standard, perhaps EXpath https://groups.google.com/forum/#!topic/expath/_e-S7ui-gI4. Regards /Andy On 7 January 2015

Re: [basex-talk] User login

2015-01-13 Thread Andy Bunce
, and specifying admin/admin as default in web.xml for the RESTXQ service instead. Do you think that would make sense? Christian On Mon, Jan 12, 2015 at 6:44 PM, Andy Bunce bunce.a...@gmail.com wrote: So does this mean all restxq code always runs as admin and can do anything? On 12 Jan

Re: [basex-talk] User login

2015-01-12 Thread Andy Bunce
. This continues to be different with REST and WebDAV. Hope this helps? Christian On Mon, Jan 12, 2015 at 6:09 PM, Andy Bunce bunce.a...@gmail.com wrote: Hi, Just investigating user handling, I am using the latest snapsnap. I start basexhttp with -U guest -P guest and/or I set org.basex.user

[basex-talk] User login

2015-01-12 Thread Andy Bunce
Hi, Just investigating user handling, I am using the latest snapsnap. I start basexhttp with -U guest -P guest and/or I set org.basex.user and org.basex.password in web.xml Sometimes I have created a user ( guest with password guest) and permission none via dba. Sometimes I have deleted the

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

2015-01-07 Thread Andy Bunce
Thats working for me[1]. Thanks /Andy [1] http://jan07-apb.rhcloud.com/ On 6 January 2015 at 10:59, Christian Grün christian.gr...@gmail.com wrote: Hi Andy, I wonder if SERVERHOST should be set here? As with SERVER PORT..

Re: [basex-talk] gui folder view delete

2015-03-22 Thread Andy Bunce
christian.gr...@gmail.com wrote: …fixed. I disallowed the deletion of document nodes, because it resolves to the query db:delete($db, $path), and this query could potentially delete more than a single document. On Thu, Mar 12, 2015 at 9:44 PM, Andy Bunce bunce.a...@gmail.com wrote: Hi

[basex-talk] gui folder view delete

2015-03-12 Thread Andy Bunce
Hi, In the GUI folder view I can delete nodes by selecting and using right click. But if I select a top level document name entry the UI prompts for delete confirmation but no delete occurs. /Andy

Re: [basex-talk] xqdoc and basex system modules

2015-03-24 Thread Andy Bunce
I think it is the handling of nested comments: let $a:=' (:~ : BEFORE code(:~/code MIDDLE code:)/code AFTER :) declare function local:foo(){42};local:foo() ' return inspect:xqdoc($a) Result: xqdoc:descriptionlt;/codegt; MIDDLE lt;codegt;/xqdoc:description may be confusing [1] indeed. /Andy

[basex-talk] xqdoc and basex system modules

2015-03-23 Thread Andy Bunce
I am looking to generate documentation from the system module stubs in etc/modules.zip. I have two issues 1) There is an issue with inspect.xqm declare namespace xqdoc=http://www.xqdoc.org/1.0;; let $a:=inspect:xqdoc(inspect.xqm)//xqdoc:function[xqdoc:name='inspect:xqdoc']//xqdoc:description

Re: [basex-talk] Distributing queries to several on several processors

2015-04-22 Thread Andy Bunce
Hi Erol, I am not volunteering :-) but if somebody wants to take this route this code might give some pointers [1]. It uses Apache Spark to run Saxon-HE, an XQuery example [2], and more info [3]. /Andy [1] https://github.com/elsevierlabs/spark-xml-utils [2]

[basex-talk] EXPath package format

2015-05-11 Thread Andy Bunce
Hi, It appears the EXPath package format has changed. The current version of the spec reads: the root of the ZIP file contains a directory named *content*, containing the components and any other file the package needs. http://expath.org/spec/pkg#descriptor A previous version

Re: [basex-talk] New BaseX client for nodejs

2015-05-17 Thread Andy Bunce
Hi Alex, Looks good and certainly cleaner than my effort :-). Literate CoffeeScript is new to me but, having struggled with asynchrous stream parsing in node, I do like the look of https://github.com/alxarch/basex-stream/blob/master/src/parser.litcoffee .I hope to give it try soon. Cheers /Andy

Re: [basex-talk] Working With Maps Using FLOWR Expressions?

2015-04-18 Thread Andy Bunce
Hi Eliot, Take a look at map:entry and map:merge[1] let $map:=map{a:old,x:43} let $seq:=(a,b) return map:merge(($map, for $item in $seq return map:entry($item,somevalue) )) /Andy [1] http://docs.basex.org/wiki/Map_Module#map:entry On 18 April 2015 at 17:20,

Re: [basex-talk] BenchX - The curious case of query number 9

2015-04-07 Thread Andy Bunce
Thanks for the explanation Leo. So perhaps the surprise is that no other queries seem to be affected by this. /Andy On 6 April 2015 at 14:43, Leonard Wörteler leonard.woerte...@uni-konstanz.de wrote: Hi Andy, Am 06.04.2015 um 13:13 schrieb Andy Bunce: I have compared the timings

[basex-talk] BenchX - The curious case of query number 9

2015-04-06 Thread Andy Bunce
Hi, This is a follow up to the benchmarking work I presented at the user meeting in Prague. I have made some changes to my BenchX application to allow the split option (-s) of xmgen to be used. http://www.xml-benchmark.org/faq.txt I have compared the timings for databases created from sources

[basex-talk] dba suggestions

2015-06-10 Thread Andy Bunce
Hi Here are a couple of minor suggestions for dba enhancement/fixes (based on 8.2.1). I should get a PR together but that might be some time. 1. Login field tab order. Currently this is (1) name (2) login bn (3) password. Moving the login button to after the password would make sense to me

Re: [basex-talk] dba suggestions

2015-06-11 Thread Andy Bunce
The fixes look good to me. Regarding the log filtering I had not really seen the role of loglist. /dba/logs?loglist=%2Fbenchx Gives me what I wanted, but the what I would like to see is that url to also show the results from the first log in loglist. As a user this is what I want to see most of

Re: [basex-talk] dba suggestions

2015-06-12 Thread Andy Bunce
Yes On 12 Jun 2015 17:35, Christian Grün christian.gr...@gmail.com wrote: Hi Andy, Gives me what I wanted, but the what I would like to see is that url to also show the results from the first log in loglist. As a user this is what I want to see most of the time. I'm not sure if I get

Re: [basex-talk] 8.2 on Windows. RESTXQ demo doesn't work.

2015-05-22 Thread Andy Bunce
Same for me. Using the zip to a new folder: Desktop/basex-8.2 then .basex has # HTTP Services WEBPATH = C:/Users/Bunceax/Desktop/basex-8.2/webapp RESTPATH = RESTXQPATH = If I edit .basex to have: RESTXQPATH = C:/Users/Bunceax/Desktop/basex-8.2/webapp It works again. /Andy On 22 May 2015 at

Re: [basex-talk] 8.2 on Windows. RESTXQ demo doesn't work.

2015-05-22 Thread Andy Bunce
was started (port: 8984) Do you possibly have some more hints on what goes wrong in your environment? Christian On Fri, May 22, 2015 at 10:37 AM, Andy Bunce bunce.a...@gmail.com wrote: Same for me. Using the zip to a new folder: Desktop/basex-8.2 then .basex has # HTTP Services WEBPATH = C

Re: [basex-talk] client:info

2015-08-12 Thread Andy Bunce
MIXUPDATES=true Which I do like, but I am wondering if the issues outweigh the advantages. /Andy On 12 August 2015 at 16:24, Christian Grün christian.gr...@gmail.com wrote: In the DBA query window let $c := client:connect('localhost', 1984, 'admin', 'admin') return client:query($c, 2+

[basex-talk] Create XQuery map from from Java

2015-08-18 Thread Andy Bunce
Hi, Is there a simple example of how to create write a Java function that returns an XQuery map anywhere? /Andy

Re: [basex-talk] Create XQuery map from from Java

2015-08-21 Thread Andy Bunce
Thanks. That is helpful. /Andy On 18 August 2015 at 16:49, Christian Grün christian.gr...@gmail.com wrote: Hi Andy, Please check the attached Java class for a basic example. Feel free to ask for more details. Christian On Tue, Aug 18, 2015 at 12:58 PM, Andy Bunce bunce.a...@gmail.com

Re: [basex-talk] Round tripping JSON

2015-08-04 Thread Andy Bunce
This looks a bit like errors I have seen with CACHERESTXQ=true [1] and then hot swapping the XQuery files. Requesting /.init sorts it for me. /Andy [1] http://docs.basex.org/wiki/Options#CACHERESTXQ On 4 August 2015 at 10:05, Christian Grün christian.gr...@gmail.com wrote: All existing test

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

  1   2   3   >