Hallo, ich bin dabei BaseX für unser aktuelles Projekt zu evaluieren. Bis jetzt sieht alles danach aus als ob BaseX genau das ist wonach wir gesucht haben. Hier meine Fragen dazu:
- Der Datenbankserver speichert seine XML-Daten optimiert in .basex Files. Gibt es die Möglichkeit den Server auch XML Files schreiben zu lassen (So wie er das mit raw Files tut), so dass ich alles auch ohne BaseX ansehen kann? Gibt es vielleicht einen automatischen Export?
- Der Webdav-Support kommt mir unstabil vor. Wenn ich XML-Dateien kopiere sind diese danach teilweise leer oder werden vom Server als RAW erkannt. Ich benutze einen Mac und den Finder als Client. Sind das eventuell bekannte Probleme oder muss ich bei mir suchen?
Vielen Dank Stefan Sechelmann
Dear Stefan,
please be aware that this is a english-speaking mailing list. As we want most of our users to benefit from all questions and answers I'll stick to english in my response (and aa your web page is in English as well I guess it is no obstacle for you).
Regarding your question about saving plain xml files: You can use the Export Command (see https://docs.basex.org/wiki/Commands#EXPORT) to export all your documents. You can e.g. use a cron job to export them regularly. There also is a writeback option (https://docs.basex.org/wiki/Options#WRITEBACK), which will update your original input nodes.
Secondly, regarding your question about empty WebDAV files: Please take a look at a recent discussion on the list (see https://mailman.uni-konstanz.de/pipermail/basex-talk/2013-September/005453.h...), which is about the same topic. Short answer: With another viewer it should work. Computing the size is quite difficult as we store the data in a special storage format to speed up querying. Seems like some viewers don't like it if the file size isn't correct.
Cheers, Dirk
On 25/10/13 17:27, Stefan Sechelmann wrote:
Hallo, ich bin dabei BaseX für unser aktuelles Projekt zu evaluieren. Bis jetzt sieht alles danach aus als ob BaseX genau das ist wonach wir gesucht haben. Hier meine Fragen dazu:
- Der Datenbankserver speichert seine XML-Daten optimiert in .basex
Files. Gibt es die Möglichkeit den Server auch XML Files schreiben zu lassen (So wie er das mit raw Files tut), so dass ich alles auch ohne BaseX ansehen kann? Gibt es vielleicht einen automatischen Export?
- Der Webdav-Support kommt mir unstabil vor. Wenn ich XML-Dateien
kopiere sind diese danach teilweise leer oder werden vom Server als RAW erkannt. Ich benutze einen Mac und den Finder als Client. Sind das eventuell bekannte Probleme oder muss ich bei mir suchen?
Vielen Dank Stefan Sechelmann
Hi Dirk, thank you for your fast response. I ran some tests with the WRITEBACK flag switched on. Here are my questions:
- My impression is that the WRITEBACK option only works for databases directly created from an initial input xml file (CREATE DB <name> <input.xml>). Is that true? My other tests involving ADD <file.xml> commands failed to write back inserted or deleted nodes.
- I checked out the latest git version and noticed that the WRITEBACK option is not read from the .basex file anymore. In version 7.7.2 that I used for the other tests it was read.
Best regards Stefan
Am 25.10.13 18:04, schrieb Dirk Kirsten:
Dear Stefan,
please be aware that this is a english-speaking mailing list. As we want most of our users to benefit from all questions and answers I'll stick to english in my response (and aa your web page is in English as well I guess it is no obstacle for you).
Regarding your question about saving plain xml files: You can use the Export Command (see https://docs.basex.org/wiki/Commands#EXPORT) to export all your documents. You can e.g. use a cron job to export them regularly. There also is a writeback option (https://docs.basex.org/wiki/Options#WRITEBACK), which will update your original input nodes.
Secondly, regarding your question about empty WebDAV files: Please take a look at a recent discussion on the list (see https://mailman.uni-konstanz.de/pipermail/basex-talk/2013-September/005453.h...), which is about the same topic. Short answer: With another viewer it should work. Computing the size is quite difficult as we store the data in a special storage format to speed up querying. Seems like some viewers don't like it if the file size isn't correct.
Cheers, Dirk
On 25/10/13 17:27, Stefan Sechelmann wrote:
Hallo, ich bin dabei BaseX für unser aktuelles Projekt zu evaluieren. Bis jetzt sieht alles danach aus als ob BaseX genau das ist wonach wir gesucht haben. Hier meine Fragen dazu:
- Der Datenbankserver speichert seine XML-Daten optimiert in .basex
Files. Gibt es die Möglichkeit den Server auch XML Files schreiben zu lassen (So wie er das mit raw Files tut), so dass ich alles auch ohne BaseX ansehen kann? Gibt es vielleicht einen automatischen Export?
- Der Webdav-Support kommt mir unstabil vor. Wenn ich XML-Dateien
kopiere sind diese danach teilweise leer oder werden vom Server als RAW erkannt. Ich benutze einen Mac und den Finder als Client. Sind das eventuell bekannte Probleme oder muss ich bei mir suchen?
Vielen Dank Stefan Sechelmann
Dear Stefan,
- My impression is that the WRITEBACK option only works for databases
directly created from an initial input xml file (CREATE DB <name> <input.xml>). Is that true? My other tests involving ADD <file.xml> commands failed to write back inserted or deleted nodes.
that’s correct: the WRITEBACK option is only recommendable if you are working with single files. Usually, the EXPORT command is the better choice for writing database contents back to files.
- I checked out the latest git version and noticed that the WRITEBACK
option is not read from the .basex file anymore. In version 7.7.2 that I used for the other tests it was read.
Thanks for the observation; I have committed a fix and uploaded a new snapshot, which should fix the problem [1].
Christian
[1] https://github.com/BaseXdb/basex/commit/2d618a18f4b2ad14cc17b15d155320a088f8...
Am 25.10.13 18:04, schrieb Dirk Kirsten:
Dear Stefan,
please be aware that this is a english-speaking mailing list. As we want most of our users to benefit from all questions and answers I'll stick to english in my response (and aa your web page is in English as well I guess it is no obstacle for you).
Regarding your question about saving plain xml files: You can use the Export Command (see https://docs.basex.org/wiki/Commands#EXPORT) to export all your documents. You can e.g. use a cron job to export them regularly. There also is a writeback option (https://docs.basex.org/wiki/Options#WRITEBACK), which will update your original input nodes.
Secondly, regarding your question about empty WebDAV files: Please take a look at a recent discussion on the list (see https://mailman.uni-konstanz.de/pipermail/basex-talk/2013-September/005453.h...), which is about the same topic. Short answer: With another viewer it should work. Computing the size is quite difficult as we store the data in a special storage format to speed up querying. Seems like some viewers don't like it if the file size isn't correct.
Cheers, Dirk
On 25/10/13 17:27, Stefan Sechelmann wrote:
Hallo, ich bin dabei BaseX für unser aktuelles Projekt zu evaluieren. Bis jetzt sieht alles danach aus als ob BaseX genau das ist wonach wir gesucht haben. Hier meine Fragen dazu:
- Der Datenbankserver speichert seine XML-Daten optimiert in .basex
Files. Gibt es die Möglichkeit den Server auch XML Files schreiben zu lassen (So wie er das mit raw Files tut), so dass ich alles auch ohne BaseX ansehen kann? Gibt es vielleicht einen automatischen Export?
- Der Webdav-Support kommt mir unstabil vor. Wenn ich XML-Dateien
kopiere sind diese danach teilweise leer oder werden vom Server als RAW erkannt. Ich benutze einen Mac und den Finder als Client. Sind das eventuell bekannte Probleme oder muss ich bei mir suchen?
Vielen Dank Stefan Sechelmann
-- Stefan Sechelmann DFG-Forschungszentrum Matheon Mathematik für Schlüsseltechnologien Technische Universität Berlin Sekretariat MA 8-3 Tel. 030/314 29 486 Straße des 17. Juni 136 Fax 030/314 79 282 10623 Berlin sechel@math.tu-berlin.de http://www.math.tu-berlin.de/~sechel
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de