[basex-talk] how to start and configure Jetty?

2020-06-21 Thread Nicholas
I don't quite understand what it means for Jetty to be "embedded" in or with BaseX, but presumably there's a configuration? I see: |DEBUG =falseDBPATH =/home/nicholas/basex/data LOGPATH =.logs REPOPATH =/home/nicholas/basex/repo LANG =EnglishLANGKEYS =falseFAIRLOCK =falseCACHETIM

[basex-talk] trying to rename all node elements from to

2020-06-18 Thread Nicholas
Hi, How do I rename all the "record" nodes in a database?  I'm trying: for $x in db:open("bccdc_covid19") return return rename node $x//record as "baz" but this gives back Stopped at ., 1/13: [XPDY0002] bc.rename.xq: no context value bound. or [XPST0003] Unexpected end of query:

Re: [basex-talk] trying to rename all node elements from to

2020-06-18 Thread Nicholas
Pardon, this indeed works: for $x in db:open("bccdc_covid19") return rename node $x//baz as "foo" but only for the first node baz -- how can I rename all of the nodes?  Or match an Xpath? It's CSV data, so the general layout (?) is csv/record/entry and instead of "record" I'd want that

Re: [basex-talk] A first RESTXQ function

2020-11-20 Thread Nicholas
Hi Christian, Ah, it's step #3 where I seem to run into a roadblock.  I'll look into that more closely. thanks, Nick On 11/19/20 1:49 AM, Christian Grün wrote: Hi Nicholas, A good start is to: 1. download the full distribution of BaseX 2. run basexhttp, 3. visit http://localhost:8984

Re: [basex-talk] RESTXQ and posting files

2020-11-20 Thread Nicholas
if you were to put your efforts on github, I'd certainly be interested. On 11/19/20 6:10 PM, cel...@informatik.uni-leipzig.de wrote: Hi, I have a script which takes a path to an xml or txt file as an input and outputs its content (as xml or txt) after a few modifications have been applied.

Re: [basex-talk] where is the "lib" folder?

2020-11-23 Thread Nicholas
On 11/23/20 3:21 AM, Omar Siam wrote: Hi, Am 23.11.2020 um 10:57 schrieb Nicholas: Is there even a lib directory? https://unix.stackexchange.com/a/621089/101935 My understanding is that, for example, a JDBC driver can be "added" to BaseX itself.  Perhaps this is incorrect.

[basex-talk] set parser csv header

2020-12-13 Thread Nicholas
How do I set the CSV parser to use "header" true? so that when the record is imported it has the header information as below? nicholas@mordor:~/flwor/csv$ nicholas@mordor:~/flwor/csv$ basex BaseX 9.0.1 [Standalone] Try 'help' to get more information. > > create database addr

Re: [basex-talk] write result to file?

2020-12-15 Thread Nicholas
pardon, forgot to include: https://tech.forums.softwareag.com/t/writing-to-file-using-xquery/67224 where michael kay says that's just not going to work. similarly, I'd want to feed the result into an xslt. On 12/15/20 9:15 AM, Nicholas wrote: how is the return result from a query

[basex-talk] write result to file?

2020-12-15 Thread Nicholas
how is the return result from a query written to a file? thanks, Nick

Re: [basex-talk] write result to file?

2020-12-16 Thread Nicholas
On 12/15/20 11:38 AM, Liam R. E. Quin wrote: On Tue, 2020-12-15 at 09:19 -0800, Nicholas wrote: pardon, forgot to include: https://tech.forums.softwareag.com/t/writing-to-file-using-xquery/67224 where michael kay says that's just not going to work. That's not exactly what he says - Mike

Re: [basex-talk] write result to file?

2020-12-15 Thread Nicholas
that? | On 12/15/20 9:15 AM, Nicholas wrote: how is the return result from a query written to a file? thanks, Nick

[basex-talk] A first RESTXQ function

2020-11-17 Thread Nicholas
For this example: module namespace page = 'http://basex.org/examples/web-page'; declare %rest:path("hello/{$who}") %rest:GET function page:hello($who) {       Hello { $who }!   }; https://docs.basex.org/wiki/RESTXQ where/how is this function stored or saved? thanks, Nick

[basex-talk] importing data from powershell

2020-11-17 Thread Nicholas
for some simple data as: PS /home/nicholas> PS /home/nicholas> $data = @{ >> customer = 'something' >> name = 'whatever' >> } PS /home/nicholas> PS /home/nicholas> ($data | ConvertTo-Xml).OuterXml Type="System.Collections.Hashtable">T

