Hello Niels,
adding to the technical background Alex already gave you I'd like to mention that if you download the zip file distribution from http://basex.org/products/download/all-downloads/ and simply unzip the file, it should be enough to simply start the bin/basexgui script (from your file commander via double click or using the command line).
I do not use debian-systems, but I am sure that Alex packages put the executables also somewhere. You might be able to find out where the files are located using the command whereis basex
You can than of course also create a menu entry or desktop thing or whatever you like to simplify your start process.
Cheers, Dirk
On 02/05/2015 10:38 AM, Alexander Holupirek wrote:
Hi Niels,
I did the packaging of BaseX for Debian [1]. From the Debian repositories [1] the package is pulled into Ubuntu.
Coming from a Unix perspective you might be expecting some 'configure; make; make install;' procedure. BaseX, however, is a Java application and thus is to be build using tools from the Java world. In a nutshell: BaseX is compiled using maven [3], [4:README.md]. Maven resolves dependencies and builds a .jar file. From the command-line the .jar file is given as input to the java(1) executable (the 'java application launcher'). So usually, basex is started by wrapper scripts [5] that finally invoke java(1) with the basex.jar.
Hope this helps as first insight. Feel free to ask for more. Alex
[1] https://github.com/BaseXdb/basex-dist/tree/master/linux/debian [2] https://packages.debian.org/search?keywords=basex [3] http://docs.basex.org/wiki/Maven [4] https://github.com/BaseXdb/basex [5] https://github.com/BaseXdb/basex-dist/tree/master/linux/debian/scripts
On 05.02.2015, at 08:31, Niels Grundtvig Nielsen communicator.ngn@gmail.com wrote:
Some years ago … running anything interesting on a Linux platform was a geekish activity involving compilation, dependency-hunting and many other time-consuming activities that put quite a few people off. In the interim, non-technical Linux users (like me!) have become used to packages that do all this black magic for them. So I was a bit disappointed when unzipping the Ubuntu installation files gave me nothing I could run and no clear instructions (at least at my level) for what I had to do with the contents of the archive.
Can someone, please, give me clear, simple instructions that cover: • what extra programs I may need to install before being able to compile/installe BaseX • what I have to do, step by step, to compile/installe BaseX Of course, an even better answer would be "run this install script" … :-}
Thanks in advance for help and advice.
On Wed, Feb 4, 2015 at 1:48 PM, Niels Grundtvig Nielsen communicator.ngn@gmail.com wrote: The next big test for me is, will BaseX install as easily on my Ubuntu box at home as it did on a Windows PC at work … hope so, because the interface is a much better match for the sort of things I want to do with an XML database than the/an other free option I tried.
On Tue, Feb 3, 2015 at 1:16 PM, Menashè Eliezer meliezer@ogs.trieste.it wrote: Hi Niels, Just confirming BaseX is very good. I've confronted its performance and support to the biggest open source alternative, which I won't mention its name here. With kind regards, Menashè
On 02/02/2015 02:48 PM, Bridger Dyson-Smith wrote:
Hi Niels,
BaseX has some very nice documentation in the wiki [1]. The WIkibooks XQuery document can be helpful[2] and Priscilla Walmsley's XQuery book is an absolutely fantastic reference.
Hope that's helpful. Cheers, Bridger
[1] http://docs.basex.org/wiki/XQuery [2] http://en.wikibooks.org/wiki/XQuery
On Mon, Feb 2, 2015 at 8:42 AM, Niels Grundtvig Nielsen communicator.ngn@gmail.com wrote: BaseX already looks/feels like a program I am going to enjoy using, even with the general challenge that I don't know enough about xQuery. I would welcome suggestions for anywhere to find a friendly introduction!
My first specific challenge is trying to under the syntax for replace. In the code, I've managed to retrieve a single xml document where <title> contains "35. Andan" … I made a copy/paste error, and in this document the value of title should be '35. Andantino' instead of '35. Andantino mesto'. My experiment is obviously incorrect, so I'd welcome tips on what's wrong with it.
//score[contains(title, '35. Andan')]//title replace value of (title) with '35. Andantino'
Thanks in advance!