Collection related functions [SEC=UNCLASSIFIED]

Wednesday, 23 January 2013 · 3 messages · last reply 25 Jan 2013
TR
Thamm, Russell23 Jan 2013 05:38 #
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.
CG
Christian Grün24 Jan 2013 13:10 #
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
Quoted text · Russell · 39 lines
On Wed, Jan 23, 2013 at 5:38 AM, Thamm, Russell <russell.thamm at 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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
TR
Thamm, Russell25 Jan 2013 05:26 #
UNCLASSIFIED Thanks Christian, I take it then that there are no efficient means of obtaining collection listings. Cheers Mate Russell
Quoted text · Christian Grün · 50 lines
-----Original Message----- From: Christian Grün [mailto:christian.gruen at 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 at 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 at 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.

⚡Generated with XQuery