Re: [basex-talk] Issues with X11 display

2024-04-30 Thread Bridger Dyson-Smith
Hi Grayson I'm not in front of a RHEL box, but have you tried the OpenJDK with a head? Ie not the headless version. Best, Bridger On Tue, Apr 30, 2024, 5:36 PM Graydon Saunders wrote: > Hello -- > > After upgrading to Fedora 40, I find that I can not run the BaseX GUI. > This is against

Re: [basex-talk] Out of Main Memory

2024-03-14 Thread Bridger Dyson-Smith
Hi Greg, Have you tried experimenting with the ADDCACHE[1] option when building your database? While it's been a bit, I recall having good results with, especially in a RAM-constrained environment. Hope that's helpful! Best, Bridger [1] https://docs.basex.org/wiki/Options#ADDCACHE On Thu, Mar

Re: [basex-talk] Trying to get process details on macOS

2023-10-20 Thread Bridger Dyson-Smith
 PM Bridger Dyson-Smith wrote: > Hi Eliot - hope you're well! > > Quickly off the cuff, the `ps` command on MacOS is a BSD-flavo(u)r, if I'm > remembering correctly (it's been a while...). > > I don't have a Mac handy right now, but check this `ps` man page - > https://ss64.c

Re: [basex-talk] Trying to get process details on macOS

2023-10-19 Thread Bridger Dyson-Smith
Hi Eliot - hope you're well! Quickly off the cuff, the `ps` command on MacOS is a BSD-flavo(u)r, if I'm remembering correctly (it's been a while...). I don't have a Mac handy right now, but check this `ps` man page - https://ss64.com/osx/ps.html - your args may need to be adjusted. Hope that's

Re: [basex-talk] Possible to get line number of node?

2022-12-22 Thread Bridger Dyson-Smith
Hi Eliot, Apologies for the mobile guesswork, but what about serializing a temporary document to look up line number? I'm probably missing something obvious and/or misunderstanding your challenge, but if I'm not it seems like a temporary document (in memory? On the filesystem?) might let you get

Re: [basex-talk] BaseX GraalVM native-image

2022-12-02 Thread Bridger Dyson-Smith
Hi - I've had nice luck running either the basexserver + basexclient, or the basexhttp server (confession, it's almost something I start by default). Maybe that would be an option to help avoid JVM startup times? HTH! Best, Bridger On Thu, Dec 1, 2022, 5:08 AM wrote: > Hello Everyone, >

Re: [basex-talk] Am I using proc:exec wrong?

2022-09-02 Thread Bridger Dyson-Smith
Hey Graydon - I'm on mobile and can't verify, but what about proc:execute($path-to-java, ('-cp', 'home/graydon/bin/coffeepot- package/coffeepot-1.99.8/coffeepot-1.99.8.jar', ' org.nineml.coffeepot.Main')) Multiple args need to be in a sequence, as I recall but I haven't had a chance to try this

Re: [basex-talk] Get All Tokens for Attribute Name?

2022-08-06 Thread Bridger Dyson-Smith
Hi Eliot - If I'm following correctly, could you use `index:facets()`? E.g. index:facets($db)//attribute[@name='bundles']//entry/text() => distinct-values() Can the bundles attribute have multiple tokens? Best, Bridger On Sat, Aug 6, 2022 at 12:01 PM Eliot Kimber wrote: > Using the

Re: [basex-talk] Multi-valued values in maps - sequences vs arrays

2022-08-03 Thread Bridger Dyson-Smith
the map > > let $a:=(1 to 5)!array{.}=>array:join() > return map:entry("key",$a) > > /Andy > > On Wed, 3 Aug 2022 at 09:37, Martin Honnen wrote: > >> >> Am 03.08.2022 um 04:27 schrieb Bridger Dyson-Smith: >> > >> > >>

[basex-talk] Multi-valued values in maps - sequences vs arrays

2022-08-02 Thread Bridger Dyson-Smith
Hi all - I would appreciate some help understanding how I might go about having a multi-valued array as the value of a map key, or if this is even possible; e.g. map{ "key": [1,2,3,4,5] } I've tried various combinations of array:flatten and array:join, but things always wind up in a sequence.

Re: [basex-talk] BaseX 10 • The Double-Digit Summer Edition

2022-08-01 Thread Bridger Dyson-Smith
Christian and company - As always, thanks for your efforts and work on our behalf! Congratulations on this significant milestone! Best, Bridger On Mon, Aug 1, 2022 at 9:28 AM Christian Grün wrote: > Dear all, > > It’s been around 15 years ago when the first Open-Source version of > BaseX was

Re: [basex-talk] Possible to Speed Up This Lookup?

2022-07-15 Thread Bridger Dyson-Smith
Hi Eliot - Others are much more proficient and knowledgeable, but I try the following: 1. ABI := Always Be Indexing :) 2. I think that Christian has expressed that, with indexes in play, many queries can experience significant optimizations by reversing the query pattern; eg starting with the

Re: [basex-talk] Email integration

