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: 'renam
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 t
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
=fal
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
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.
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.
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://loca
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
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.
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 dat
how is the return result from a query written to a file?
thanks,
Nick
|
On 12/15/20 9:15 AM, Nicholas wrote:
how is the return result from a query written to a file?
thanks,
Nick
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 fr
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 s
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 -
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
n
odd 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 gat
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 for
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
Running 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 Ni
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
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
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
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) {
db:replace("eams",$path,
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
25 matches
Mail list logo