Hi all,
I first created an Github Issue for this question, but that’s not the right play :)
So hereby my question:
I was wondering how versioning works in BaseX. So I have a XML file, I store another version of that same XML file and within BaseX there is some kind of versioning so I can retrieve both versions of the XML file.
I look into your mail archive, and I found the following mail: https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg07369.htm... https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg07369.html
Here it states that with using database metadata (Database Module, https://docs.basex.org/wiki/Database_Module https://docs.basex.org/wiki/Database_Module), you can achieve versioning. But I don't see anything about it in the documentation. So I was wondering if it is a thing in BaseX (versioning), and how it's accomplished 👍
Thanks!
Kind regards, Rob Tjalma
Hi Flurb,
This won’t work without some extra effort from your side; I am not sure what part of the https://docs.basex.org/wiki/Database_Module https://docs.basex.org/wiki/Database_Module you are referring to.
XQuery however is a full-fledged programming language, so you might implement a versioning mechanism on your own; however if your experience using XQuery is rather limited, that might not be the best starting project :-)
You might have a look at https://sirix.io https://sirix.io/ — it has been created by our friend Johannes, which might be more suitable :-)
Best Michael
Am 04.11.2020 um 14:13 schrieb Rob private@tjalma.com:
Hi all,
I first created an Github Issue for this question, but that’s not the right play :)
So hereby my question:
I was wondering how versioning works in BaseX. So I have a XML file, I store another version of that same XML file and within BaseX there is some kind of versioning so I can retrieve both versions of the XML file.
I look into your mail archive, and I found the following mail: https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg07369.htm... https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg07369.html
Here it states that with using database metadata (Database Module, https://docs.basex.org/wiki/Database_Module https://docs.basex.org/wiki/Database_Module), you can achieve versioning. But I don't see anything about it in the documentation. So I was wondering if it is a thing in BaseX (versioning), and how it's accomplished 👍
Thanks!
Kind regards, Rob Tjalma
Hi Rob,
Thanks for writing to the list. As promised, I’ll give you a quick reply, and I can basically confirm what Michael has replied to you already:
The existing modules of BaseX don’t provide a ready solution for versioning features, but it’s perfectly feasible to build a versioning solution with XQuery. If you use RESTXQ for storing and retrieving data, you could e.g. move the current version of documents to an archive database and replace it with the incoming new document.
The discussed Database Module will give you some insight into how to create new databases and add documents to existing databases. How much have you worked with XQuery so far?
All the best, Christian
On Wed, Nov 4, 2020 at 2:13 PM Rob private@tjalma.com wrote:
Hi all,
I first created an Github Issue for this question, but that’s not the right play :)
So hereby my question:
I was wondering how versioning works in BaseX. So I have a XML file, I store another version of that same XML file and within BaseX there is some kind of versioning so I can retrieve both versions of the XML file.
I look into your mail archive, and I found the following mail:
https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg07369.htm...
Here it states that with using database metadata (Database Module, https://docs.basex.org/wiki/Database_Module), you can achieve versioning. But I don't see anything about it in the documentation. So I was wondering if it is a thing in BaseX (versioning), and how it's accomplished 👍
Thanks!
Kind regards, Rob Tjalma
Hi Christian,
Thanks for answering the mail. I don’t have that much experience with xQuery, but what you’re basically saying is to setup another database for archiving right?
Kind regards, Rob
Op 6 nov. 2020, om 18:03 heeft Christian Grün christian.gruen@gmail.com het volgende geschreven:
Hi Rob,
Thanks for writing to the list. As promised, I’ll give you a quick reply, and I can basically confirm what Michael has replied to you already:
The existing modules of BaseX don’t provide a ready solution for versioning features, but it’s perfectly feasible to build a versioning solution with XQuery. If you use RESTXQ for storing and retrieving data, you could e.g. move the current version of documents to an archive database and replace it with the incoming new document.
The discussed Database Module will give you some insight into how to create new databases and add documents to existing databases. How much have you worked with XQuery so far?
All the best, Christian
On Wed, Nov 4, 2020 at 2:13 PM Rob <private@tjalma.com mailto:private@tjalma.com> wrote: Hi all,
I first created an Github Issue for this question, but that’s not the right play :)
So hereby my question:
I was wondering how versioning works in BaseX. So I have a XML file, I store another version of that same XML file and within BaseX there is some kind of versioning so I can retrieve both versions of the XML file.
I look into your mail archive, and I found the following mail: https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg07369.htm... https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg07369.html
Here it states that with using database metadata (Database Module, https://docs.basex.org/wiki/Database_Module https://docs.basex.org/wiki/Database_Module), you can achieve versioning. But I don't see anything about it in the documentation. So I was wondering if it is a thing in BaseX (versioning), and how it's accomplished 👍
Thanks!
Kind regards, Rob Tjalma
And why is RESTXQ the way to go in this case? :)
Op 10 nov. 2020, om 09:50 heeft Christian Grün christian.gruen@gmail.com het volgende geschreven:
I don’t have that much experience with xQuery, but what you’re basically saying is to setup another database for archiving right?
Exactly!
basex-talk@mailman.uni-konstanz.de