2022-07-09 Thread Bridger Dyson-Smith
ent XML files, though, so you might have to export an archive and do > some file processing processing every time you want to perform a query. > > -Tamara > Thanks for the email! Best, Bridger > > > On Tue, Jul 5, 2022 at 7:25 PM Bridger Dyson-Smith > wrote: > >>

Re: [basex-talk] Email integration

2022-07-05 Thread Bridger Dyson-Smith
Hi Ben - On Tue, Jul 5, 2022 at 7:36 PM Ben Pracht wrote: > Hi, > This may seem a bit unusual, but I like the parsing capabilities of XQuery > and I'd like to use it for my email. I'd like to have BaseX log into my > IMAP server, fetch emails and put each email as a separate XML document. >

Re: [basex-talk] BaseX 9.7.3: Tweaks, Fixes, Previews

2022-06-30 Thread Bridger Dyson-Smith
Christian and team - On Thu, Jun 30, 2022 at 10:04 AM Christian Grün wrote: > Hi all, > > A new BaseX maintenance release is available. This is what you get: > > • DBA: Improved support for database backups > • Performance tweaks and bug fixes > > …and some more BaseX 10 previews: > > • Store

Re: [basex-talk] BaseX 9.7.3: Tweaks, Fixes, Previews

2022-06-30 Thread Bridger Dyson-Smith
On Thu, Jun 30, 2022 at 10:04 AM Christian Grün wrote: > Hi all, > > A new BaseX maintenance release is available. This is what you get: > > • DBA: Improved support for database backups > • Performance tweaks and bug fixes > > …and some more BaseX 10 previews: > > • Store Module (before: Caching

Re: [basex-talk] Link Graph Construction: Anything I Can Crib or Learn From?

2022-06-23 Thread Bridger Dyson-Smith
Hi Eliot - I've wondered (but never tested/explored) about leveraging some semblance of json-ld (or serialized ttl, or something similar) and passing those values to Apache Jena (or another SPARQL processor) to use that as an inference engine. I'm deep in Speculation Territory here - I don't know

Re: [basex-talk] Encoding hassle ....

2022-05-27 Thread Bridger Dyson-Smith
Marco - I'm sorry but I can only corroborate your findings, and that trying to force UTF-8 by adding the encoding parameter to the functions doesn't seem to help; e.g. ) ./bin/basex BaseX 9.7.1 [Standalone] Try 'help' to get more information. > xquery file:current-dir()

Re: [basex-talk] Selecting nodes in a db by source file name

2022-05-19 Thread Bridger Dyson-Smith
Charles - On Thu, May 19, 2022 at 12:46 PM Charles Bearden wrote: > Thanks to Graydon, Tamara, and Christian for responding! > > I figured out a pretty fast way to exploit the infrastructure I had built > (the files allocated out into many databases and a single index database > generated from

Re: [basex-talk] Stemming in BaseX Full-Text

2022-04-13 Thread Bridger Dyson-Smith
-- > Tim A. Thompson (he, him) > Librarian for Applied Metadata Research > Yale University Library > > > > On Wed, Apr 13, 2022 at 12:13 PM Bridger Dyson-Smith < > bdysonsm...@gmail.com> wrote: > >> Hi Tim - >> >> On Wed, Apr 13, 2022 at

Re: [basex-talk] Stemming in BaseX Full-Text

2022-04-13 Thread Bridger Dyson-Smith
Hi Tim - On Wed, Apr 13, 2022 at 11:40 AM Tim Thompson wrote: > I'm currently involved in a project that's using MarkLogic, and I noticed > that its implementation of English-language stemming differs from that of > BaseX: e.g., "mouse" and "mice" both stem to "mouse." > > In BaseX, those

Re: [basex-talk] Enclosing strings by double quotes for CSV data output

2022-04-06 Thread Bridger Dyson-Smith
Markus - Another confession: I've never been very good at puzzles and riddles :( so... On Wed, Apr 6, 2022 at 10:34 AM Markus Elfring wrote: > > > Test result: > > > T3|T4 > > > "line 1 > > > line 2?"|line 3\nline 4? > > > > > > > > > Will any more clarification help here? > > > > …, but if

Re: [basex-talk] Enclosing strings by double quotes for CSV data output

2022-04-06 Thread Bridger Dyson-Smith
Hi Markus - On Wed, Apr 6, 2022 at 9:25 AM Markus Elfring wrote: > > No quotes will be added, as your delimiter does not occur in the text > value. > > How does this feedback fit to previously provided information? > > A) > https://docs.basex.org/wiki/CSV_Module#Options > “… > Serialization: If

Re: [basex-talk] copy-paste, can't copy in BaseX and then paste into Emacs (Debian)

