On 05/04/09 15:49, "Gregory Jefferis" <jeffe...@gmail.com> wrote:
> On 2009-05-02 23:30, "Adam R. Maxwell" <amaxw...@mac.com> wrote: > >> >> I wrote a parser for the XML format. Can anyone suggest some PMIDs or > Great! Have you committed or do you have a patch? No. I developed it on my own tree, since that's what I'm set up to work with and test against. If you want to take a stab at incorporating it, the parser is here: http://tcobrowser.svn.sourceforge.net/viewvc/tcobrowser/trunk/bibdesk/BDSKPu bMedXMLParser.h?sortby=date&view=log http://tcobrowser.svn.sourceforge.net/viewvc/tcobrowser/trunk/bibdesk/BDSKPu bMedXMLParser.m?sortby=date&view=log Other files adapted to use the parser: // changes to URL and avoid using BDSKStringParser and guess encoding: http://tcobrowser.svn.sourceforge.net/viewvc/tcobrowser/trunk/bibdesk/BibIte m_PubMedLookup.m?sortby=date&view=log // standard additions for new parser class http://tcobrowser.svn.sourceforge.net/viewvc/tcobrowser/trunk/bibdesk/BDSKSt ringParser.m?sortby=date&view=log http://tcobrowser.svn.sourceforge.net/viewvc/tcobrowser/trunk/bibdesk/BDSKSt ringParser.h?sortby=date&view=log // changes to URL and avoid using BDSKStringParser and guess encoding http://tcobrowser.svn.sourceforge.net/viewvc/tcobrowser/trunk/bibdesk/BDSKEn trezGroupServer.m?sortby=date&view=log >> search terms that result in data loss presently? I also never use > Try PMID: 12767029 Here's what I get: @article{cite-key, Abstract = { snipped for brevity }, Author = {Devaud, Jean-Marc and Acebes, Angel and Ramaswami, Mani and Ferr{\'u}s, Alberto}, Date-Added = {2009-05-04 17:03:08 -0700}, Date-Modified = {2009-05-04 17:03:08 -0700}, Journal = {Journal of Neurobiology}, Mesh = {Adaptation, Physiological; Adenylate Cyclase; Animals; Behavior, Animal; Benzaldehydes; Brain; Cyclic AMP; Drosophila; Drosophila Proteins; Female; Learning; Microscopy, Confocal; Microscopy, Electron; Mutation; Neuropeptides; Olfactory Pathways; R-SNARE Proteins; Sense Organs; Synapses; Vesicular Transport Proteins}, Month = {Jul}, Number = {1}, Pages = {13-23}, Pmid = {12767029}, Title = {Structural and functional changes in the olfactory pathway of adult Drosophila take place at a critical age}, Volume = {56}, Year = {2003}} >> PubMed, so I only tested with random entries. > > It would be great to test for equality of records modulo author name for the > same record retrieved via the regular parser. There'll be some differences, since I don't attempt to handle all of the fields. The XML format documentation seems strongly oriented towards @article types, so I'd be curious as to how a proceedings or book with an editor is handled. I think I've done a better job at handling MeSH headings and keyword lists, but a bunch of stuff is just ignored since it looks irrelevant (e.g. status, ownership). Additions would be up to the PubMed-using crowd. regards, Adam ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-users