[basex-talk] where is the "lib" folder?

2020-11-23 Thread Nicholas
Is there even a lib directory? https://unix.stackexchange.com/a/621089/101935 My understanding is that, for example, a JDBC driver can be "added" to BaseX itself.  Perhaps this is incorrect. thanks, Nick

[basex-talk] missing web.xml from docker image

2020-09-03 Thread Nicholas Saunders
I've just opened an issue: https://github.com/BaseXdb/basex/issues/1936 based on an inability to run the docker image: https://devops.stackexchange.com/q/12338/23443 but thought I'd ask here if there might be something obvious. I'm creating the container from the hub image with: docker run

Re: [basex-talk] missing web.xml from docker image

2020-09-03 Thread Nicholas Saunders
the documentation is out of date. On 9/3/20, Christian Grün wrote: > Hi Nicholas, > > Have you already worked through the Docker documentation in our Wiki [1]? > > Best, > Christian > > [1] https://docs.basex.org/wiki/Docker > > > > > On Thu, Sep 3, 2020 at 4:23 PM

Re: [basex-talk] missing web.xml from docker image

2020-09-04 Thread Nicholas Saunders
approach? On 9/3/20, Christian Grün wrote: > Thanks for the observation. I’ll try to get into contact with the guys who > wrote the article and see if this can be updated. > > > > Nicholas Saunders schrieb am Fr., 4. Sep. > 2020, 01:19: > >> from what I gather,

[basex-talk] WebDAV username and password

2020-09-04 Thread Nicholas Saunders
How to authenticate with WebDAV? nicholas $ nicholas $ lynx http://localhost:8984/webdav/ --dump HTTP: Access authorization required. Use the -auth=id:pw parameter. Looking up localhost:8984 Making HTTP connection to localhost:8984 Sending HTTP request. HTTP request sent; waiting

Re: [basex-talk] WebDAV username and password

2020-09-04 Thread Nicholas Saunders
Ah, admin for both. I see. On 9/4/20, Nicholas Saunders wrote: > How to authenticate with WebDAV? > > > nicholas $ > nicholas $ lynx http://localhost:8984/webdav/ --dump > HTTP: Access authorization required. >Use the -auth=id:pw parameter. > > Looking up l

Re: [basex-talk] missing web.xml from docker image

2020-09-04 Thread Nicholas Saunders
nning your own Application/DBA in the > documentaton you can also use RESTXQ applications. > > Best regards, > >   Markus > > Am 04.09.2020 um 12:11 schrieb Christian Grün: >> …anyone else around here who uses Docker? >> >> On Fri, Sep 4, 2020 at 11:32 AM Nichola

Re: [basex-talk] missing web.xml from docker image

2020-09-04 Thread Nicholas Saunders
There was an additional response: https://devops.stackexchange.com/q/12338/23443 with remarks about the basex docker image which are a bit over my head but should prove useful for the maintainer(s). On 9/4/20, Nicholas Saunders wrote: > Certainly, I was able to get the container runn

[basex-talk] issue: Add custom lib folder #1456

2020-09-22 Thread Nicholas Saunders
For the Ubuntu install of BaseX, where's the "lib" directory for BaseX? Or, does the Ubuntu build just operate differently? see also: https://askubuntu.com/q/1276967/847449 thanks, Nick

Re: [basex-talk] issue: Add custom lib folder #1456

2020-09-25 Thread Nicholas Saunders
have seen, Kralj Karlo has proposed a new BaseX package for UNIX-based platforms some days ago. This package could possibly be used for a future Ubuntu distribution. Feel free to give it a try and share your feedback with us! Best, Christian On Tue, Sep 22, 2020 at 7:53 PM Nicholas Saunders

[basex-talk] Load xml files to BaseX in a loop

2013-02-09 Thread Nicholas OR Rita Stevens
I am new at BaseX so please pardon the newbie question. I am trying to run an xquery script to load a set of xml files in a directory into to BaseX 7.5. If I run replace.xq, shown below, it fails with Out of Main Memory declare %updating function local:upd($path,$file) {

[basex-talk] Java Exception:insertion at beginning of populated table

2013-04-09 Thread Nicholas OR Rita Stevens
Via a python client, I am looping through a set of 600 xml files and issuing REPLACE commands to store them in my BaseX db. All was well until I reached file #364, at which point the program crashed with Java.lang.RuntimeException: insertion at beginning of populated table. I am using BaseX 7.7