[dumpSubset] wf for the creation of the dump per country start from the beginning
This commit is contained in:
parent
25be584028
commit
a06640d344
|
@ -122,7 +122,8 @@ public class ZenodoAPIClient implements Serializable {
|
|||
// Get response body
|
||||
json = response.body().string();
|
||||
|
||||
eu.dnetlib.dhp.common.api.zenodo.ZenodoModel newSubmission = new Gson().fromJson(json, eu.dnetlib.dhp.common.api.zenodo.ZenodoModel.class);
|
||||
eu.dnetlib.dhp.common.api.zenodo.ZenodoModel newSubmission = new Gson()
|
||||
.fromJson(json, eu.dnetlib.dhp.common.api.zenodo.ZenodoModel.class);
|
||||
this.bucket = newSubmission.getLinks().getBucket();
|
||||
this.deposition_id = newSubmission.getId();
|
||||
|
||||
|
@ -132,7 +133,6 @@ public class ZenodoAPIClient implements Serializable {
|
|||
|
||||
}
|
||||
|
||||
|
||||
// public int uploadIS2(InputStream is, String fileName) throws IOException {
|
||||
//
|
||||
// final String crlf = "\r\n";
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
</global>
|
||||
|
||||
<!-- <start to="save_community_map" />-->
|
||||
<start to="make_archive" />
|
||||
<start to="save_community_map" />
|
||||
|
||||
<action name="save_community_map">
|
||||
<java>
|
||||
|
|
|
@ -7,8 +7,6 @@ import java.io.IOException;
|
|||
import java.io.InputStream;
|
||||
import java.nio.file.Files;
|
||||
|
||||
import eu.dnetlib.dhp.oa.zenodoapi.ZenodoAPIClient;
|
||||
import eu.dnetlib.dhp.oa.zenodoapi.MissingConceptDoiException;
|
||||
import org.apache.hadoop.conf.Configuration;
|
||||
import org.apache.hadoop.fs.*;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
|
@ -19,7 +17,8 @@ import org.junit.jupiter.api.Test;
|
|||
import com.google.gson.Gson;
|
||||
|
||||
import eu.dnetlib.dhp.oa.graph.dump.community.CommunityMap;
|
||||
|
||||
import eu.dnetlib.dhp.oa.zenodoapi.MissingConceptDoiException;
|
||||
import eu.dnetlib.dhp.oa.zenodoapi.ZenodoAPIClient;
|
||||
|
||||
@Disabled
|
||||
public class ZenodoUploadTest {
|
||||
|
@ -86,7 +85,6 @@ public class ZenodoUploadTest {
|
|||
|
||||
System.out.println(client.sendMretadata(metadata));
|
||||
|
||||
|
||||
// System.out.println(client.publish());
|
||||
|
||||
}
|
||||
|
@ -162,6 +160,7 @@ public class ZenodoUploadTest {
|
|||
// Assertions.assertEquals(202, client.publish());
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
void readCommunityMap() throws IOException {
|
||||
LocalFileSystem fs = FileSystem.getLocal(new Configuration());
|
||||
|
|
Loading…
Reference in New Issue