Re: [basex-talk] Windows, WSL, and BaseX
Hi Jonathan, While I was able to launch the BaseX GUI (bin/basexgui) from WSL, the GUI experience is better when launching bin\basexgui.bat from cmd.exe, that is, from the Windwows shell. As to basexhttp, I usually start it from WSL (in the same BaseX bin directory, using the same databases). I installed by unzipping the zip distribution somewhere below my Windows user directory (mounted as /mnt/c/Users/gerrit/ in WSL, I made a symlink ~/w that points to /mnt/c/Users/gerrit). I don’t remember whether I unzipped it on WSL or in Windows Explorer. So yes, do use a single installation directory that is available both in Windows and in WSL. But maybe don’t use an installer; rather install it via unzipping the Zip release. Gerrit On 22.03.2022 23:29, Jonathan Robie wrote: I installed Windows System for Linux and installed BaseX on it, and also installed BaseX on Windows. Unfortunately, the two do not share databases. Is there a way to make them do so? Or a way to run basexgui from WSL? Or a better question that I should ask if I want to work productively on BaseX under Windows and am more accustomed to developing under Linux? Jonathan
[basex-talk] Local deployment of a database
We are creating server instances, but we also have users who want to work locally. Ideally, I would like to be able to create an installer that would add BaseX and a set of databases to a user's system. How hard would it be to do that? Jonathan
[basex-talk] Windows, WSL, and BaseX
I installed Windows System for Linux and installed BaseX on it, and also installed BaseX on Windows. Unfortunately, the two do not share databases. Is there a way to make them do so? Or a way to run basexgui from WSL? Or a better question that I should ask if I want to work productively on BaseX under Windows and am more accustomed to developing under Linux? Jonathan
Re: [basex-talk] Anticipating more complex data to follow
Thanks! Appreciate the quick response! Patrick On 3/22/22 17:08, Christian Grün wrote: I would write it as follows: let $string := '{ "parties": [ { "id": 0, "role": "CN", "name": "name1" }, { "id": 1, "role": "SH", "name": "name2" } ] }' let $data := json:parse($string) return $data/json/parties[_[name = 'name1'][role = 'CN']] Martin provided the solution for the XQuery map/array format: let $data := json:parse($string, map { 'format': 'xquery'}) return $data?parties[exists(?*[?name = 'name1'][?role = 'CN'])] On Tue, Mar 22, 2022 at 9:48 PM Patrick Durusau wrote: I'm anticipating incorporation of JSON sources with anonymous nodes and if they all appear with the element name _, how do I distinguish one from another, structurally speaking? MarkLogic offers some specific workarounds but those are unique (I suspect) to MarkLogic. The MarkLogic post has an example of the problem I anticipate hitting, especially in biblical studies. Thanks! Patrick -- Patrick Durusau patr...@durusau.net Technical Advisory Board, OASIS (TAB) Editor, OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300 Co-Editor, ISO/IEC 13250-1, 13250-5 (Topic Maps) Another Word For It (blog): http://tm.durusau.net Homepage: http://www.durusau.net Twitter: patrickDurusau OpenPGP_signature Description: OpenPGP digital signature
Re: [basex-talk] Anticipating more complex data to follow
I would write it as follows: let $string := '{ "parties": [ { "id": 0, "role": "CN", "name": "name1" }, { "id": 1, "role": "SH", "name": "name2" } ] }' let $data := json:parse($string) return $data/json/parties[_[name = 'name1'][role = 'CN']] Martin provided the solution for the XQuery map/array format: let $data := json:parse($string, map { 'format': 'xquery'}) return $data?parties[exists(?*[?name = 'name1'][?role = 'CN'])] On Tue, Mar 22, 2022 at 9:48 PM Patrick Durusau wrote: > > I'm anticipating incorporation of JSON sources with anonymous nodes and > if they all appear with the element name _, how do I distinguish one > from another, structurally speaking? > > MarkLogic offers some specific workarounds but those are unique (I > suspect) to MarkLogic. > > The MarkLogic post has an example of the problem I anticipate hitting, > especially in biblical studies. > > Thanks! > Patrick
Re: [basex-talk] Anticipating more complex data to follow
On 22.03.2022 21:48, Patrick Durusau wrote: I'm anticipating incorporation of JSON sources with anonymous nodes and if they all appear with the element name _, how do I distinguish one from another, structurally speaking? Are you not able to use XPath/XQuery 3.1 map/array lookup operators directly on your JSON e.g. ?parties[exists(?*[?name = 'name1' and ?role = 'CN'])]
Re: [basex-talk] Anticipating more complex data to follow
I'm anticipating incorporation of JSON sources with anonymous nodes and if they all appear with the element name _, how do I distinguish one from another, structurally speaking? MarkLogic offers some specific workarounds but those are unique (I suspect) to MarkLogic. The MarkLogic post has an example of the problem I anticipate hitting, especially in biblical studies. Thanks! Patrick On 3/22/22 16:32, Christian Grün wrote: Hi Patrick, Which problem would you like to solve exactly? Maybe I should read the MarkLogic article in more detail, though. Best, Christian On Tue, Mar 22, 2022 at 12:15 AM Patrick Durusau wrote: Greetings! While working on some large but fairly simple data, I encountered BaseX using the underscore "_" as an element name when importing JSON. Not leaving well enough alone for present purposes, I encountered this post about anonymous objects in MarkLogic and how they resolve the problem. https://developer.marklogic.com/recipe/query-array-anonymous-objects/ Is there already a recommended solution for this problem? Or should I wait until I actually encounter it and ask again? Hope everyone is at the start of a great week! Patrick -- Patrick Durusau patr...@durusau.net Technical Advisory Board, OASIS (TAB) Editor, OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300 Co-Editor, ISO/IEC 13250-1, 13250-5 (Topic Maps) Another Word For It (blog): http://tm.durusau.net Homepage: http://www.durusau.net Twitter: patrickDurusau -- Patrick Durusau patr...@durusau.net Technical Advisory Board, OASIS (TAB) Editor, OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300 Co-Editor, ISO/IEC 13250-1, 13250-5 (Topic Maps) Another Word For It (blog): http://tm.durusau.net Homepage: http://www.durusau.net Twitter: patrickDurusau OpenPGP_signature Description: OpenPGP digital signature
Re: [basex-talk] Anticipating more complex data to follow
Hi Patrick, Which problem would you like to solve exactly? Maybe I should read the MarkLogic article in more detail, though. Best, Christian On Tue, Mar 22, 2022 at 12:15 AM Patrick Durusau wrote: > > Greetings! > > While working on some large but fairly simple data, I encountered BaseX > using the underscore "_" as an element name when importing JSON. > > Not leaving well enough alone for present purposes, I encountered this > post about anonymous objects in MarkLogic and how they resolve the problem. > > https://developer.marklogic.com/recipe/query-array-anonymous-objects/ > > Is there already a recommended solution for this problem? > > Or should I wait until I actually encounter it and ask again? > > Hope everyone is at the start of a great week! > > Patrick > > -- > Patrick Durusau > patr...@durusau.net > Technical Advisory Board, OASIS (TAB) > Editor, OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300 > Co-Editor, ISO/IEC 13250-1, 13250-5 (Topic Maps) > > Another Word For It (blog): http://tm.durusau.net > Homepage: http://www.durusau.net > Twitter: patrickDurusau >
Re: [basex-talk] OpenJDK vs. Oracle JDK versus ...
Thank you very much, Christian, Abrazo. Sebastian. On Tue, 22 Mar 2022 at 17:30, Christian Grün wrote: > > And which one do you prefer for Linux? > > That depends on the Linux distribution: Most of them provide OpenJDK > builds via the package managers. If no builds are available, the > Adoptium builds can be used as well. > > > > On Tue, 22 Mar 2022 at 17:04, Christian Grün > wrote: > >> > >> Hi Jonathan, > >> > >> The Adoptium OpenJDK distributions are currently my favorite ones for > Windows [1]. > >> > >> Hope this helps, > >> Christian > >> > >> [1] https://adoptium.net/ > >> > >> > >> > >> > >> Jonathan Robie schrieb am Di., 22. März > 2022, 20:22: > >>> > >>> I am setting up a Windows 11 box. > >>> > >>> Which Java is best for BaseX? > >>> > >>> Jonathan >
Re: [basex-talk] OpenJDK vs. Oracle JDK versus ...
> And which one do you prefer for Linux? That depends on the Linux distribution: Most of them provide OpenJDK builds via the package managers. If no builds are available, the Adoptium builds can be used as well. > On Tue, 22 Mar 2022 at 17:04, Christian Grün > wrote: >> >> Hi Jonathan, >> >> The Adoptium OpenJDK distributions are currently my favorite ones for >> Windows [1]. >> >> Hope this helps, >> Christian >> >> [1] https://adoptium.net/ >> >> >> >> >> Jonathan Robie schrieb am Di., 22. März 2022, >> 20:22: >>> >>> I am setting up a Windows 11 box. >>> >>> Which Java is best for BaseX? >>> >>> Jonathan
Re: [basex-talk] OpenJDK vs. Oracle JDK versus ...
Hi Christian, And which one do you prefer for Linux? Best regards, Sebastian. On Tue, 22 Mar 2022 at 17:04, Christian Grün wrote: > Hi Jonathan, > > The Adoptium OpenJDK distributions are currently my favorite ones for > Windows [1]. > > Hope this helps, > Christian > > [1] https://adoptium.net/ > > > > > Jonathan Robie schrieb am Di., 22. März 2022, > 20:22: > >> I am setting up a Windows 11 box. >> >> Which Java is best for BaseX? >> >> Jonathan >> >
Re: [basex-talk] OpenJDK vs. Oracle JDK versus ...
Hi Jonathan, The Adoptium OpenJDK distributions are currently my favorite ones for Windows [1]. Hope this helps, Christian [1] https://adoptium.net/ Jonathan Robie schrieb am Di., 22. März 2022, 20:22: > I am setting up a Windows 11 box. > > Which Java is best for BaseX? > > Jonathan >
Re: [basex-talk] OpenJDK vs. Oracle JDK versus ...
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 ___). But others will almost certainly know better :) HTH Best, Bridger On Tue, Mar 22, 2022 at 3:22 PM Jonathan Robie wrote: > I am setting up a Windows 11 box. > > Which Java is best for BaseX? > > Jonathan >
Re: [basex-talk] OpenJDK vs. Oracle JDK versus ...
Open Source likes OpenJDK :-) > On 22. Mar 2022, at 20:22, Jonathan Robie wrote: > > I am setting up a Windows 11 box. > > Which Java is best for BaseX? > > Jonathan
[basex-talk] OpenJDK vs. Oracle JDK versus ...
I am setting up a Windows 11 box. Which Java is best for BaseX? Jonathan
[basex-talk] GUI syntax highlighting
The syntax highlighting doesn't change when changing the look and feel in the BaseX GUI (9.6.2). I noticed this also happens in earlier versions. After changing to a dark background this results in blue on black, for instance. This happens with the JTattoo lib, but also GTK under a dark Linux theme. This occurs in Linux, all kinds of distro's, both Debian and Fedora based. Open JDK 11.0.6. In BaseX GUI 8.6.x all is fine, running under the same conditions. Regards, Marc