I have a project using an embedded Base-X db that I access through application code. I want to view this information using the Base-X GUI.
Currently, I use a REST interface to output the entire database as one large XML file. Then I import that file into Base-X using the GUI so that I can run queries on it with the benefits the GUI brings.
But this process is cumbersome and is getting downright unwieldy as the size of the db grows.
Is there a way to open the .basex files directly in the GUI to avoid this intermediate step?
Thanks!
Chas.
Hi Chas,
i hope i understand what you are trying to do. You are running a basex server and access it with the rest interface. Now you are getting the xml content of your database from the server and creating a local database with it to use the GUI features.
You could easily add a createdb function in your application code (what programming language are you using?), which creates a local database with the incoming content from the rest interface. After that just start the GUI and your database will be there.
But this process is cumbersome and is getting downright unwieldy as the size of the db grows.
The .basex file is just a property file, if you have access to the server you could also point your database path of the gui to the database folder from the basex server in the network, so all above steps wouldnt be necessary.
Kind regards, Andreas
Am 02.01.11 00:51, schrieb Charles F. Munat:
I have a project using an embedded Base-X db that I access through application code. I want to view this information using the Base-X GUI.
Currently, I use a REST interface to output the entire database as one large XML file. Then I import that file into Base-X using the GUI so that I can run queries on it with the benefits the GUI brings.
But this process is cumbersome and is getting downright unwieldy as the size of the db grows.
Thanks!
Chas. _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Actually, that's not what I'm doing, but from your misunderstanding I was able to figure out what I needed to do. It was simply a matter of switching the server directory to the directory of the embedded db and then starting the server. Now it was listed in the GUI and I could open it. Perfect! That saves a huge amount of time! Thanks much.
Chas.
On 01/02/2011 9:01 AM, Andreas Weiler wrote:
Hi Chas,
i hope i understand what you are trying to do. You are running a basex server and access it with the rest interface. Now you are getting the xml content of your database from the server and creating a local database with it to use the GUI features.
You could easily add a createdb function in your application code (what programming language are you using?), which creates a local database with the incoming content from the rest interface. After that just start the GUI and your database will be there.
But this process is cumbersome and is getting downright unwieldy as the size of the db grows.
The .basex file is just a property file, if you have access to the server you could also point your database path of the gui to the database folder from the basex server in the network, so all above steps wouldnt be necessary.
Kind regards, Andreas
Am 02.01.11 00:51, schrieb Charles F. Munat:
I have a project using an embedded Base-X db that I access through application code. I want to view this information using the Base-X GUI.
Currently, I use a REST interface to output the entire database as one large XML file. Then I import that file into Base-X using the GUI so that I can run queries on it with the benefits the GUI brings.
But this process is cumbersome and is getting downright unwieldy as the size of the db grows.
Thanks!
Chas. _______________________________________________ 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