Search in sources :

Example 6 with OpenBiodivClientImpl

use of org.globalbioticinteractions.util.OpenBiodivClientImpl in project eol-globi-data by jhpoelen.

the class DatasetImporterForPensoftIT method retrieveCitationById3ByDOI.

@Test
public void retrieveCitationById3ByDOI() throws IOException {
    final SparqlClient sparqlClientImpl = new OpenBiodivClientImpl(getResourceServiceTest());
    String citation = DatasetImporterForPensoft.findCitationByDoi("10.3897/zookeys.875.35748", sparqlClientImpl);
    assertThat(citation, is("Marko Prous, Andrew Liston, Katja Kramp, Henri Savina, Hege Vårdal, Andreas Taeger. 2019. The West Palaearctic genera of Nematinae (Hymenoptera, Tenthredinidae). ZooKeys. https://doi.org/10.3897/zookeys.875.35748"));
}
Also used : SparqlClient(org.globalbioticinteractions.util.SparqlClient) OpenBiodivClientImpl(org.globalbioticinteractions.util.OpenBiodivClientImpl) Test(org.junit.Test) TestUtil.getResourceServiceTest(org.eol.globi.data.TestUtil.getResourceServiceTest)

Example 7 with OpenBiodivClientImpl

use of org.globalbioticinteractions.util.OpenBiodivClientImpl in project eol-globi-data by jhpoelen.

the class DatasetImporterForPensoftIT method retrieveCitationById2.

@Test
public void retrieveCitationById2() throws IOException {
    final SparqlClient sparqlClientImpl = new OpenBiodivClientImpl(getResourceServiceTest());
    String citation = DatasetImporterForPensoft.findCitationById("http://openbiodiv.net/D37E8D1A-221B-FFA6-FFE7-4458FFA0FFC2", sparqlClientImpl);
    assertThat(citation, is("Dewi Sartiami, Laurence A. Mound. 2013. Identification of the terebrantian thrips (Insecta, Thysanoptera) associated with cultivated plants in Java, Indonesia. ZooKeys. https://doi.org/10.3897/zookeys.306.5455"));
}
Also used : SparqlClient(org.globalbioticinteractions.util.SparqlClient) OpenBiodivClientImpl(org.globalbioticinteractions.util.OpenBiodivClientImpl) Test(org.junit.Test) TestUtil.getResourceServiceTest(org.eol.globi.data.TestUtil.getResourceServiceTest)

Example 8 with OpenBiodivClientImpl

use of org.globalbioticinteractions.util.OpenBiodivClientImpl in project eol-globi-data by jhpoelen.

the class DatasetImporterForPensoftIT method retrieveCitationById.

@Test
public void retrieveCitationById() throws IOException {
    final SparqlClient sparqlClientImpl = new OpenBiodivClientImpl(getResourceServiceTest());
    String citation = DatasetImporterForPensoft.findCitationById("<http://openbiodiv.net/D37E8D1A-221B-FFA6-FFE7-4458FFA0FFC2>", sparqlClientImpl);
    assertThat(citation, is("Dewi Sartiami, Laurence A. Mound. 2013. Identification of the terebrantian thrips (Insecta, Thysanoptera) associated with cultivated plants in Java, Indonesia. ZooKeys. https://doi.org/10.3897/zookeys.306.5455"));
}
Also used : SparqlClient(org.globalbioticinteractions.util.SparqlClient) OpenBiodivClientImpl(org.globalbioticinteractions.util.OpenBiodivClientImpl) Test(org.junit.Test) TestUtil.getResourceServiceTest(org.eol.globi.data.TestUtil.getResourceServiceTest)

Aggregations

OpenBiodivClientImpl (org.globalbioticinteractions.util.OpenBiodivClientImpl)8 SparqlClient (org.globalbioticinteractions.util.SparqlClient)6 Test (org.junit.Test)6 TestUtil.getResourceServiceTest (org.eol.globi.data.TestUtil.getResourceServiceTest)5 ResourceService (org.eol.globi.service.ResourceService)2 IOException (java.io.IOException)1 NullImportLogger (org.eol.globi.tool.NullImportLogger)1 DB (org.mapdb.DB)1