Menu

fetching from arxiv

Help
vengoroso
2007-01-04
2012-11-09
  • vengoroso

    vengoroso - 2007-01-04

    Using version 2.2b (with windows installer), I get no results whenever I try to fetch a paper from arXiv.org. I have tried with the whole ID (eg math.RA/0601001) and just with the number (eg 0601001) but dont get any results anyway.

    Anyone got it working?

     
    • vengoroso

      vengoroso - 2007-01-10

      Hi there!

      thanks for the answers. I've tried changing the OAI2 ids, but still not getting any results! I tried with some recent papers from various areas (so that I'm pretty sure they exist and have valid ids!), such as
      hep-th/0701081
      math/0701266
      cs/0701066

      and always get no fetching results at all!
      My java version is up to date. Do I need to get a new version of jabref directly from CVS or am I doing something wrong?

      atb
      vengoroso

       
    • Christopher Oezbek

      Hi Vengo,
      I think the problem in your case is that math.RA/0601001 is not a valid ID as accepted by ArXiV.

      You can try it yourself:

      http://arxiv.org/oai2?verb=GetRecord&identifier=oai:arXiv.org:math.RA/0601001&metadataPrefix=arXiv

      It seems that non-physics papers cannot be queried using the webinterface.

      I will write the author of the OAI2 Fetcher that it would be nice if they improved the error reporting.

      Christopher

       
      • Uli Staerk

        Uli Staerk - 2007-01-08

        I just mailed you a patch to notify the user of any error fields in the OAI2 reply.

        -- snip --
        Index: src/java/net/sf/jabref/imports/OAI2Handler.java
        ===================================================================
        RCS file: /cvsroot/jabref/jabref/src/java/net/sf/jabref/imports/OAI2Handler.java,v
        retrieving revision 1.1
        diff -u -r1.1 OAI2Handler.java
        --- src/java/net/sf/jabref/imports/OAI2Handler.java 24 Nov 2006 15:29:11 -0000 1.1
        +++ src/java/net/sf/jabref/imports/OAI2Handler.java 8 Jan 2007 10:23:57 -0000
        @@ -70,6 +70,9 @@
        } else if(localName.equals("report-no")) {
        nextField = "reportno";
        assigned = true;
        + } else if(localName.equals("error")) {
        + nextField = "error";
        + assigned = true;
        }
        }

        @@ -120,6 +123,8 @@
        be.setField("comments",content);
        } else if(nextField.equals("reportno")) {
        be.setField("reportno",content);
        + } else if(nextField.equals("error")) {
        + throw new SAXException(content);
        }
        assigned = false;
        }
        Index: src/java/net/sf/jabref/imports/OAI2Fetcher.java
        ===================================================================
        RCS file: /cvsroot/jabref/jabref/src/java/net/sf/jabref/imports/OAI2Fetcher.java,v
        retrieving revision 1.1
        diff -u -r1.1 OAI2Fetcher.java
        --- src/java/net/sf/jabref/imports/OAI2Fetcher.java 24 Nov 2006 15:29:11 -0000 1.1
        +++ src/java/net/sf/jabref/imports/OAI2Fetcher.java 8 Jan 2007 10:23:57 -0000
        @@ -167,7 +167,7 @@
        + "\n\n" + e.toString(), Globals.lang(getKeyName()), JOptionPane.ERROR_MESSAGE);
        } catch (SAXException e) {
        JOptionPane.showMessageDialog(frame, Globals.lang(
        - "An SAXException ocurred while parsing '%0'", url), Globals.lang(getKeyName()),
        + "An SAXException ocurred while parsing '%0'", url)+"\n"+e.getMessage(), Globals.lang(getKeyName()),
        JOptionPane.ERROR_MESSAGE);
        }
        }

        -- snip --

        Uli

         
    • Uli Staerk

      Uli Staerk - 2007-01-06

      That's partly right Christopher :)

      math.RA is just a subcategory on arXiv.org. You cannot query for subcategories using the oai2 interface. You should instead query for math/0601001 which will yield the correct result (<title>Codepth Two and Related Topics</title>; http://arxiv.org/oai2?verb=GetRecord&identifier=oai:arXiv.org:math%2F0601001&metadataPrefix=arXiv ).

      But you are right, error reporting could be better, I'll see if I can find the time to improve it.

      Uli

       
    • Christopher Oezbek

      Hi Vengo,
      I fixed this in the lastest version from CVS in the meanwhile please follow Uli's advice and use proper OAI2 ids. In your case math/0601001 instead of math.RA/0601001.

      Cheers,
      Christopher

       
MongoDB Logo MongoDB