[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 wit

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 h

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

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] https://github.com/elsevierlabs/spark

[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 http://expath.org/

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] 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 09

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

2015-05-22 Thread Andy Bunce
tor - Started > SelectChannelConnector@0.0.0.0:8984 > HTTP Server 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 wrote: > > Same for me. Usi

[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) (3) password. Moving the login button to after the password would make sense to me as I cou

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 t

Re: [basex-talk] dba suggestions

2015-06-12 Thread Andy Bunce
Yes On 12 Jun 2015 17:35, "Christian Grün" 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 it right.. Wha

Re: [basex-talk] HTTP module and cookies

2015-07-14 Thread Andy Bunce
In my experience the case that causes the most problem is the authentication redirect. I have never tried this with BaseX but I have been very grateful in the past that XMLCalabash implements this: "The exception arises in the case of redirection. If a redirect response includes cookies, those coo

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 wrote: > Hello Vincent, > > besides an URI

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 wrote: > All existing test cases seem to work, and I d

[basex-talk] client:info

2015-08-12 Thread Andy Bunce
Hi, Not really a problem for me but I noticed this in the GUI: let $c := client:connect('localhost', 1984, 'admin', 'admin') let $d:= client:query($c, "2+ 2") return client:info($c) Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX

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 wrote: > > In the DBA query window > > let $c := client:connect('localhost', 1984, 'admin', 'admin') > > return client:query($c, "2+ 2") > > > > will bl

