UNCLASSIFIED
Hi,
Does baseX provide any collection related functions?
In particular, I am after equivalents to the eXist functions:
xmldb:create-collection xmldb:get-child-collections xmldb:get-child-resources
I have searched the module library documentation and can't seem to find anything.
I can duplicate the action of the latter two using db:list but that appears to be rather inefficient.
BaseX doesn't seem to like empty collections, so the first might be superfluous.
Cheers
IMPORTANT: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
Dear Russell,
in BaseX, databases are light-weight data structures and can be compared to collections; see [1] for some information on that. As you guessed right, the usual approach is to either create multiple databases and treat them like collections, or include empty dummy files in your database (such as .empty) if you want to simulate empty collections. This is e.g. done by our WebDAV service, which allows to create empty sub-directories in a database.
Hope this helps, Christian
[1] http://docs.basex.org/wiki/Databases ___________________________
On Wed, Jan 23, 2013 at 5:38 AM, Thamm, Russell russell.thamm@dsto.defence.gov.au wrote:
UNCLASSIFIED
Hi,
Does baseX provide any collection related functions?
In particular, I am after equivalents to the eXist functions:
xmldb:create-collection xmldb:get-child-collections xmldb:get-child-resources
I have searched the module library documentation and can't seem to find anything.
I can duplicate the action of the latter two using db:list but that appears to be rather inefficient.
BaseX doesn't seem to like empty collections, so the first might be superfluous.
Cheers
IMPORTANT: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
UNCLASSIFIED
Thanks Christian,
I take it then that there are no efficient means of obtaining collection listings.
Cheers Mate Russell
-----Original Message----- From: Christian Grün [mailto:christian.gruen@gmail.com] Sent: Thursday, 24 January 2013 10:41 PM To: Thamm, Russell Cc: BaseX Subject: Re: [basex-talk] Collection related functions [SEC=UNCLASSIFIED]
Dear Russell,
in BaseX, databases are light-weight data structures and can be compared to collections; see [1] for some information on that. As you guessed right, the usual approach is to either create multiple databases and treat them like collections, or include empty dummy files in your database (such as .empty) if you want to simulate empty collections. This is e.g. done by our WebDAV service, which allows to create empty sub-directories in a database.
Hope this helps, Christian
[1] http://docs.basex.org/wiki/Databases ___________________________
On Wed, Jan 23, 2013 at 5:38 AM, Thamm, Russell russell.thamm@dsto.defence.gov.au wrote:
UNCLASSIFIED
Hi,
Does baseX provide any collection related functions?
In particular, I am after equivalents to the eXist functions:
xmldb:create-collection xmldb:get-child-collections xmldb:get-child-resources
I have searched the module library documentation and can't seem to find anything.
I can duplicate the action of the latter two using db:list but that appears to be rather inefficient.
BaseX doesn't seem to like empty collections, so the first might be superfluous.
Cheers
IMPORTANT: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
IMPORTANT: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
basex-talk@mailman.uni-konstanz.de