2022-04-01 Thread Bridger Dyson-Smith
r, > > You're right! > > I has copy setup on highlighting and that doesn't seem to work, but your > suggestion does. > > Thanks! > > Patrick > > On 4/1/22 11:22, Bridger Dyson-Smith wrote: > > Hi Patrick - > > > > I was able to copy (ctrl-

Re: [basex-talk] copy-paste, can't copy in BaseX and then paste into Emacs (Debian)

2022-04-01 Thread Bridger Dyson-Smith
Hi Patrick - I was able to copy (ctrl-c) out of the Result window and paste into Emacs with ctrl-y. Is that not working for you? Best, Bridger On Fri, Apr 1, 2022 at 10:34 AM Patrick Durusau wrote: > Hello, > > I tried to copy a string out of results with the copy command on the > drop down

Re: [basex-talk] BaseX 9.7 • Ukraine Edition

2022-03-23 Thread Bridger Dyson-Smith
Dear Christian, and the rest of the BaseX team - many thanks for your thoughtful message. I'll echo Marco's comments, and say I'm excited to see where we go in the upcoming decades! Best wishes, Bridger On Wed, Mar 23, 2022 at 8:16 AM Christian Grün wrote: > Dear all, > > Just next to us,

Re: [basex-talk] OpenJDK vs. Oracle JDK versus ...

2022-03-22 Thread Bridger Dyson-Smith
Hi Jonathan - I am by no means any kind of power user when it comes to JDKs, but if you'll entertain an anecdote: I have read in many places that unless your Java is written specifically to take advantage of Oracle's JVM, then you're fine to use OpenJDK (or Azul, or Amazon's offering, or ___).

Re: [basex-talk] Dumb question: Adding files to BaseX database

2022-03-14 Thread Bridger Dyson-Smith
Hi Patrick - You'll want to navigate to the Database menu > Properties > and you should find an Add Files dialog there. Hope that's helpful. Best, Bridger On Mon, Mar 14, 2022 at 1:45 PM Patrick Durusau wrote: > Greetings! > > I'm using db:add to add files to a BaseX database, but am I just

Re: [basex-talk] Develop a module, HOWTO

2022-02-25 Thread Bridger Dyson-Smith
ce utils = "http://canofbees.org/ns/xquery/utilities;; declare variable $input := one ; utils:build-path($input) ``` I have this particular module installed in my $BASEX/repo directory - more on that in the packaging link from earlier. Hope that's more helpful :) (and closer to the mark!

Re: [basex-talk] Develop a module, HOWTO

2022-02-25 Thread Bridger Dyson-Smith
Hi Ben, On Fri, Feb 25, 2022 at 8:25 AM Ben Engbers wrote: > Hi, > > I know that it is possible to create a module with functions (I have > even done that once), but I can't find the documentation anymore on how > to do that. > Could please someone provide the URL to this information? > > Here

Re: [basex-talk] string-join with a newline separator?

2022-02-24 Thread Bridger Dyson-Smith
Hi Ben, On Thu, Feb 24, 2022 at 10:44 AM Ben Engbers wrote: > Hi, > > My xml has the structure > > > >bla > > > > >bla > > >bla > > > > > The element contains 1 to many elements. > > let $tekst :=

Re: [basex-talk] feature request: opening database at arbitrary file path

2022-02-22 Thread Bridger Dyson-Smith
Hi Eric, On Mon, Feb 21, 2022, 11:44 PM Eric Levy wrote: > On Mon, 2022-02-21 at 23:33 -0500, Liam R. E. Quin wrote: > > On Mon, 2022-02-21 at 20:00 -0500, Eric Levy wrote: > > > My use would need a function as such that may be used as such: > > > > > >

Re: [basex-talk] Long-running queries: command line or BaseX Gui?

2022-02-16 Thread Bridger Dyson-Smith
Hi Jonathan On Wed, Feb 16, 2022, 7:04 PM Jonathan Robie wrote: > Do long-running queries run faster from the command line, the GUI, or > about the same from either? > Without a recent example to pull from, I want to say about the same amount of time (but, obviously, with the preceding

Re: [basex-talk] How to extract value from fn:analyze-string

2022-02-11 Thread Bridger Dyson-Smith
Gerrit! You wound me - I'm cut to the very core :) For the life of me, I couldn't remember if the `fn` prefix was correct or not. @Ben - Gerrit's absolutely right - wildcards are desperate measures (or for quick, one-off scripts). Using the namespace is much preferable. Best, Bridger On Thu,

Re: [basex-talk] How to extract value from fn:analyze-string

2022-02-10 Thread Bridger Dyson-Smith
Include the namespace, or put in a wildcard; eg let $debate-nr := $debate-id//*:match/*:group[@nr="1"]/text() let $item-nr := $debate-id//*:match/*:group[@nr="2"]/text() I'm mobile at the moment, but think that's right (: untested and off the cuff, in other words :). Best, Bridger On

Re: [basex-talk] Configuration Option for Files to Parse in Create Database Dialog?

2022-01-13 Thread Bridger Dyson-Smith
Apologies - I hit send before including the link On Thu, Jan 13, 2022 at 4:29 PM Bridger Dyson-Smith wrote: > Hi Eliot, > > On Thu, Jan 13, 2022 at 3:54 PM Eliot Kimber > wrote: > >> I’m using the BaseX GUI in a very informal way where I create new >> databases as

Re: [basex-talk] Configuration Option for Files to Parse in Create Database Dialog?

2022-01-13 Thread Bridger Dyson-Smith
Hi Eliot, On Thu, Jan 13, 2022 at 3:54 PM Eliot Kimber wrote: > I’m using the BaseX GUI in a very informal way where I create new > databases as needed to do ad-hoc queries over content that comes from > various git repos. > > > > I’m trying to setup my local configuration settings to be what I

Re: [basex-talk] Help dealing with slow API responses

2021-11-24 Thread Bridger Dyson-Smith
Hi Christian, As always, thanks for your time and help. On Wed, Nov 24, 2021 at 12:18 PM Christian Grün wrote: > Hi Bridger, > > > I'm pulling data back from an OAI-PMH endpoint that is slow; i.e. > response times are ~1/minute. > > I’ve tried the example you have attached (thanks). It’s seems

[basex-talk] Help dealing with slow API responses

2021-11-22 Thread Bridger Dyson-Smith
Hi all - I have the sneaking suspicion that the answer to this plea for help will be something like, "Use RESTXQ!!" or something similar, but let me describe the problem: I'm pulling data back from an OAI-PMH endpoint that is slow; i.e. response times are ~1/minute. Embarrassingly, I think I've

Re: [basex-talk] Passing options to saxon through xslt:transform

2021-11-08 Thread Bridger Dyson-Smith
Graydon, There's almost certainly a much nicer way to do this - eg the examples you've provided - but could another option be to build out a `proc:execute()` call? It wouldn't be nearly as elegant, and may cause additional processing in the output, but that way you would have full access to

Re: [basex-talk] basex test test.xqm => XPDY002c

2021-10-22 Thread Bridger Dyson-Smith
helpful. Best, Bridger On Fri, Oct 22, 2021 at 4:00 PM Bridger Dyson-Smith wrote: > Hi Jonathan - > > I needed to launch the command line basex; e.g. > bridger@ditrestle|~/src/basex-src on master! > ± basex > BaseX 9.6.2 [Standalone] > Try 'help' to get more information. &g

Re: [basex-talk] basex test test.xqm => XPDY002c

2021-10-22 Thread Bridger Dyson-Smith
Hi Jonathan - I needed to launch the command line basex; e.g. bridger@ditrestle|~/src/basex-src on master! ± basex BaseX 9.6.2 [Standalone] Try 'help' to get more information. > TEST basex-core/src/test/resources/test.xqm Empty sequence.

Re: [basex-talk] json serialization : how to ignore new lines and tabs ?

2021-10-21 Thread Bridger Dyson-Smith
> Christian > > [1] https://github.com/BaseXdb/basex/issues/2044 > > > On Thu, Oct 21, 2021 at 4:49 PM Bridger Dyson-Smith > wrote: > >> Hi Maud - >> with apologies, I thought I had added a namespace value to my example (I >> clearly did not). >>

Re: [basex-talk] json serialization : how to ignore new lines and tabs ?

2021-10-21 Thread Bridger Dyson-Smith
Hi Maud - with apologies, I thought I had added a namespace value to my example (I clearly did not). Hi Christian - I'm a bit confused and I wonder if this is just the typical user/operator error on my part, or if this is a bug? The BaseX documentation for the JSON module[1] states that "...

Re: [basex-talk] json serialization : how to ignore new lines and tabs ?

2021-10-20 Thread Bridger Dyson-Smith
Hi Maud - Adding `json:serialize($docs, map { "format": "jsonml", "indent": false() })` seems to drop all of the whitespace and namespaces, too. I'm using v9.6.2 if that helps. It looks like `"indent": true()` is a default for serialization. ``` declare variable $input := Bre

Re: [basex-talk] Importing TSV files with a command file

2021-10-12 Thread Bridger Dyson-Smith
$TSV-NAME) I've attached my two sample TSV files if that helps. On Tue, Oct 12, 2021 at 11:45 AM Jonathan Robie wrote: > Thanks! I was getting hung up trying to do this in a command. > > Jonathan > > On Tue, Oct 12, 2021 at 11:44 AM Jonathan Robie > wrote: > >> &

Re: [basex-talk] Importing TSV files with a command file

2021-10-12 Thread Bridger Dyson-Smith
Hi Jonathan, for $T in file:list($path-to-your-files) let $TSV := csv:parse($T, map { 'separator': 'tab', 'header': true(), 'format': 'direct' }) return db:add($your-db, $TSV) maybe? I'm probably getting something wrong, semantics-wise, w/ `db:add()`, but maybe it's close to get started? Best,

Re: [basex-talk] Problems installing EXPath

2021-09-03 Thread Bridger Dyson-Smith
ing https fixed the problem - thanks! > > Jonathan > > On Fri, Sep 3, 2021 at 1:58 PM Bridger Dyson-Smith > wrote: > >> Hi Jonathan - >> >> I'm curious: which distribution of BaseX are you using? The main >> BaseX.zip has the functx library already in ${bas

Re: [basex-talk] Problems installing EXPath

2021-09-03 Thread Bridger Dyson-Smith
Hi Jonathan - I'm curious: which distribution of BaseX are you using? The main BaseX.zip has the functx library already in ${basex}/repo. I did though do a quick test (below) and keeping https in the URL made a difference. I'm not quite sure why. Hope that's helpful. Best, Bridger ``` > REPO

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