[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 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 wrote: >

[basex-talk] array:for-each issue

2015-09-18 Thread Andy Bunce
Hi, Using 8.2.3 (and the latest beta) this code seems to be invoking the JSON serializer. I don't understand why. declare function local:wrap2($doc,$x as xs:integer*){ $doc }; let $b:=doc("file.xml") return array:for-each([1],local:wrap2($b,?)) And if file.xml is Error: Imprope

Re: [basex-talk] array:for-each issue

2015-09-18 Thread Andy Bunce
Simplified: [doc("file.xml")] or array{doc("file.xml")} On 18 September 2015 at 11:22, Andy Bunce wrote: > Hi, > Using 8.2.3 (and the latest beta) this code seems to be invoking the JSON > serializer. I don't understand why. > > declare function loca

[basex-talk] validate:rng compact

2015-09-21 Thread Andy Bunce
Is there an issue with compact RelaxNG compact validation where the schema is supplied as a xs:string, containing the resource in its string representation [1]? let $rnc:="start = element book { page+ } page = element page { text }" return validate:rng(,*$rnc*,true()) Error: [FODC0002] Resource .

[basex-talk] inspect:functions performance

2015-09-27 Thread Andy Bunce
Hi, The following code runs (using v8.3) in about 1sec for me. import module namespace p="xquery-30" at " https://raw.githubusercontent.com/expkg-zone58/ex-xparse/master/src/main/content/parsers/xquery-30.xqm "; p:parse-XQuery("2+2") Using inspect:functions let $f:= inspect:functions( " https://

Re: [basex-talk] inspect:functions performance

2015-09-28 Thread Andy Bunce
; cases. However, it's an interesting example I haven't encountered so > far, so we'll keep it in mind! > > Christian > > > > On Sun, Sep 27, 2015 at 4:58 PM, Andy Bunce wrote: > > Hi, > > The following code runs (using v8.3) in about 1sec for me. >

Re: [basex-talk] inspect:functions performance

2015-09-28 Thread Andy Bunce
ely > >> contains of function calls, this is more noticeable than for other use > >> cases. However, it's an interesting example I haven't encountered so > >> far, so we'll keep it in mind! > >> > >> Christian > >> > >

Re: [basex-talk] Fwd: Java from XQuery

2015-10-09 Thread Andy Bunce
Hi Joseph, This works for me. Where parser.bat is creating out.xml in the folder where the xquery is running. This maybe a case of trying to stop the optimizer, some simpler versions of this did not work let $uri-process:=file:resolve-path("parser.bat",static-base-uri()) let $uri-output:=file:res

[basex-talk] repo install issue

2015-10-23 Thread Andy Bunce
Hi, The following installs in the repository, and can be used: " https://raw.githubusercontent.com/james-jw/xq-mustache/master/src/xq-mustache.xqm " !repo:install(.) But it does not appear the repo:list() or the UI repository list.. I suspect the issue is the form of the namespace module names

Re: [basex-talk] repo install issue

2015-10-28 Thread Andy Bunce
gt; Christian > > [1] http://files.basex.org/releases/latest > > > On Fri, Oct 23, 2015 at 11:02 AM, Andy Bunce wrote: > > Hi, > > > > The following installs in the repository, and can be used: > > > > " > https://raw.githubuserco

Re: [basex-talk] repo install issue

2015-10-28 Thread Andy Bunce
is should > >> now be fixed [1]. Just give me an update if sth. else should be going > >> wrong now. > >> > >> Christian > >> > >> [1] http://files.basex.org/releases/latest > >> > >> > >> On Fri, Oct 23, 2015 at 11:02 AM, Andy Bunce

[basex-talk] Curious "Stack Overflow: Try tail recursion?" error message

2015-11-12 Thread Andy Bunce
Hi, Using a fresh install on 8.3.1 and running basexgui.bat on windows. I install this expath package https://github.com/expkg-zone58/ex-xparse/releases/download/v0.0.5/ex-xparse-0.0.5.xar Then, paste the following code into an editor window.. import module namespace xp

Re: [basex-talk] Curious "Stack Overflow: Try tail recursion?" error message

2015-11-20 Thread Andy Bunce
ased after a while (?). > > As you may know, the stack size can be increased via an JVM option in > the BaseX script. With -Xss2m, your query will be successfully > executed with the first run. > > Hope this helps, > Christian > > > On Thu, Nov 12, 2015 at 10:13 PM, Andy Bun

Re: [basex-talk] can't make Geo Module work

2016-01-02 Thread Andy Bunce
Using the run button on /dba/queries seems broken for me in recent 8.4 builds. Regardless of the query. The console shows: TypeError: Not enough arguments to Document.evaluate. Ctrl-enter works fine. /Andy On 2 January 2016 at 21:53, Eric Boisvert wrote: > I installed your new version (BaseX84

Re: [basex-talk] GUI feature request "Add as import"

2016-01-02 Thread Andy Bunce
blems.. I decided to add the import statement at the cursor > position. It's probably the most flexible solution as long as we don't > do real parsing. > > Cheers, > Christian > > [1] https://github.com/BaseXdb/basex/issues/1027 > > > > On Thu, Nov 13, 2014 a

Re: [basex-talk] problems with BaseX under OpenShift (connection failed on port 15007)

2016-01-06 Thread Andy Bunce
Hi Michael, I get the same result. I believe the problem is [1]. S_LOCALHOST is "localhost". Maybe this needs to be HOST or SERVERHOST. /Andy https://github.com/BaseXdb/basex/blob/master/basex-api/src/main/java/org/basex/BaseXHTTP.java#L375 On 6 January 2016 at 21:54, C. M. Sperberg-McQueen wr

Re: [basex-talk] problems with BaseX under OpenShift (connection failed on port 15007)

2016-01-06 Thread Andy Bunce
In principle it looks like openshift-basex-quick-start might be able to work round the problem by changing the .openshift/stop script to use other means to stop the server e.g."kill". /Andy On 7 January 2016 at 01:59, C. M. Sperberg-McQueen wrote: > > On Jan 6, 2016, at 5:1

Re: [basex-talk] problems with BaseX under OpenShift (connection failed on port 15007)

2016-01-07 Thread Andy Bunce
e you using these calls somewhere in your > code? > > Christian > > [1] http://docs.basex.org/wiki/Command-Line_Options#HTTP_Server > > > > On Thu, Jan 7, 2016 at 1:18 AM, Andy Bunce wrote: > > Hi Michael, > > > > I get the same result. > > I believe t

Re: [basex-talk] problems with BaseX under OpenShift (connection failed on port 15007)

2016-01-07 Thread Andy Bunce
gt; this > >> >> >> needs to be HOST or SERVERHOST. > >> >> >> > >> >> >> > >> >> >> > >> >> >> > https://github.com/BaseXdb/basex/blob/master/basex-api/src/main/java/org/basex/BaseXHTTP.java#L375 > >&

Re: [basex-talk] problems with BaseX under OpenShift (connection failed on port 15007)

2016-01-08 Thread Andy Bunce
t; >> > [3] https://developers.openshift.com/en/diy-overview.html > >> >> > > >> >> > > >> >> > > >> >> > On 7 January 2016 at 08:46, Christian Grün > >> >> > > >> >> > wrote: > &

[basex-talk] BaseX 8.4 beta contains with collation

2016-01-13 Thread Andy Bunce
Hi, Query: contains("aaa","ab", ' http://www.w3.org/2005/xpath-functions/collation/html-ascii-case-insensitive ') Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 8.4 beta 1814d39 Java: Oracle Corporation, 1.8.0_45 OS: Windows 8.1,

Re: [basex-talk] xquery:eval bug?

2016-01-18 Thread Andy Bunce
Works for me if MIXUPDATES is not true. I have found previously that MIXUPDATES has a lot consequences that are not always desirable or predictable - at least for me. /Andy On 18 January 2016 at 10:31, Christian Grün wrote: > Hi Marc, > > It runs fine on my environment. Could you give me some mo

Re: [basex-talk] XML Prague » User Meeting » Feb 11, 2016 » Join us!

2016-01-22 Thread Andy Bunce
Yes looks good. I too am unable to attend this year - particularly sorry to be missing James' Promises talk but will certainly be watching later. Best wishes. /Andy On 21 January 2016 at 09:28, Marco Lettere wrote: > Oh, wow! > Not able to join this year ... I'll be missing you! > The present

[basex-talk] [FOUT1170] Static Base URI is undefined.

2016-01-22 Thread Andy Bunce
Hi, Using the latest 8.4 beta: the following code runs ok in the GUI *unparsed-text("http://www.xqueryfunctions.com/xq/functx-1.0-doc-2007-01.xq ")* But when run from the web /dba/queries gives the FOUT1170 error*.* $href looks lik

Re: [basex-talk] [FOUT1170] Static Base URI is undefined.

2016-01-23 Thread Andy Bunce
the query with admin > permissions (see DBA, Settings)? If yes, I may need to check if we can > return a better error. If no, I’ll need to dig deeper. > > Thanks in advance, > Christian > > > > On Fri, Jan 22, 2016 at 10:32 PM, Andy Bunce wrote: > > Hi, > > > &

Re: [basex-talk] get and extract .gz files from web

2016-01-26 Thread Andy Bunce
Hi Marco, I get the same. This works: "https://wiki.mozilla.org/images/f/ff/Example.json.gz"; !fetch:binary(.) !archive:extract-text(.) But this returns empty: "https://wiki.mozilla.org/images/f/ff/Example.json.gz"; !fetch:binary(.) !archive:entries(.) http://basex.org/modules/a

Re: [basex-talk] Setting base-dir for xquery:eval

2016-02-18 Thread Andy Bunce
Hi Christian, I have used this technique and it works unless the query string already has a base-uri set. I wonder if there is a case for adding base-uri to the xquery:eval options map to handle this in a cleaner way? /Andy On 19 Feb 2016 07:10, "Marc van Grootel" wrote: > Yes, exactly what I

[basex-talk] detection of external variables

2016-03-24 Thread Andy Bunce
Hi, I am looking for a way to determine for a module what external variables are defined. Neither inspect:module [1] or inspect:xqdoc seem to return this information. I wonder if adding an *external *attribute to the inspect:module o/p for variables (and functions?) would be a solution. e.g. http

Re: [basex-talk] REST-Interface /Openshift/ Security

2016-03-28 Thread Andy Bunce
'm in the beginning of a BaseX basexhttp installation on OpenShift. I'm > using Openshift quick start for BaseX from Andy Bunce. For my tests, I'm > working with a simple factbook-db. Everything is working, but I can't > figure out, how to protect the database to be del

Re: [basex-talk] BaseX optimizer performance on REx-generated parser

2016-03-29 Thread Andy Bunce
>Did you hear sth. about the performance of MarkLogic My understanding is that on ML the presence typing blocks some tail-recursion optimizations leading to stack overflow for large texts. Stack overflow is also an issue for my use of REx with BaseX, I would like to be able to parse sources like

Re: [basex-talk] BaseX optimizer performance on REx-generated parser

2016-03-29 Thread Andy Bunce
Looking again at Florent's message http://markmail.org/message/gxi26da4crk2v5ge... After testing it seems is the length of the XQuery comments that trigger the stack overflow in BaseX as well. /Andy On 29 March 2016 at 16:54, Andy Bunce wrote: > >Did you hear sth. about the per

Re: [basex-talk] BaseX optimizer performance on REx-generated parser

2016-03-29 Thread Andy Bunce
:05, Christian Grün wrote: > So we may probably need to find out if the query can be optimized at all… > > > On Tue, Mar 29, 2016 at 7:01 PM, Andy Bunce wrote: > > Looking again at Florent's message > > http://markmail.org/message/gxi26da4crk2v5ge... > > Afte

Re: [basex-talk] detection of external variables

2016-03-30 Thread Andy Bunce
Thanks. I will look at trying to get this added to xqdoc. /Andy PS I was a bit sad to miss Prague this year. Do you plan to publish links to papers, videos etc from the BaseX Prague user group? On 29 March 2016 at 15:44, Christian Grün wrote: > …done [1,2,3]. > > [1] https://github.com/BaseX

[basex-talk] [ANN] Openshift BaseX quick start v0.6

2016-03-30 Thread Andy Bunce
Hi, A new version is available at https://github.com/Quodatum/openshift-basex-quick-start. New features: - Enable REST and WebDAV - support for setting initial users - support for setting initial data - Use Java 8 Thanks to Michael Sperberg-McQueen and Günter Dunz-Wolff for helpful c

Re: [basex-talk] BaseX optimizer performance on REx-generated parser

2016-03-31 Thread Andy Bunce
Very nice. I have hacked a ex-path packaged version as a POC... Install " https://github.com/expkg-zone58/ex-xparse/releases/download/v0.2.1/xq-xparse-0.0.5.xar " !repo:install(.) Run import module namespace xq="test.org/ns/xq-parse"; "http://www.xqueryfunctions.com/xq/functx-1.0-doc-2007-01.x

Re: [basex-talk] [ANN] Openshift BaseX quick start v0.6

2016-03-31 Thread Andy Bunce
n=xqs/list_ba_flyer.xq"; > > On the Server the file is copied to > /var/lib/openshift/xxx/app-root/data/basex/repo/xqs/list_ba_flyer.xq > > How can I run the Query-File via the REST-Interface? > > Thanks for your advice and again for your great work! > > Best, > Günt

Re: [basex-talk] [ANN] Openshift BaseX quick start v0.6

2016-03-31 Thread Andy Bunce
;m doing it with BaseX GUI. But is there a > convenient way for doing it with the remote server? Like changing the data > in the folder first-data and the db will be recreated after pushing it to > the server. Or do I have to re-install the whole app after changing the > data? > &g

Re: [basex-talk] Problem with module-import via relative / absolute path (WEBPATH, REST-Interface)

2016-04-01 Thread Andy Bunce
Ignoring the repo.. I can replicate this with the default config If I create webapp/test.xq with just static-base-uri() then /rest?rest?run=test.xq returns the expected file:///C:/Program%20Files%20(x86)/BaseX/webapp/test.xq If I change the module to import module namespace df = 'ns' at "another

Re: [basex-talk] Async Module

2016-04-02 Thread Andy Bunce
Hi Christian, This is great. I particularly like the way errors in the async execution are captured: declare function local:result($id){ try{ map{ "result":async:result($id) } } catch * { map{ "error": map { 'code': $err:code, 'description': $err:description,

Re: [basex-talk] [ANN] Openshift BaseX quick start v0.6

2016-04-03 Thread Andy Bunce
ver first-data, but nothing else > changed. The triggering of copying the contents of first-data to data > didn’t happen. There is no more users.xml in basex data. > > What did I wrong, or what did I misunderstood? > > Günter > > > > > > Am 31.03.2016 um 23:32 sch

Re: [basex-talk] node-basex

2016-04-04 Thread Andy Bunce
Hi again Günter, >Just saw, that you’ve also written a node-based Basex-Client There are quite a few https://www.npmjs.com/search?q=basex >Are there any advantages (disadvantages) to change to a classical Server-Client Scenario I think it all depends what you want to do. I wrote my client before

Re: [basex-talk] Non-default admin user/pw for BaseX on Docker image

2016-04-06 Thread Andy Bunce
Hi, My understanding is *basexhttp *does not use* .basex* or options for user details. It always runs as user admin with password from *data/users.xml*. If *data/users.xml* does not exist or does not specify an admin password then admin is also used as the password. [1],[2] /Andy [1] http://www.ma

[basex-talk] Problem deleting jar packaged item from repo

2016-04-06 Thread Andy Bunce
Hi, If I install HelloWorld.jar to the repository as described at [1] It all works. However attempts to remove the item generate: [bxerr:BXRE0001] Package 'org.basex.modules.Hello' does not exist. /Andy [1] http://docs.basex.org/wiki/Repository#Java

Re: [basex-talk] Problem deleting jar packaged item from repo

2016-04-07 Thread Andy Bunce
xed, thanks! > > PS: As the bugs you report are always bugs, and no misunderstandings, > free to add them in our GitHub issue tracker! If you prefer the list, > that’s fine as well. > > > > On Wed, Apr 6, 2016 at 6:20 PM, Andy Bunce wrote: > > Hi, > > > &g

Re: [basex-talk] Problem deleting jar packaged item from repo

2016-04-07 Thread Andy Bunce
C:\Program Files (x86)\BaseX\bin +>basex -d BaseX 8.4.3 beta d7bbbe7 [Standalone] Try 'help' to get more information. > xquery import module namespace p="org.basex.modules.CR_xquery_31_20151217";2 Creating Database... . 27.04 ms (25844 KB) Creating Database... . 4.83 ms (25844 KB) Creating Database

Re: [basex-talk] Problem deleting jar packaged item from repo

2016-04-07 Thread Andy Bunce
No constructor is the issue. Adding public CR_xquery_31_20151217() {} to java src fixes it. /Andy On 7 April 2016 at 16:05, Andy Bunce wrote: > C:\Program Files (x86)\BaseX\bin > +>basex -d > BaseX 8.4.3 beta d7bbbe7 [Standalone] > Try 'help' to get more information.

Re: [basex-talk] Problem deleting jar packaged item from repo

2016-04-07 Thread Andy Bunce
dding > > public CR_xquery_31_20151217() {} > > to java src fixes it. > > Thanks! @Gunther: Do you think such a dummy constructor could be added > to the Java class? > > > > > On 7 April 2016 at 16:05, Andy Bunce wrote: > >> > >> C:\Program Files (x86)\BaseX\b

Re: [basex-talk] Problem deleting jar packaged item from repo

2016-04-08 Thread Andy Bunce
t regards > Gunther > > > *Gesendet:* Freitag, 08. April 2016 um 08:55 Uhr > *Von:* "Christian Grün" > *An:* "Gunther Rademacher" > *Cc:* "Andy Bunce" , " > basex-talk@mailman.uni-konstanz.de" > *Betreff:* Re: Re: [basex-talk] Problem

Re: [basex-talk] node-basex

2016-04-08 Thread Andy Bunce
any npms or libraries out there, to do > this kind of http-interface? > > Günter > > > Am 04.04.2016 um 11:55 schrieb Andy Bunce : > > > > If I was looking to connect Node and BaseX now I would look at an http > interface to RESTXQ, but this may not be the most performant, resource > light option. > > >

Re: [basex-talk] Is Basex scanning static before each http-request?

2016-04-08 Thread Andy Bunce
Perhaps the distribution should include a .ignore in webapp\static as creating one can be a pain under windows [1] /Andy [1] http://www.hanselman.com/blog/HowToCreateAFileWithADotPrefixInWindowsExplorer.aspx On 8 April 2016 at 13:19, Christian Grün wrote: > Hi Lars, > > > It seems that BaseX i

Re: [basex-talk] Problem deleting jar packaged item from repo

2016-04-10 Thread Andy Bunce
ffect of the -basex option. > Will > > take care of this. > > > > Best regards > > Gunther > > > > Gesendet: Freitag, 08. April 2016 um 11:34 Uhr > > Von: "Andy Bunce" > > An: "Gunther Rademacher" > > Cc: "Christian Grün&q

Re: [basex-talk] Problem deleting jar packaged item from repo

2016-04-11 Thread Andy Bunce
ame, thus also >affecting the output file name, and for -basex the external function/module >namespace. > > Best regards > Gunther > > *Gesendet:* Sonntag, 10. April 2016 um 23:27 Uhr > *Von:* "Andy Bunce" > *An:* "Christian Grün" > *Cc:* &

Re: [basex-talk] Nonstandard CSV in RESTXQ

2016-06-12 Thread Andy Bunce
Not really up to speed with this but I would expect the separator to be the symbol, no? "header=false,encoding=CP1251,separator=;" or map{"header": false(), "separator": ";"} /Andy On 12 June 2016 at 20:26, Christian Grün wrote: > > No, browser doesn't want to send file content with this mime

[basex-talk] NVDL validation

2016-07-08 Thread Andy Bunce
Hi, Just an observation.. It seems like the RelaxNG Validation functions [1] can be overloaded/abused to provide NVDL validation [2] As in: validate:rng-report("data.xml","test.nvdl") This support comes from the underlying Trang library. It looks like any schema format Trang accepts can be used

Re: [basex-talk] NVDL validation

2016-07-09 Thread Andy Bunce
> On Fri, Jul 8, 2016 at 5:57 PM, Andy Bunce wrote: > > Hi, > > > > Just an observation.. > > > > It seems like the RelaxNG Validation functions [1] can be > overloaded/abused > > to provide NVDL validation [2] > > As in: > > validate:rng-repor

Re: [basex-talk] Schema validation

2016-07-19 Thread Andy Bunce
Hi George, Just on point #1 I think BaseX does not install Xerces. Entering the line below in the GUI will tell you the version from the JDK Q{java:com.sun.org.apache.xerces.internal.impl.Version}getVersion() For me this returns: Xerces-J 2.7.1 If you have manually added Xerces to the classpath

Re: [basex-talk] Schema validation

2016-07-19 Thread Andy Bunce
; > Anyway, it would be great if BaseX can have a feature to change the > validation options. Should I open a BaseX ticket about it? or is there > already a way to set these. > > https://xerces.apache.org/xerces2-j/features.html > > > > On 7/19/2016 3:05 PM, Andy Bunce wro

Re: [basex-talk] Problems with 8.5.3

2016-08-31 Thread Andy Bunce
Hi Marco. I hit the SQL issue to see https://github.com/BaseXdb/basex/issues/1341 /Andy On 31 August 2016 at 14:46, Marco Lettere wrote: > Hi all, > after passing to 8.5.3 we have several points in our current application > that stop working. > > The first one refers to the use of sql module.

Re: [basex-talk] copy attributes of one node to another

2016-10-08 Thread Andy Bunce
Hi Erdal, parse-xml() [1] returns a document-node, you need to get the root element. Try: copy $x := , $y := parse-xml('') modify ( delete nodes $x/@*, insert node $y*/**/@* into $x ) return $x /Andy [1] https://www.w3.org/TR/xpath-functions-30/#func-parse-xml On 8 October 2016 at 18:28,

[basex-talk] Some GUI suggestions

2016-10-26 Thread Andy Bunce
Hi, Here are some suggestions for future GUI enhancements: Project window: * Add recent locations button, similar to the editor (recent files) Editor window: * use scrollable run of tabs rather than multi row see [1]. Ideally with dropdownlist to select any item as with Eclipse, Firefox etc. * m

[basex-talk] Async unit testing

2017-01-03 Thread Andy Bunce
Hi, Around version 7.8 there was a function that allowed unit tests to be invoked from XQuery: unit:test-uris($uris as xs:string*) as element(testsuites) Later this was removed, but ability to run updating tests was added. Which was great. I wonder how easy it would be, using the jobs module, t

Re: [basex-talk] Async unit testing

2017-01-04 Thread Andy Bunce
>I assume that the execution of unit tests takes quite a lot of time in your setup, right? Sometimes :-) But my motivation is to run tests initiated from a http RestXQ request and capture the result. If something like the below is safe that would do me. Does this count as "a single-threaded execut

Re: [basex-talk] Async unit testing

2017-01-05 Thread Andy Bunce
Thanks. The code below seems to be working for me. Another way to run tests from http, I guess, would be using the rest interface [1]. The %unit:before annotation is interesting because it seems to allow (or can be abused) to execute multiple update operations with one "execution". /Andy [1] htt

Re: [basex-talk] BaseX 8.6: The Winter Edition

2017-01-26 Thread Andy Bunce
Looks good. PARSERESTXQ makes a big difference for me. The spec change for map:merge [1] used with the idiom map:merge (($defaults,$opts)) required a few changes :-) A question about jobs:list-details[2] I had expected the attribute duration: evaluation time (for running and cached jobs) to be fro

Re: [basex-talk] Counting

2017-01-27 Thread Andy Bunce
Hi Joseph, You could see how XQuery update (http://docs.basex.org/wiki/Update) performs... let $src:= red red blue green green return copy $result:=$src modify ( for $a in $result/a return insert node attribute { 'n' } { 1+count($a/preceding-sibling::a[.=$a])} int

Re: [basex-talk] Counting

2017-01-29 Thread Andy Bunce
ssible to count them without moving, and more in > general if there is a way to get more control over 2 for-loops combined, so > that once a condition is satisfied it is possible to stop a certain > repetition. > > Thanks! > Joseph > > Il giorno 27 gen 2017, alle ore 12:33, A

Re: [basex-talk] Counting

2017-01-29 Thread Andy Bunce
or root:) return insert node attribute { 'n' } { 1+count($a/preceding-sibling::a[. >> $diff and . =$a ])} into $a) return $result On 29 January 2017 at 13:37, meumapple wrote: > The result is not the one I look for > > Il giorno 29 gen 2017, alle ore 12:58,

Re: [basex-talk] Change XSLT processor in GUI?

2017-02-02 Thread Andy Bunce
Hi Regine, The method Rolf describes works for me, but if you are on Windows you need to use basexgui.bat rather than basex.exe to start the GUI. Regards /Andy On 2 February 2017 at 21:46, Regine I. Heberlein wrote: > Thanks Rolf! I’ve tried the same with saxon9ee.jar, with no luck. I > re-st

Re: [basex-talk] Cross-Origin Resource Sharing ( CORS) not available in jetty version 8

2017-02-25 Thread Andy Bunce
Hi Rob, I have used the restxq custom response feature [1] to create the CORS header. Maybe it would work in your case? ... For example see [2] (of course Jetty 9 support would be great) /Andy [1] http://docs.basex.org/wiki/RESTXQ#Custom_Response [2] https://github.com/apb2006/graphxq/blob/1

Re: [basex-talk] Angular(2) ToH with Basex backend

2017-03-07 Thread Andy Bunce
Hi Rob, Good to hear you have solved the CORS problem. >In BaseX however, it is not possible to retrieve updated data from within the same transaction as the update of the database took place. I think often this is not so much of a problem as it first appears because you know the data going into

Re: [basex-talk] [XPTY0004] Item expected, sequence found

2017-03-08 Thread Andy Bunce
Hi Bram, As Fabrice says the problem is multiple nodes being passed to the `number` function. The Xpath below returns nodes where this is true: //alpino_ds//node[ @rel="hd" and @pt="vz" and 1` Selecting the first match works for me - using the code as s

Re: [basex-talk] Possible to Access Environment Variables from XQuery?

2017-03-25 Thread Andy Bunce
Hi Eliot, Try the XPath function fn:environment-variable [1] /Andy [1] https://www.w3.org/TR/xpath-functions-31/#func-environment-variable On 25 March 2017 at 18:01, Eliot Kimber wrote: > I’m running BaseX in a Docker container started via docker-compose. I need > to communicate some local c

Re: [basex-talk] BaseX hanging on REST/XQ pipelining

2017-03-30 Thread Andy Bunce
Hi Erik, This thread may be relevant [1]. Have you tried client:execute in place of fetch REST? /Andy [1] http://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg08962.html On 30 March 2017 at 22:31, Erik Peterson wrote: > It seems like on some RESTXQ/REST pipelining (restxq calli

Re: [basex-talk] server and/or web application up times

2017-04-07 Thread Andy Bunce
Hi Fabrice, One option is to use the Java API to get the jvm uptime[1]. This requires admin permission and the assumption that the server started at the same time as the jvm instance. /Andy [1] https://github.com/Quodatum/openshift-basex-quick-start/blob/master/basex/repo/quodatum/basex/env.xqm#L

Re: [basex-talk] Java Modules - Constructor

2017-05-05 Thread Andy Bunce
Hi IIko Your code and: declare namespace t='org.basex.modules.Hello'; let $obj := t:new('works for me') return t:hello($obj) Returns: Hello works for me Could be be that you have multiple versions of the jar on the path? Regards /Andy On 5 May 2017 at 11:20, kovacic wrote: > Hi all, > > I

Re: [basex-talk] Java Modules - Constructor

2017-05-08 Thread Andy Bunce
> Hi Andy, > > I have removed all other existing modules before installing this module. > The repo folder was completely empty. > > Regards > Ilko > > Am 05.05.2017 um 19:29 schrieb Andy Bunce: > > Hi IIko > > Your code and: > > declare namespace t='

Re: [basex-talk] Java Modules - Constructor

2017-05-08 Thread Andy Bunce
Great. I believe the windows exe has a hard coded class path so ignores any additions. /Andy On 8 May 2017 at 13:24, kovacic wrote: > Thank you Andy. It works by starting the GUI using the basexgui.bat. > > Regards > Ilko > > Am 08.05.2017 um 14:21 schrieb Andy Bunce: &g

Re: [basex-talk] Java Modules - Constructor

2017-05-11 Thread Andy Bunce
e may need to rethink > the way how we build the Windows executable. > > Thanks for the reminder, > Christian > > > > > > >> /Andy >> >> On 8 May 2017 at 13:24, kovacic wrote: >> >>> Thank you Andy. It works by starting the GUI using the basex

Re: [basex-talk] Java Modules - Constructor

2017-05-15 Thread Andy Bunce
Yes makes sense. If one really wants side effects in a Java Repo module the below will do it. Looking forward to the custom lib feature and lib/custom seems a good name to me. Thanks /Andy - package org.basex.modules; public class Hello { private String str = "BaseX";

[basex-talk] fetch:content-type file: customisation

2017-06-09 Thread Andy Bunce
Hi, I notice that fetch:content-type()[1] returns "application/octet-stream" for files with the commonly used XProc file extensions *.xpl and *.xproc. This seems to be driven from the list in src/main/resources/media-types.properties [2] Would it be possible to add these extensions as "application

Re: [basex-talk] fetch:content-type file: customisation

2017-06-09 Thread Andy Bunce
ding the extensions statically is surely the least effort for now. > > I can add the following two mappings: > > xpl=application/xml > xproc=application/xml > > Are some more that I should include? > > Thanks, > Christian > > > > On Fri, Jun 9, 2017 at 11:49 AM, A

Re: [basex-talk] fetch:content-type file: customisation

2017-06-09 Thread Andy Bunce
> >> xpl=application/xml > >> xproc=application/xml > >> > >> Are some more that I should include? > >> > >> Thanks, > >> Christian > >> > >> > >> > >> On Fri, Jun 9, 2017 at 11:49 AM, Andy Bu

Re: [basex-talk] fetch:content-type file: customisation

2017-06-09 Thread Andy Bunce
>Would you recommend the following mappings? >xpl=application/xproc+xml >xproc=application/xproc+xml Yes. /Andy On 9 June 2017 at 12:10, Christian Grün wrote: > > My understanding multiple extensions in use but same mimetype of > > "xproc+xml". > > Sorry, I didn’t get it… Would you recommend t

<    1   2   3   4   >