BaseX client
Tuesday, 19 October 2010 · 2 messages · last reply 20 Oct 2010
NA
Nigel Alderton19 Oct 2010 20:30 #
I have some beginner questions regarding BaseX Client;
1. How can I list the documents in a database?
2. Is there a way to batch BaseX Client commands up to execute several commands automatically like a DOS batch file without having to manually type them each time?
3. Is there a 'reload' command to reload a document from it's source file or do I have to use the 'add' command and specify a file?
4. Is there any documentation regarding the BaseX Client commands other than the 'help' text?
Thanks,
Nigel
AW
Andreas Weiler20 Oct 2010 12:25 #
Hi Nigel,
1. You have to run a query on the database like:
for $doc in collection()
let $path := base-uri($doc)
return $path2. Yes you can do that, see the following example:
script test (save as test):
create db test
xquery insert node <root /> into doc("test")
xquery doc("test")/root
run the script:
java -cp basex-6.2.9.jar org.basex.BaseX (or BaseXClient) < test
3. There is currently no 'reload' command...So you have to replace the file by your own.
4. You can have a look at the homepage on
http://www.inf.uni-konstanz.de/dbis/basex/commands
or just ask for more information.
I hope i could help,
dont hesitate to ask for more.
Kind regards,
Andreas
Quoted text · Nigel Alderton · 22 lines
Am 19.10.2010 20:30, schrieb Nigel Alderton: > I have some beginner questions regarding BaseX Client; > > 1. How can I list the documents in a database? > 2. Is there a way to batch BaseX Client commands up to execute several > commands automatically like a DOS batch file without having to manually type > them each time? > 3. Is there a 'reload' command to reload a document from it's source file or > do I have to use the 'add' command and specify a file? > 4. Is there any documentation regarding the BaseX Client commands other than > the 'help' text? > > Thanks, > > Nigel > > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Written for BaseX 6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery