Examples of OAI2Fetcher


Examples of net.sf.jabref.imports.OAI2Fetcher

    }

  }

  public void testUrlConstructor() {
    OAI2Fetcher fetcher = new OAI2Fetcher();
    assertEquals(
      "http://export.arxiv.org/oai2?verb=GetRecord&identifier=oai%3AarXiv.org%3Ahep-ph%2F0408155&metadataPrefix=arXiv",
      fetcher.constructUrl("hep-ph/0408155"));

    assertEquals(
      "http://export.arxiv.org/oai2?verb=GetRecord&identifier=oai%3AarXiv.org%3Amath%2F0612188&metadataPrefix=arXiv",
      fetcher.constructUrl("math/0612188"));

  }
View Full Code Here

Examples of net.sf.jabref.imports.OAI2Fetcher

  }

  public void testOnline() throws InterruptedException {

    {
      OAI2Fetcher fetcher = new OAI2Fetcher();
      be = fetcher.importOai2Entry("math.RA/0612188");
      assertNotNull(be);

      assertEquals("math/0612188", be.getField("eprint"));
      assertEquals("On the classification and properties of noncommutative duplicates", be
        .getField("title").toString());
      assertEquals("Javier L�pez Pe�a and Gabriel Navarro", be.getField("author").toString());
      assertEquals("2007", be.getField("year").toString());

      Thread.sleep(20000);
    }

    {
      OAI2Fetcher fetcher = new OAI2Fetcher();
      be = fetcher.importOai2Entry("astro-ph/0702080");
      assertNotNull(be);

      assertEquals("astro-ph/0702080", be.getField("eprint"));
      assertEquals(
        "Magnetized Hypermassive Neutron Star Collapse: a candidate central engine for short-hard GRBs",
        be.getField("title").toString());

      Thread.sleep(20000);
    }

    {
      OAI2Fetcher fetcher = new OAI2Fetcher();
      be = fetcher.importOai2Entry("math.QA/0601001");
      assertNotNull(be);

      assertEquals("math/0601001", be.getField("eprint"));
      Thread.sleep(20000);
    }

    {
      OAI2Fetcher fetcher = new OAI2Fetcher();
      be = fetcher.importOai2Entry("hep-ph/0408155");
      assertNotNull(be);
     
      assertEquals("hep-ph/0408155", be.getField("eprint"));
        Thread.sleep(20000);
        }

        {
            OAI2Fetcher fetcher = new OAI2Fetcher();
            be = fetcher.importOai2Entry("0709.3040");
            assertNotNull(be);
           
            assertEquals("2007", be.getField("year"));
            assertEquals("#sep#", be.getField("month"));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.