<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Interesting.<div>indeed a stable identifier is vital for many things. So is date last modified for incremental harvesting (using whatever protocol as roger explained).</div><div><br></div><div>And that is why I want to continue some of WASABIs ideas of having a data cache on the *provider* side. The provider software fills this cache from the live db anytime the provider wants to publish his data and the date last modified gets calculated per record. Also GUIDs can be assigned in this process based on stable local IDs. And from this cache different protocols incl TAPIRlite &amp; OAI-PMH can easily be served. At GBIF we would even like to go further and create "local index files" (our current working title for this) for very efficient harvesting which can be downloaded as a static&nbsp;compressed&nbsp;single file - much like Google uses sitemaps for indexing. I am currently preparing a document on this with Tim Robertson and we are happy to hear your thoughts on this in a few weeks.</div><div><br></div><div>Markus</div><div><br></div><div><br></div><div><br></div><div><br><div><div>On 30 Apr, 2008, at 15:55, Roger Hyam (TDWG) wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Hi Renato and all,</div><div><br></div><div>The issue of harvesting isn't really a protocol one. In order to be able to have an efficient harvesting strategy (i.e do incremental harvests) data suppliers need:</div><div><br></div><ol class="MailOutline"><li>uniquely identify objects (records or items or whatever)&nbsp;</li><li>keep track of when they change these items&nbsp;</li></ol><div><br></div><div>My understanding is that GBIF (and I guess other indexers) have to completely re-index the majority of data sources because these two things are not implemented consistently or at all by many of the suppliers. GBIF are now running out of resources and can't keep re-indexing every record every time. This is especially ironic as most of the records are from archives where the data rarely changes. It also means that data from the GBIF cache isn't comparable over time. If a data set is dropped and replaced by a new version with subtly different data points the consumer can't know if the different data points are additions or corrections to the old data points.</div><div><br></div><div>The TAPIR protocol does not require records to have ids and modifications dates. There is no reason for it to do so. The protocol may even be useful in applications where one positively does not want to enforce this.&nbsp;</div><div><br></div><div>If data providers who do implement TAPIR do supply ids and modification dates in a uniform way then it would be possible to incrementally harvest from them. It might even be possible to layer the OAI-PMH protocol over the top of TAPIR to make it more generic - as Kevin's work shows.</div><div><br></div><div>If TAPIR data sources don't supply ids and modification dates or they don't supply them in a "standard" way then efficient incremental harvesting is near enough impossible. One would have to do an inventory call where all the records began with "A" &nbsp;then with "B" etc.</div><div><br></div><div>OAI-PMH mandates the notions of ids (indeed GUIDs) and modification dates but obviously doesn't have a notion of search/query at all.</div><div><br></div><div>My belief/opinion is that the primary purpose of many people exposing data is to get it indexed (harvested) by GBIF. &nbsp;"Just" supplying data through TAPIR for this purpose does not make GBIFs job easy or scalable. Providers should also supply GUIDs and modification dates. If they supply the GUIDs and modification dates the protocol is not so important - RSS or Atom anyone?</div><div><br></div><div>I would go so far as saying that if data providers can't supply these two pieces of information they shouldn't expose their data as they are just polluting the global data pool - but that would probably be me saying way too much just to be provocative!</div><div><br></div><div>Hope my ranting is informative,</div><div><br></div><div>All the best,</div><div><br></div><div>Roger</div><div><br></div><div><br></div><div apple-content-edited="true"> <div><div><div><div>-------------------------------------------------------------<br>Roger Hyam<br><a href="mailto:Roger@BiodiversityCollectionsIndex.org">Roger@BiodiversityCollectionsIndex.org</a><br><a href="http://www.BiodiversityCollectionsIndex.org">http://www.BiodiversityCollectionsIndex.org</a><br>-------------------------------------------------------------</div><div>Royal Botanic Garden Edinburgh</div><div>20A Inverleith Row, Edinburgh, EH3 5LR, UK</div><div>Tel: +44 131 552 7171 ext 3015</div><div>Fax: +44 131 248 2901</div><div><div><a href="http://www.rbge.org.uk/">http://www.rbge.org.uk/</a></div></div><div>-------------------------------------------------------------</div><div><div><br></div></div></div></div><br></div><br> </div><br><div><div>On 30 Apr 2008, at 13:58, Renato De Giovanni wrote:</div><br><blockquote type="cite">Hi Stan,<br><br>Just a few comments about TAPIR and OAI-PMH.<br><br>I'm not sure if there's any core functionality offered by OAI-PMH that<br>cannot be easily replicated with TAPIR. The main ingredients would be:<br><br>* A short list of concepts, basically record identifier, record timestamp,<br>set membership and deletion flag. These would be the main concepts<br>associated with request parameters and filters.<br>* An extra list of concepts (or perhaps only one wrapper concept for XML<br>content) that would be used to return the complete record representation<br>in responses.<br><br>On the other hand, there are many functionalities in TAPIR that cannot be<br>replicated in OAI-PMH since TAPIR is a generic search protocol. In some<br>situations, and depending on how data providers are implemented, this can<br>make TAPIR more efficient even in data harvesting scenarios. In OAI-PMH it<br>may be necessary to send multiple requests to retrieve all data from a<br>single record (in case there there are multiple metadata prefixes<br>associated with the record). Also note that GBIF is using a name range<br>query template for harvesting TAPIR providers - this approach has been<br>created after years of experience and seems to give the best performance<br>for them. I'm not sure if GBIF could use a similar strategy for an OAI-PMH<br>provider, i.e., retrieving approximately the same number of records in<br>sequential requests using a custom filter that potentially forces the<br>local database to use an index. In TAPIR this can be done with an<br>inventory request (with "count" activated) and subsequent searches using a<br>parameterized range filter guaranteed to return a certain number of<br>records.<br><br>I realize there may be other reasons to expose data using OAI-PMH (more<br>available tools or compatibility with other networks). In this case, I<br>should point to this interesting work where in the end Kevin Richards<br>implemented an OAI-PMH service on top of TAPIR using less than 50 lines of<br>code:<br><br><a href="http://wiki.tdwg.org/twiki/bin/view/TAPIR/TapirOAIPMH">http://wiki.tdwg.org/twiki/bin/view/TAPIR/TapirOAIPMH</a><br><br>Best Regards,<br>--<br>Renato<br><br><br><blockquote type="cite">Phil,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">TAPIR was intended to be a unification of DiGIR and BioCASE. There are a<br></blockquote><blockquote type="cite">few<br></blockquote><blockquote type="cite">implementations of providers but fewer instances of portals built on<br></blockquote><blockquote type="cite">TAPIR.<br></blockquote><blockquote type="cite">Networks built on DiGIR may eventually switch to TAPIR, but that remains<br></blockquote><blockquote type="cite">to<br></blockquote><blockquote type="cite">be seen. &nbsp;DiGIR and BioCASE were designed for distributed queries, not<br></blockquote><blockquote type="cite">really<br></blockquote><blockquote type="cite">harvesting. &nbsp;I understand harvesting can be done more simply and<br></blockquote><blockquote type="cite">efficiently<br></blockquote><blockquote type="cite">by other approaches, such as OAI-PMH. &nbsp;If the sensibilities of data<br></blockquote><blockquote type="cite">providers<br></blockquote><blockquote type="cite">evolves to accept and allow harvesting (which seems likely), we may see<br></blockquote><blockquote type="cite">"networks" built on that architecture, instead of distributed queries.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">If your only goal is to provide data to GBIF, I would suggest installing<br></blockquote><blockquote type="cite">TAPIR (unless Tim Robertson tells you something else). &nbsp;If you are<br></blockquote><blockquote type="cite">concerned<br></blockquote><blockquote type="cite">about providing data to other networks, like <a href="http://www.SERNEC.org">www.SERNEC.org</a>, you'll need a<br></blockquote><blockquote type="cite">DiGIR provider, too. &nbsp;(Such is the nature of technical transition.)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-Stan<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Stanley D. Blum, Ph.D.<br></blockquote><blockquote type="cite">Research Information Manager<br></blockquote><blockquote type="cite">California Academy of Sciences<br></blockquote><blockquote type="cite">875 Howard St.<br></blockquote><blockquote type="cite">San Francisco, &nbsp;CA<br></blockquote><blockquote type="cite">+1 (415) 321-8183<br></blockquote><br><br>_______________________________________________<br>tdwg-tapir mailing list<br><a href="mailto:tdwg-tapir@lists.tdwg.org">tdwg-tapir@lists.tdwg.org</a><br>http://lists.tdwg.org/mailman/listinfo/tdwg-tapir<br></blockquote></div><br></div>_______________________________________________<br>tdwg-tapir mailing list<br><a href="mailto:tdwg-tapir@lists.tdwg.org">tdwg-tapir@lists.tdwg.org</a><br>http://lists.tdwg.org/mailman/listinfo/tdwg-tapir<br></blockquote></div><br></div></body></html>