[basex-talk] OAI-PMH

2013-10-17 Thread Lars Johnsen
Hello all I am looking into the possibility of using BaseX as an OAI-PMH metadata provider and harvester, and wondered if anyone has experience with it for this purpose. Specifically using BaseX as a repository with the http-service with xquery scripts for accessing and providing metadata

Re: [basex-talk] Implementation of fn:collection

2013-10-17 Thread Jeremy Moseley
Hey Christian, Thanks for the response. fn:collection is handling as specified in the BaseX documentation, so I guess my question changes into: Is there a method to open a subset of documents (not distinguishable by path) in the database with performance similar to calling db:open($db_name)?

Re: [basex-talk] Implementation of fn:collection

2013-10-17 Thread Christian Grün
Hi Jeremy, Is there a method to open a subset of documents (not distinguishable by path) in the database with performance similar to calling db:open($db_name)? Is there any criteria regarding the documents you want to open? If you simply want to choose the first 10 documents, you could try a

Re: [basex-talk] Implementation of fn:collection

2013-10-17 Thread Jeremy Moseley
Yes, sorry I should have specified the criteria. I have a list of a subset of the documents in the database that need to be opened (I can store this list in any form necessary), but I am experiencing performance problems since I need to iterate over the list in order to filter or choose which

Re: [basex-talk] Implementation of fn:collection

2013-10-17 Thread Christian Grün
Hi Jeremy, if the list is more or less arbitrary, then you’ll indeed have to browse all your documents in order to find the ones that are relevant you. One approach could be to specify a filtering predicate: let $paths := (a.xml, b.xml) return db:open(db)[db:path(.) = $paths] If this is

Re: [basex-talk] Implementation of fn:collection

2013-10-17 Thread Jeremy Moseley
I am dealing with collections of documents in the 2500+ range. The code you suggested is similar to what I have already, but much cleaner. I'm assuming the lookup within the map is done in constant time? Cheers, Jeremy On Thu, Oct 17, 2013 at 10:41 AM, Christian Grün