2021-08-19 Thread Bridger Dyson-Smith
Dear Christian and everyone else on the BaseX team: As always, thank you all so much for your time and effort! Looking forward to 9.6! Best, Bridger On Thu, Aug 19, 2021 at 8:22 AM Christian Grün wrote: > Dear all, > > We provide you with a new and fresh version of BaseX, our open source > XML

[basex-talk] Copy/modify, Update, or file:append - help appreciated

2021-07-01 Thread Bridger Dyson-Smith
Hi all - I'm trying to keep track of some HTTP POST results in a file, something akin to the following: file:write-text( "/tmp/bridger-test.csv", "book" || "," || "title" || "," || "sip" || out:nl() ), for $i in 1 to 20 (: some http:send-request stuff :) return( prof:sleep(250), if

Re: [basex-talk] BaseX with Apache

2021-05-27 Thread Bridger Dyson-Smith
Hi Tim - What about modifying the BaseX web.xml in $basex/webapp/WEB-INF? That was you'd be disabling in Jetty instead of Apache. To be honest I have no idea if this will work, but: default org.eclipse.jetty.servlet.DefaultServlet dirAllowed false or some variation thereof?

Re: [basex-talk] A question about the arrow operator and predicates

2021-03-31 Thread Bridger Dyson-Smith
Christian - As always, thank you so much! On Wed, Mar 31, 2021 at 10:35 AM Christian Grün wrote: > Dear Bridger, > > > I was wondering if anyone would have an insight for me as to why the > following expression is wrong: > > > > for $s in ("/a/b/c", "/1/2/3") > > let $t := $s =>

[basex-talk] A question about the arrow operator and predicates

2021-03-31 Thread Bridger Dyson-Smith
Hi all - I was wondering if anyone would have an insight for me as to why the following expression is wrong: ``` for $s in ("/a/b/c", "/1/2/3") let $t := $s => tokenize("/")[last()] return $t ``` This is because of the predicate filter, but I'm not clear on *why* it's because of that :) Thanks

[basex-talk] Call for install/setup stories from users

2021-03-17 Thread Bridger Dyson-Smith
Hi all - Per the recent thread about installing, I was hoping to convince some of you to share your experiences installing and running BaseX. Whether you use Mac OS, Windows, a Linux, or something else: how are you installing and running BaseX? I'm asking as there could be some possible

Re: [basex-talk] Preferences do not open, Exception in thread AWT-EventQueue-0

2021-03-17 Thread Bridger Dyson-Smith
atypical as an > IT profile. The future will probably bring hard choices and hard work > for me because of it. > > That resonates! Good luck (and welcome to BaseX) > > Br, > > Joris > > Bridger > On Wed, 2021-03-17 at 13:47 -0400, Bridger Dyson-Smith wrote: > > Joris - > > &

Re: [basex-talk] Preferences do not open, Exception in thread AWT-EventQueue-0

2021-03-17 Thread Bridger Dyson-Smith
ecent .jar to test and it works well but the what > about the server part etc. > > If you grab the ZIP archive, everything you'd want is included (http server, GUI, client/server). > Br > > Joris > > Best, Bridger > > > > > > ---- Oorspronkelijk bericht -

Re: [basex-talk] Preferences do not open, Exception in thread AWT-EventQueue-0

2021-03-17 Thread Bridger Dyson-Smith
Hi Joris, On Wed, Mar 17, 2021 at 5:39 AM commandline-be wrote: > ok, thanks. > > > If i can i will try and figure out an upgrade approach or see if i can run > a backport which does have the more recent version available. > > I've found that something like this following works very well for me

[basex-talk] Dr. Mike Kay's proposals for XPath and XQuery 4.0

2020-11-14 Thread Bridger Dyson-Smith
Hi all - I imagine that Dr. Kay has posted about this in multiple places, but I don't know if he's posting on the BaseX list much. He shared the following links with his thoughts on XPath, XSLT, XQuery, and F version 4.0 [1] - I don't know how many implementers we have on this list, outside of

Re: [basex-talk] BaseX GUI and remote editing

2020-11-13 Thread Bridger Dyson-Smith
Hi Marco, I'm sure others will have better thoughts on this, so please take this with a grain of salt. Jetbrains IntelliJ (and other IDEs) provide Remote Deployment options, and I would think Eclipse would offer something similar. I.e. write locally, and then push changes to the remote server

Re: [basex-talk] Help with a function to return paths

2020-10-16 Thread Bridger Dyson-Smith
; declare function local:pathbuild($result as xs:string,$this as node()){ >> concat( >> $result, "/" , name($this), >> $this/@*! concat("[@" , name(.) , "='" , data(.), >> "']")=>string-join('') >> ) &

[basex-talk] Help with a function to return paths

2020-10-16 Thread Bridger Dyson-Smith
Hi all - I hope you don't mind a question about serializing distinct XPaths. I'm trying to generate some reports for documentation and the available built-in and library functions[1] aren't quite what I need. The output I'm after is: test/aaa/bbb[@type="foo"]

Re: [basex-talk] Dpi scaling problem - Ubuntu 20.04

2020-10-15 Thread Bridger Dyson-Smith
go > > Best, Bridger > Le jeu. 15 oct. 2020 à 19:32, Bridger Dyson-Smith > a écrit : > >> Hi Silamphre, >> >> I'm not sure if this will help or not, but editing the `basexgui` script >> to include `-Dsun.java2d.uiScale=1.25` might help[1]? I confess that I &g

Re: [basex-talk] Dpi scaling problem - Ubuntu 20.04

2020-10-15 Thread Bridger Dyson-Smith
Hi Silamphre, I'm not sure if this will help or not, but editing the `basexgui` script to include `-Dsun.java2d.uiScale=1.25` might help[1]? I confess that I don't have UI scaling enabled on my unix-like system, or maybe you've already tried that approach. Hope that helps! Best, Bridger [1]

Re: [basex-talk] XPTY0004 error when calling http:send-request inside of a local function

2020-10-11 Thread Bridger Dyson-Smith
Christian, As always, thank you for your help! I had tried the following ```xquery declare function local:grab2( $url as xs:string, $path as xs:string, $fname as xs:string ) as document-node() { let $req := http:send-request(, $url) return if (head($req)/@status = "200") then

Re: [basex-talk] XPTY0004 error when calling http:send-request inside of a local function

2020-10-11 Thread Bridger Dyson-Smith
And naturally I forgot to mention... On Sun, Oct 11, 2020 at 3:49 PM Bridger Dyson-Smith wrote: > Hi all - > > I'm accustomed to writing something like the following: > > ```xquery > > declare function local:grab( > $url as xs:string, > $path as xs:stri

[basex-talk] XPTY0004 error when calling http:send-request inside of a local function

2020-10-11 Thread Bridger Dyson-Smith
Hi all - I'm accustomed to writing something like the following: ```xquery declare function local:grab( $url as xs:string, $path as xs:string, $fname as xs:string ) as document-node() { let $req := http:send-request(, $url) return if (head($req)/@status = "200") then

Re: [basex-talk] improving query performance

2020-08-21 Thread Bridger Dyson-Smith
Hi Bill, I won't claim to be any kind of query expert, but there are some things you can try to experiment with query speeds: On Fri, Aug 21, 2020 at 3:52 PM Bill Osmond wrote: > Hi all, > I'm attempting to query a fairly large database, with 136,938 resources > and a size of 12,257,686,099.

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

2020-07-14 Thread Bridger Dyson-Smith
Christian and the rest of the BaseX team - As always, thanks for all of your efforts - this release looks very exciting! Best, Bridger On Tue, Jul 14, 2020 at 7:40 AM Christian Grün wrote: > We are glad to give you Version 9.4 of BaseX, our XML framework, > database system and XQuery 3.1

Re: [basex-talk] [FULLTEXT] How to search for underscore seperated words ?

2020-06-05 Thread Bridger Dyson-Smith
Fabrice - my apologies. I see now that my suggestion was very naive. I hope I didn't waste your time. Sorry for the noise. Best, Bridger On Fri, Jun 5, 2020 at 10:23 AM Bridger Dyson-Smith wrote: > Hi Fabrice - > > Maybe something like > ft:search("the-database", &quo

Re: [basex-talk] [FULLTEXT] How to search for underscore seperated words ?

2020-06-05 Thread Bridger Dyson-Smith
Hi Fabrice - Maybe something like ft:search("the-database", "YET_ANOTHER_SILLY_KEYWORD", map { "mode": "phrase", "ordered": true() })? I confess that I don't know the full text module behavior at all, but I coincidentally had it open... Anyway, I hope that's helpful. Best, Bridger On Fri, Jun

Re: [basex-talk] Help composing an http:request with POST

2020-05-20 Thread Bridger Dyson-Smith
?dsLocation=/path/to/my/ image.tif', file:read-binary('/path/to/my/image.tif') ) is working great. Have a lovely day and/or night. Best, Bridger On Wed, May 20, 2020 at 5:40 PM Bridger Dyson-Smith wrote: > Hi all - > > I'm trying to use BaseX to POST an image to a digital asset management

[basex-talk] Help composing an http:request with POST

2020-05-20 Thread Bridger Dyson-Smith
Hi all - I'm trying to use BaseX to POST an image to a digital asset management system (i.e. I'm not using RESTXQ, etc, just using BaseX to compose and send the request). The request: http:send-request( , '

Re: [basex-talk] BaseX 9.3.3: Query optimizations, Bug Fixes

2020-05-15 Thread Bridger Dyson-Smith
Christian, et al, As always thank you, and everyone on the BaseX team, for all of your efforts and hard work! Best, Bridger On Fri, May 15, 2020 at 5:35 AM Christian Grün wrote: > Dear users and supporters of BaseX, > > We have just released a new maintenance version of our XML framework, >

Re: [basex-talk] Unconfirmed bug: NPE using cached transformer

2020-04-25 Thread Bridger Dyson-Smith
Hi Andrew and list, I ran into a similar error with 9.3.3-beta this last week but haven't had a chance to work up a SSCCE. Your report makes me think I need to do so! Best, Bridger On Sat, Apr 25, 2020, 11:19 AM Andrew Sales wrote: > Hello, > > I'd like to run a transform on multiple

Re: [basex-talk] How to apply array:for-each on an array of arrays?

2020-03-30 Thread Bridger Dyson-Smith
Hi Ben - I'm on mobile, please excuse any typos. Maybe `return array { $idf }` is closer? Untested, apologies! Best, Bridger On Mon, Mar 30, 2020, 5:16 PM Ben Engbers wrote: > Hi, > > In textmining, the 'idf' or inverse document frequency is defined as > idf(term)=ln(ndocuments / ndocuments

Re: [basex-talk] BaseX 9.3.2: Performance Tweaks, Bug Fixes

2020-03-10 Thread Bridger Dyson-Smith
Christian - echoing Marco, indeed what happy news! Thank you and the rest of the BaseX team for all of your efforts! Best, Bridger On Tue, Mar 10, 2020 at 9:19 AM Christian Grün wrote: > Dear all, > > We are glad to provide you with a new BaseX 9.3.2 maintenance release: > >

Re: [basex-talk] increment a variable only when a conditional is true?

2020-02-19 Thread Bridger Dyson-Smith
Hi Thufir - Maybe something like this will help? ``` xquery version "3.1"; let $y := 99 for $x in (1 to 9) count $iterator let $decrease := $y - $iterator return( comment { "iterator = " || $iterator }, comment { "decrease = " || $decrease }, ) ``` I'm basically ripping Walmsley's

Re: [basex-talk] Flat XML fods database

2020-02-14 Thread Bridger Dyson-Smith
Hi Thufir, You might find Priscilla Walmsley's Functx library[1] section on namespaces helpful (or something else interesting in the functions listed there). Michael - that's a very nice FLOWR! Thank you for sharing. Best, Bridger [1] http://www.xqueryfunctions.com/xq/c0021.html On Fri, Feb

Re: [basex-talk] filtering NaN from a sequence

2020-02-02 Thread Bridger Dyson-Smith
Hi Graydon, I'm mobile at the moment, so please excuse the abbreviated reply. Would functx:is-a-number() [#1] work in your where clause? I'm completely unable to test... apologies. Best, Bridger #1 http://www.xqueryfunctions.com/xq/functx_is-a-number.html On Sun, Feb 2, 2020, 7:22 PM Graydon

Re: [basex-talk] Bug merging maps with option duplicates:combine?

2020-01-09 Thread Bridger Dyson-Smith
Hi all, While I don't have any answer to this question, I can corroborate Johannes' finding. Also, Johannes, did you find a magic string? I tried some longer keys and they seem to work :) Best, Bridger On Thu, Jan 9, 2020 at 11:51 AM Johannes Echterhoff < echterh...@interactive-instruments.de>

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

2019-11-29 Thread Bridger Dyson-Smith
Christian, and the BaseX Team - Congratulations on the new release! Thank you for all of your time and efforts. Best, Bridger On Fri, Nov 29, 2019 at 11:14 AM Christian Grün wrote: > Hello to our loyal readers of our list, > > We are glad to announce version 9.3 of BaseX, our XML framework, >

Re: [basex-talk] http:request parsing question

2019-10-29 Thread Bridger Dyson-Smith
Hi Christian, as usual, you're very helpful! One more example of how it can really help to pay attention to those function signatures -- I wasn't thinking about the http:response as a sequence, so thank you very much for that insight! Best, Bridger On Mon, Oct 28, 2019 at 10:13 PM Christian

Re: [basex-talk] Understanding the path index

2019-10-28 Thread Bridger Dyson-Smith
r the different entities as mentioned > above. So far, I did not have bigger problems with the namespaces, > maybe because I am not doing anything specific with them and mostly > keep them they way they are. > > Best wishes, > Julia > > Kind regards, Bridger > On Fri, 2019-

Re: [basex-talk] http:request parsing question

2019-10-26 Thread Bridger Dyson-Smith
Hi all - On Tue, Oct 22, 2019 at 11:13 PM Bridger Dyson-Smith wrote: > Hi Liam! > > On Tue, Oct 22, 2019 at 7:38 PM Liam R. E. Quin > wrote: > >> On Tue, 2019-10-22 at 19:32 -0400, Bridger Dyson-Smith wrote: >> > >> > http://export.arxiv.o

Re: [basex-talk] Understanding the path index

2019-10-25 Thread Bridger Dyson-Smith
stripping namespaces, etc, things seem to run out of memory or stall. Would you be willing to share some details about your data? Thanks very much. Best, Bridger On Fri, Oct 25, 2019 at 3:41 PM Bridger Dyson-Smith wrote: > Hi Julia - > > Preface: let me be clear when I say that I've wonde

Re: [basex-talk] Understanding the path index

2019-10-25 Thread Bridger Dyson-Smith
Hi Julia - Preface: let me be clear when I say that I've wondered about some of this myself, so I don't think I have an answer for you. That being said, I wonder if this is a grouping/data modeling problem: i.e. you have 5,000 aggregations refer to 1 of 3 web resources vs ~7,000 aggregations each

Re: [basex-talk] http:request parsing question

2019-10-22 Thread Bridger Dyson-Smith
Hi Liam! On Tue, Oct 22, 2019 at 7:38 PM Liam R. E. Quin wrote: > On Tue, 2019-10-22 at 19:32 -0400, Bridger Dyson-Smith wrote: > > > > http://export.arxiv.org/oai2?verb=Identify'/>)//@status/data() > > > > returns '200', but trying > > > > http:send-

[basex-talk] http:request parsing question

2019-10-22 Thread Bridger Dyson-Smith
Hi all - I was hoping that someone on the list could help with my thinking about parsing the http:response values from a request; I've tried the following, but I'm not thinking about this correctly. declare namespace oai = "http://www.openarchives.org/OAI/2.0/;; declare namespace h =

Re: [basex-talk] simplest possible FLOWR specifying a database

2019-10-12 Thread Bridger Dyson-Smith
Hi thufir, The specification might be helpful here [1,2], but essentially it is the thing being processed, given as a sort of global scope. HTH! Best, Bridger [1] https://www.w3.org/TR/xquery-31/#id-context-item-expression [2] https://www.w3.org/TR/xquery-31/#dt-context-item On Sat, Oct 12,

Re: [basex-talk] binding-types?

2019-09-12 Thread Bridger Dyson-Smith
Hi Ben - Does something like: ``` declare variable $name external; for $i as xs:integer in 1 to 5 return element { $name } { $i } ``` work any differently? Best, Bridger On Thu, Sep 12, 2019 at 10:49 AM ben.engb...@be-logical.nl < ben.engb...@be-logical.nl> wrote: > xs:string is neither

Re: [basex-talk] Passing through entities unchanged when serializing

2019-09-09 Thread Bridger Dyson-Smith
Ha ha, awesome Liam! Thank you for clarifying! Best, Bridger On Mon, Sep 9, 2019 at 9:37 PM Liam R. E. Quin wrote: > On Tue, 2019-09-10 at 02:59 +0200, Andreas Mixich wrote: > > I wonder why the serialization behaves that way. It does not make > > sense to > > me. If a user has the need to

Re: [basex-talk] Passing through entities unchanged when serializing

2019-09-09 Thread Bridger Dyson-Smith
ow do I pass through those entities unchanged? >> >> One way is to use a character map, as Bridger Dyson-Smith described. >> >> Sometimes another way can be to have a version of the DTD in which the >> replacement text of the entity marks the presence of the entity,

Re: [basex-talk] Passing through entities unchanged when serializing

2019-09-09 Thread Bridger Dyson-Smith
Hi Andreas - Have you tried using different serialization options? I.e., serialize.xq: ``` declare option output:method "xml"; declare option output:parameter-document "map.xml"; declare variable $input := "Lorem ipsum, dolor sit amet."; serialize($input) ``` map.xml: ```

Re: [basex-talk] Processing instruction constructors: problem with output

2019-08-22 Thread Bridger Dyson-Smith
Hi Tim - A quick test and this is working correctly(?) for me; 1. I cloned Alain's repo to `.../webapp/static/` 2. I copy-pasta'd your example into `.../webapp/test.xqm` 3. After starting the BaseX HTTP server, I hit `localhost:8984` and `localhost:8984/test` and had good responses from both; i.e.

Re: [basex-talk] XQuery: Subsequence of a sequence

2019-07-02 Thread Bridger Dyson-Smith
Hi Jordan, Maybe the fn:head(), fn:tail(), and other functions for sequence operations would help[1]? HTH! Best, Bridger [1] https://www.w3.org/TR/xpath-functions-31/#sequence-functions On Tue, Jul 2, 2019, 6:27 PM Jordan Castillo wrote: > BaseX team, > > Sorry for the long question but I

[basex-talk] Query Optimization Question

2019-06-24 Thread Bridger Dyson-Smith
Hi all - An interesting XQuery question came up on reddit[1] over the weekend, and I'm curious about a couple of aspects of the problem. To recreate, the sample data is at timecenters[2] in the employeeTemporalDataset.zip download (specifically, the `departments.xml` and the three compressed

Re: [basex-talk] Extracting function signatures from documentation

2019-05-16 Thread Bridger Dyson-Smith
Hi Andreas - (someone on the BaseX team will surely correct where I get this wrong, so...) as far as I know, many/most/all of the BaseX builtin modules are written in Java, not XQuery, so I don't know that there are modules to inspect, so to speak. However, late last year there was some

Re: [basex-talk] BaseX 9.2: The Spring Edition

2019-04-16 Thread Bridger Dyson-Smith
Christian and the rest of the BaseX team, Many thanks for the Spring Update -- I can't wait to have fun with this release! Best, Bridger On Tue, Apr 16, 2019 at 10:10 AM Christian Grün wrote: > Dear all, > > We are more than pleased to announce version 9.2 of BaseX, our XML > framework,

Re: [basex-talk] Compare List Membership in XQuery

2019-03-26 Thread Bridger Dyson-Smith
functx:is-value-in-sequence($title/@target, $biblStruct)) > and not(functx:is-value-in-sequence($title/@target, $bibl)) > return $title > > It is also pretty speedy as well. > > All the best, > Chris > > On Tue, Mar 26, 2019 at 12:47 PM Bridger Dyson-Smith > wrote

  1   2   >