1 |
40005
|
argiro.kok
|
package eu.dnetlib.data.claimsDemo;
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
41260
|
argiro.kok
|
* Created by Eri on 18/11/2015.
|
5 |
|
|
*/
|
6 |
40005
|
argiro.kok
|
|
7 |
|
|
|
8 |
41260
|
argiro.kok
|
|
9 |
41791
|
argiro.kok
|
|
10 |
46956
|
konstantin
|
import com.google.gson.Gson;
|
11 |
|
|
import com.google.gson.GsonBuilder;
|
12 |
|
|
import com.sun.org.apache.xerces.internal.xs.StringList;
|
13 |
41791
|
argiro.kok
|
import eu.dnetlib.data.claims.migration.ClaimValidation;
|
14 |
|
|
import eu.dnetlib.data.claims.migration.JsonldBuilder;
|
15 |
|
|
import eu.dnetlib.data.claims.migration.Migration;
|
16 |
|
|
import eu.dnetlib.data.claims.migration.entity.Claim;
|
17 |
|
|
import eu.dnetlib.data.claims.migration.entity.Project;
|
18 |
|
|
import eu.dnetlib.data.claims.migration.entity.Result;
|
19 |
41444
|
argiro.kok
|
import eu.dnetlib.data.claims.migration.handler.*;
|
20 |
41350
|
argiro.kok
|
import eu.dnetlib.data.claims.migration.parser.DMFParser;
|
21 |
48294
|
argiro.kok
|
import eu.dnetlib.data.claims.migration.parser.ExternalRecordParser;
|
22 |
40005
|
argiro.kok
|
import org.apache.log4j.BasicConfigurator;
|
23 |
|
|
import org.apache.log4j.Logger;
|
24 |
|
|
import org.junit.Before;
|
25 |
|
|
import org.junit.Test;
|
26 |
|
|
import org.junit.runner.RunWith;
|
27 |
41444
|
argiro.kok
|
import org.springframework.context.ApplicationContext;
|
28 |
47008
|
argiro.kok
|
import org.springframework.context.annotation.PropertySource;
|
29 |
41444
|
argiro.kok
|
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
30 |
47008
|
argiro.kok
|
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
31 |
|
|
import org.springframework.core.io.ClassPathResource;
|
32 |
40005
|
argiro.kok
|
import org.springframework.test.context.ContextConfiguration;
|
33 |
|
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
34 |
40086
|
argiro.kok
|
import org.xml.sax.SAXException;
|
35 |
40005
|
argiro.kok
|
|
36 |
40941
|
argiro.kok
|
import javax.xml.parsers.ParserConfigurationException;
|
37 |
41444
|
argiro.kok
|
import javax.xml.transform.TransformerException;
|
38 |
40941
|
argiro.kok
|
import javax.xml.xpath.XPathExpressionException;
|
39 |
48294
|
argiro.kok
|
import java.io.File;
|
40 |
40941
|
argiro.kok
|
import java.io.IOException;
|
41 |
46977
|
argiro.kok
|
import java.math.BigInteger;
|
42 |
|
|
import java.security.MessageDigest;
|
43 |
41157
|
argiro.kok
|
import java.sql.ResultSet;
|
44 |
46956
|
konstantin
|
import java.util.*;
|
45 |
40086
|
argiro.kok
|
|
46 |
40941
|
argiro.kok
|
import static junit.framework.Assert.assertNotNull;
|
47 |
|
|
|
48 |
40005
|
argiro.kok
|
/**
|
49 |
41260
|
argiro.kok
|
* @author eri
|
50 |
|
|
*/
|
51 |
40005
|
argiro.kok
|
@RunWith(SpringJUnit4ClassRunner.class)
|
52 |
42214
|
argiro.kok
|
@ContextConfiguration(locations = {"../claims/migration/springContext-claimsDemo.xml"})
|
53 |
47008
|
argiro.kok
|
@PropertySource("../claims/migration/springContext-claimsDemo.properties")
|
54 |
40005
|
argiro.kok
|
public class TestClass {
|
55 |
|
|
private Logger log = Logger.getLogger(this.getClass());
|
56 |
40946
|
argiro.kok
|
|
57 |
40005
|
argiro.kok
|
|
58 |
|
|
private SqlDAO sqlDAO;
|
59 |
42199
|
argiro.kok
|
private SqlStore sqlStore;
|
60 |
40005
|
argiro.kok
|
|
61 |
41162
|
argiro.kok
|
private QueryGenerator queryGenerator;
|
62 |
40773
|
argiro.kok
|
|
63 |
41444
|
argiro.kok
|
RelationHandler relationHandler = null;
|
64 |
|
|
ContextRelationHandler contextRelationHandler = null;
|
65 |
|
|
ProjectHandler projectHandler = null;
|
66 |
46977
|
argiro.kok
|
DirectIndexHandler directIndexHandler = null;
|
67 |
46918
|
argiro.kok
|
FetchProjectHandler fetchProjectHandler = null;
|
68 |
41444
|
argiro.kok
|
DMFContextHandler dmfContextHandler = null;
|
69 |
|
|
DMFResultHandler dmfResultHandler = null;
|
70 |
|
|
IndexResultHandler indexResultHandler = null;
|
71 |
|
|
ExternalRecordHandler externalRecordHandler = null;
|
72 |
|
|
ResultHandler resultHandler = null;
|
73 |
41162
|
argiro.kok
|
|
74 |
41791
|
argiro.kok
|
FetchClaimHandler fetchClaimHandler = null;
|
75 |
41444
|
argiro.kok
|
ClaimHandler claimHandler = null;
|
76 |
47039
|
argiro.kok
|
ClaimValidation claimValidation = null;
|
77 |
41444
|
argiro.kok
|
|
78 |
|
|
|
79 |
41162
|
argiro.kok
|
@Before
|
80 |
40005
|
argiro.kok
|
public void init() throws Exception {
|
81 |
|
|
BasicConfigurator.configure();
|
82 |
41444
|
argiro.kok
|
ApplicationContext context = new ClassPathXmlApplicationContext("eu/dnetlib/data/claims/migration/springContext-claimsDemo.xml");
|
83 |
47008
|
argiro.kok
|
|
84 |
41444
|
argiro.kok
|
relationHandler = context.getBean(RelationHandler.class);
|
85 |
46977
|
argiro.kok
|
directIndexHandler = context.getBean(DirectIndexHandler.class);
|
86 |
41444
|
argiro.kok
|
contextRelationHandler = context.getBean(ContextRelationHandler.class);
|
87 |
|
|
projectHandler = context.getBean(ProjectHandler.class);
|
88 |
46918
|
argiro.kok
|
fetchProjectHandler = context.getBean(FetchProjectHandler.class);
|
89 |
41444
|
argiro.kok
|
dmfContextHandler = context.getBean(DMFContextHandler.class);
|
90 |
|
|
dmfResultHandler = context.getBean(DMFResultHandler.class);
|
91 |
|
|
externalRecordHandler = context.getBean(ExternalRecordHandler.class);
|
92 |
|
|
indexResultHandler = context.getBean(IndexResultHandler.class);
|
93 |
|
|
resultHandler = context.getBean(ResultHandler.class);
|
94 |
|
|
claimHandler = context.getBean(ClaimHandler.class);
|
95 |
41791
|
argiro.kok
|
sqlDAO = context.getBean(SqlDAO.class);
|
96 |
42199
|
argiro.kok
|
sqlStore = context.getBean(SqlStore.class);
|
97 |
41791
|
argiro.kok
|
queryGenerator = context.getBean(QueryGenerator.class);
|
98 |
|
|
fetchClaimHandler = context.getBean(FetchClaimHandler.class);
|
99 |
47039
|
argiro.kok
|
claimValidation = context.getBean(ClaimValidation.class);
|
100 |
40005
|
argiro.kok
|
|
101 |
41791
|
argiro.kok
|
assertNotNull(sqlDAO);
|
102 |
|
|
|
103 |
40005
|
argiro.kok
|
}
|
104 |
41791
|
argiro.kok
|
@Test
|
105 |
42199
|
argiro.kok
|
public void testRollback(){
|
106 |
|
|
List <String> commands = new ArrayList<String>();
|
107 |
|
|
commands.add("UPDATE claim SET claimedBy = 'argirok1' WHERE id = 93");
|
108 |
|
|
commands.add("EXCEPTION");
|
109 |
|
|
commands.add("UPDATE claim SET claimedBy = 'argirok2' WHERE id = 95");
|
110 |
|
|
try {
|
111 |
|
|
sqlStore.executeUpdateWithRollback(commands);
|
112 |
|
|
} catch (Exception e) {
|
113 |
47219
|
argiro.kok
|
log.error("",e);
|
114 |
42199
|
argiro.kok
|
}
|
115 |
|
|
}
|
116 |
|
|
@Test
|
117 |
41791
|
argiro.kok
|
public void testJson(){
|
118 |
|
|
Claim claim = new Claim();
|
119 |
|
|
Project project= new Project();
|
120 |
|
|
claim.setDate(Calendar.getInstance().getTime());
|
121 |
|
|
claim.setId("claimId");
|
122 |
|
|
claim.setUserMail("claim mail");
|
123 |
40005
|
argiro.kok
|
|
124 |
41791
|
argiro.kok
|
project.setFunderName("EC");
|
125 |
|
|
project.setOpenaireId("openaireID1234");
|
126 |
|
|
project.setName("PrTitle");
|
127 |
|
|
claim.setSource(project);
|
128 |
|
|
Result result = new Result();
|
129 |
|
|
result.setAccessRights("accessRights");
|
130 |
|
|
result.setCollectedFrom("collectedFrom");
|
131 |
|
|
result.setExternalUrl("external_url");
|
132 |
|
|
result.setOpenaireId("openaire_id");
|
133 |
|
|
result.setTitle("title");
|
134 |
|
|
result.setResultType("type");
|
135 |
|
|
result.setMetadataRecord("xmlString");
|
136 |
|
|
claim.setTarget(result);
|
137 |
|
|
System.out.println("test");
|
138 |
|
|
System.out.println(JsonldBuilder.toJsonld(claim));
|
139 |
|
|
}
|
140 |
40005
|
argiro.kok
|
|
141 |
41791
|
argiro.kok
|
@Test
|
142 |
|
|
public void testFetch() throws Exception {
|
143 |
|
|
|
144 |
|
|
try {
|
145 |
|
|
List<Claim> claims = null;
|
146 |
42762
|
argiro.kok
|
List<String> types= new ArrayList<String>();
|
147 |
|
|
// types.add(ClaimUtils.CONTEXT);
|
148 |
|
|
types.add(ClaimUtils.PROJECT);
|
149 |
|
|
types.add(ClaimUtils.DATASET);
|
150 |
|
|
types.add(ClaimUtils.PUBLICATION);
|
151 |
41791
|
argiro.kok
|
|
152 |
42762
|
argiro.kok
|
|
153 |
49865
|
argiro.kok
|
claims = fetchClaimHandler.fetchClaimsByUser("argirok_1@hotmail.com",1,0,types, false);
|
154 |
47039
|
argiro.kok
|
// claims = fetchClaimHandler.fetchClaimsByUser("argirok@di.uoa.gr",3,0,null,"claim.claim_date",false,types,false);
|
155 |
42762
|
argiro.kok
|
//
|
156 |
42214
|
argiro.kok
|
// claims = fetchClaimHandler.fetchClaimsByProject("corda_______::ab9c77ce02967b24fc9c1a74276e4677",5,0);
|
157 |
49865
|
argiro.kok
|
// claims = fetchClaimHandler.fetchClaimsByProject("corda__h2020::94c962e736df90a5075a7f660ba3d7f6",12,0,null, "claim.claim_date",false,types,true);
|
158 |
47059
|
konstantin
|
//claims = fetchClaimHandler.fetchClaimsByToken("corda__h2020::94c962e736df90a5075a7f660ba3d7f6","argiro@gmail.com",12,0,null, "claim.claim_date",false,types,false);
|
159 |
47039
|
argiro.kok
|
|
160 |
42762
|
argiro.kok
|
// claims = fetchClaimHandler.fetchClaimsByDate("2016-01-14 14:53:50","2016-04-21",10,0);
|
161 |
47039
|
argiro.kok
|
// claims = fetchClaimHandler.fetchClaimsByDate("2016-01-14 14:53:50","2017-04-21",10,0,"", "source",true,types, false);
|
162 |
42762
|
argiro.kok
|
// // 2016-04-20 14:53:50.276
|
163 |
|
|
// claims = fetchClaimHandler.fetchClaimsByContext("egi::country::gr",5,0,null,"claim.claim_date",false,types);
|
164 |
42214
|
argiro.kok
|
// claims = fetchClaimHandler.fetchAllClaims(5,3);
|
165 |
42762
|
argiro.kok
|
// claims = fetchClaimHandler.fetchClaimsByResult("od_______233::235960bb401207cb9595a79a1bc8e867",5,0,null, "claim.claim_date",false,types);
|
166 |
|
|
// claims = fetchClaimHandler.fetchClaimsByFunder("fct_________::FCT",5,0);
|
167 |
|
|
// claims= fetchClaimHandler.fetchClaimsByUser("kiatrop@di.uoa.gr",20,0,types);
|
168 |
|
|
// claims = fetchClaimHandler.fetchAllClaims(10,0,"","date",true,types);
|
169 |
41791
|
argiro.kok
|
|
170 |
42762
|
argiro.kok
|
System.out.println(fetchClaimHandler.claims2JSON(claims)+"\n\n\n "+claims.size());
|
171 |
|
|
// Claim claim = fetchClaimHandler.fetchClaimById("5821");
|
172 |
|
|
// System.out.println(fetchClaimHandler.claim2JSON(claim) );
|
173 |
|
|
// System.out.println("ALL:"+fetchClaimHandler.countClaimsByUser("argirok@di.uoa.gr","EGI", types));
|
174 |
|
|
// System.out.println("ALL:"+fetchClaimHandler.countClaimsByContext("egi::country::gr",null,types));
|
175 |
46918
|
argiro.kok
|
// System.out.println("ALL:"+fetchClaimHandler.countClaimsByProject("corda_______::ab9c77ce02967b24fc9c1a74276e4677",null,types));
|
176 |
42762
|
argiro.kok
|
|
177 |
|
|
// System.out.println("ALL:"+fetchClaimHandler.countAllClaims("", types));
|
178 |
|
|
// +"\n Project: "+fetchClaimHandler.countClaimsByProject("corda_______::ab9c77ce02967b24fc9c1a74276e4677")+
|
179 |
42281
|
argiro.kok
|
// " \n Result:"+fetchClaimHandler.countClaimsByResult("dedup_wf_001::541b1cef0d38d519e98a3b7a5b60bc75")+" \n Context:"+fetchClaimHandler.countClaimsByContext("egi::country::de")
|
180 |
|
|
// +" \n Date:"+fetchClaimHandler.countClaimsByDate("2014-04-14","2015-04-14")+" \n Funder:"+fetchClaimHandler.countClaimsByFunder("fct_________::FCT"));
|
181 |
41791
|
argiro.kok
|
} catch (Exception e) {
|
182 |
47219
|
argiro.kok
|
log.error("",e);
|
183 |
|
|
} catch (SQLStoreException e) {
|
184 |
41791
|
argiro.kok
|
e.printStackTrace();
|
185 |
|
|
}
|
186 |
|
|
}
|
187 |
|
|
@Test
|
188 |
42789
|
argiro.kok
|
public void testContext(){
|
189 |
|
|
System.out.print(DMFContextHandler.fetchContextById("egi::organisation::uom"));
|
190 |
|
|
}
|
191 |
|
|
@Test
|
192 |
47219
|
argiro.kok
|
public void testInsert() throws Exception, SQLStoreException {
|
193 |
42199
|
argiro.kok
|
//acm_________::31e0e5e7cbd6e2556336d7e795f55c49
|
194 |
41791
|
argiro.kok
|
//dedup_wf_001::64ca1e3a4d1590456ad3dd7df8a18cd7
|
195 |
49865
|
argiro.kok
|
/*
|
196 |
|
|
claimedBy argirok_1@hotmail.com
|
197 |
|
|
sourceId corda_______::2c37878a0cede85dbbd1081bb9b4a2f8
|
198 |
|
|
sourceType project
|
199 |
|
|
sourceCollectedFrom openaire
|
200 |
|
|
sourceAccessRights OPEN
|
201 |
|
|
sourceEmbargoEndDate
|
202 |
|
|
targetId 10.1007/978-3-540-76323-9_4
|
203 |
|
|
targetType software
|
204 |
|
|
targetCollectedFrom crossref
|
205 |
|
|
targetAccessRights EMBARGO
|
206 |
|
|
targetEmbargoEndDate 2028-11-10T13:55:47.935Z
|
207 |
|
|
*/
|
208 |
|
|
String id=claimHandler.buildAndInsertClaim("argirok_1@hotmail.com", "project", "corda__h2020::94c962e736df90a5075a7f660ba3d7f6", "openaire", "OPEN", null,"software", "10.1007/978-3-540-76323-9_4", "crossref", "EMBARGO","2028-11-10T13:55:47.935Z");
|
209 |
46918
|
argiro.kok
|
|
210 |
|
|
|
211 |
48294
|
argiro.kok
|
// String id=claimHandler.buildAndInsertClaim("argirok@di.uoa.gr", "context", "egi::country::gr",
|
212 |
|
|
// "openaire", null, null,"dataset", "10.4225/41/55A111BDE741C", "datacite", "OPEN","2017-05-01");
|
213 |
41791
|
argiro.kok
|
}
|
214 |
|
|
@Test
|
215 |
48294
|
argiro.kok
|
public void testDelete() throws Exception, SQLStoreException {
|
216 |
41791
|
argiro.kok
|
|
217 |
48294
|
argiro.kok
|
// claimHandler.deleteClaim("argirok@di.uoa.gr","2876");
|
218 |
42199
|
argiro.kok
|
// claimHandler.deleteClaim("argirok@di.uoa.gr","3101");
|
219 |
|
|
}
|
220 |
|
|
|
221 |
41791
|
argiro.kok
|
@Test
|
222 |
47219
|
argiro.kok
|
public void testJob() throws Exception, SQLStoreException {
|
223 |
46977
|
argiro.kok
|
String selectcountDMFClaims =" Select count(*) from claims where type='dmf2actions' and xml NOT ILIKE '%<oaf:concept%' ";
|
224 |
|
|
String selectCountConceptClaims =" Select count(*) from claims where ( type='dmf2actions' or type='updates2actions' ) and xml LIKE '%<oaf:concept%' ";
|
225 |
|
|
String selectCountRelationClaims =" Select count(*) from claims where type='rels2actions' ";
|
226 |
40005
|
argiro.kok
|
|
227 |
41791
|
argiro.kok
|
ResultSet rs = sqlDAO.executePreparedQuery(selectCountConceptClaims);
|
228 |
40005
|
argiro.kok
|
|
229 |
41621
|
argiro.kok
|
while(rs.next()) {
|
230 |
|
|
log.info("Concept claims: "+rs.getInt(1));
|
231 |
|
|
}
|
232 |
41791
|
argiro.kok
|
rs = sqlDAO.executePreparedQuery(selectCountRelationClaims);
|
233 |
40005
|
argiro.kok
|
|
234 |
41621
|
argiro.kok
|
while(rs.next()) {
|
235 |
|
|
log.info("Relation claims: "+rs.getInt(1));
|
236 |
|
|
}
|
237 |
41791
|
argiro.kok
|
rs = sqlDAO.executePreparedQuery("Select count(*) from claim");
|
238 |
41621
|
argiro.kok
|
|
239 |
41791
|
argiro.kok
|
while(rs.next()) {
|
240 |
|
|
log.info("Migrated claims: "+rs.getInt(1));
|
241 |
|
|
}
|
242 |
|
|
rs = sqlDAO.executePreparedQuery("Select count(*) from result");
|
243 |
|
|
|
244 |
|
|
while(rs.next()) {
|
245 |
|
|
log.info("Results: "+rs.getInt(1));
|
246 |
|
|
}
|
247 |
|
|
|
248 |
40005
|
argiro.kok
|
}
|
249 |
|
|
|
250 |
40086
|
argiro.kok
|
@Test
|
251 |
|
|
public void testHttpRequest() throws Exception {
|
252 |
|
|
SearchUtils searchUtils= new SearchUtils();
|
253 |
49865
|
argiro.kok
|
log.info(searchUtils.fetchPublicationXmlFromIndex("doajarticles::eb8a123eb82b25013b0001d0e2d1842b", false));
|
254 |
|
|
log.info(searchUtils.fetchDatasetXmlFromIndex("doajarticles::eb8a123eb82b25013b0001d0e2d1842b", false));
|
255 |
40086
|
argiro.kok
|
}
|
256 |
|
|
|
257 |
|
|
@Test
|
258 |
41444
|
argiro.kok
|
public void testXpath() throws Exception {
|
259 |
49865
|
argiro.kok
|
Result r=indexResultHandler.fetchResultById("dedup_wf_001::88a1eedd1ffce63dccf51d8ce2053c85", false);
|
260 |
40086
|
argiro.kok
|
}
|
261 |
|
|
|
262 |
|
|
@Test
|
263 |
49865
|
argiro.kok
|
public void testSoftwareXpath() throws Exception {
|
264 |
|
|
// http://scoobydoo.di.uoa.gr:5000/search/software?softwareId=datacite____%3A%3Aabe9e916b29d028789d7ae3c6f79f254
|
265 |
|
|
Result r=indexResultHandler.fetchSoftwareById("datacite____::abe9e916b29d028789d7ae3c6f79f254", false);
|
266 |
|
|
if(r!=null){
|
267 |
|
|
System.out.println(r.toString());
|
268 |
|
|
}
|
269 |
|
|
|
270 |
|
|
}
|
271 |
|
|
@Test
|
272 |
|
|
public void testPublicationXpath() throws Exception {
|
273 |
|
|
Result r=indexResultHandler.fetchPublicationById("od________18::5acd89ab4df2b877a7a208ea2a123a87", false);
|
274 |
|
|
if(r!=null){
|
275 |
|
|
System.out.println(r.toString());
|
276 |
|
|
}
|
277 |
|
|
|
278 |
|
|
}
|
279 |
|
|
|
280 |
|
|
@Test
|
281 |
41444
|
argiro.kok
|
public void testParsingDMF() throws IOException, SAXException, ParserConfigurationException, XPathExpressionException, TransformerException {
|
282 |
|
|
Result r=DMFParser.dmf2Result("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
|
283 |
40086
|
argiro.kok
|
"<record xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:prov=\"http://www.openarchives.org/OAI/2.0/provenance\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:dri=\"http://www.driver-repository.eu/namespace/dri\" xmlns:dr=\"http://www.driver-repository.eu/namespace/dr\" xmlns:oaf=\"http://namespace.openaire.eu/oaf\">\n" +
|
284 |
|
|
" <header xmlns=\"http://namespace.openaire.eu/\">\n" +
|
285 |
|
|
" <dri:objIdentifier>crossref____::47593e13b24bcdd0f3d5573499f1d3a9</dri:objIdentifier>\n" +
|
286 |
|
|
" <dri:recordIdentifier>10.1088/0004-637X/761/1/34</dri:recordIdentifier>\n" +
|
287 |
|
|
" <dri:dateOfCollection></dri:dateOfCollection>\n" +
|
288 |
|
|
" <dri:mdFormat></dri:mdFormat>\n" +
|
289 |
|
|
" <dri:mdFormatInterpretation></dri:mdFormatInterpretation>\n" +
|
290 |
|
|
" <dri:repositoryId></dri:repositoryId>\n" +
|
291 |
|
|
" <dr:objectIdentifier></dr:objectIdentifier>\n" +
|
292 |
|
|
" <dr:dateOfCollection>2014-10-10T14:59:49+00:00</dr:dateOfCollection>\n" +
|
293 |
|
|
" <oaf:datasourceprefix>crossref____</oaf:datasourceprefix>\n" +
|
294 |
|
|
" </header>\n" +
|
295 |
|
|
" <metadata xmlns=\"http://namespace.openaire.eu/\">\n" +
|
296 |
|
|
" <dc:dateAccepted>2012-01-01T00:00:00Z</dc:dateAccepted>\n" +
|
297 |
|
|
" <dc:identifier>http://stacks.iop.org/0004-637X/761/i=1/a=34?key=crossref.d14dae8ac205453af63561a69c108e13</dc:identifier>\n" +
|
298 |
|
|
" <dc:title>A THREE-DIMENSIONAL VIEW OF THE REMNANT OF NOVA PERSEI 1901 (GK Per)</dc:title>\n" +
|
299 |
|
|
" <oaf:collectedDatasourceid>openaire____::crossref</oaf:collectedDatasourceid>\n" +
|
300 |
41444
|
argiro.kok
|
" <oaf:accessrights></oaf:accessrights>\n" +
|
301 |
40086
|
argiro.kok
|
" <oaf:hostedBy name=\"Unknown Repository\" id=\"openaire____::1256f046-bf1f-4afc-8b47-d0b147148b18\"/>\n" +
|
302 |
|
|
" <oaf:collectedFrom name=\"Crossref\" id=\"openaire____::crossref\" />\n" +
|
303 |
|
|
"\n" +
|
304 |
|
|
" <dc:creator>Liimets, T.</dc:creator>\n" +
|
305 |
41161
|
katerina.i
|
" generateCreateClaimTablesQuery <dc:creator>Corradi, R. L. M.</dc:creator>\n" +
|
306 |
40086
|
argiro.kok
|
" <dc:creator>Santander-García, M.</dc:creator>\n" +
|
307 |
|
|
" <dc:creator>Villaver, E.</dc:creator>\n" +
|
308 |
|
|
" <dc:creator>Rodríguez-Gil, P.</dc:creator>\n" +
|
309 |
|
|
" <dc:creator>Verro, K.</dc:creator>\n" +
|
310 |
|
|
" <dc:creator>Kolka, I.</dc:creator>\n" +
|
311 |
|
|
"\n" +
|
312 |
|
|
" <dc:identifier identifierType=\"doi\">10.1088/0004-637X/761/1/34</dc:identifier>\n" +
|
313 |
|
|
" <dr:CobjIdentifier>10.1088/0004-637X/761/1/34</dr:CobjIdentifier>\n" +
|
314 |
|
|
" </metadata>\n" +
|
315 |
|
|
"</record>");
|
316 |
|
|
log.info(r.toString());
|
317 |
|
|
|
318 |
|
|
}
|
319 |
40696
|
argiro.kok
|
@Test
|
320 |
|
|
public void dropClaimTables() throws Exception {
|
321 |
41444
|
argiro.kok
|
// sqlDAO.executeUpdateQuery(queryGenerator.generateDeleteClaimTablesQuery());
|
322 |
40696
|
argiro.kok
|
}
|
323 |
|
|
@Test
|
324 |
|
|
public void createClaimTables() throws Exception {
|
325 |
46977
|
argiro.kok
|
// sqlDAO.executeUpdateQuery(queryGenerator.generateCreateClaimTablesQuery());
|
326 |
40696
|
argiro.kok
|
}
|
327 |
41157
|
argiro.kok
|
|
328 |
41003
|
argiro.kok
|
@Test
|
329 |
41104
|
argiro.kok
|
public void validDoiTest() throws Exception {
|
330 |
41003
|
argiro.kok
|
String doi="10.1523/JNEUROSCI.2900-11.2012";
|
331 |
41444
|
argiro.kok
|
doi="10.1523/JNEUROSCI.2900-11.2012";
|
332 |
|
|
String tr_doi=doi=dmfResultHandler.checkDoiValidity(doi);
|
333 |
41003
|
argiro.kok
|
System.out.println("Initial doi:"+doi+" "+((doi.equals(tr_doi))?"":" Transformed to"+tr_doi));
|
334 |
40773
|
argiro.kok
|
|
335 |
41003
|
argiro.kok
|
}
|
336 |
40941
|
argiro.kok
|
|
337 |
41104
|
argiro.kok
|
@Test
|
338 |
|
|
public void buildProject() throws Exception {
|
339 |
41444
|
argiro.kok
|
String id = "arc_________::089188bbc5db213fb2b00a0d93043fc4";
|
340 |
49865
|
argiro.kok
|
Project pr = projectHandler.fetchProjectByID(id,false);
|
341 |
41444
|
argiro.kok
|
log.info(pr.toString());
|
342 |
41104
|
argiro.kok
|
id="corda_______::404d91e07cd4d32fddd8fc636ad4daf7";
|
343 |
49865
|
argiro.kok
|
pr = projectHandler.fetchProjectByID(id, false);
|
344 |
41444
|
argiro.kok
|
log.info(pr.toString());
|
345 |
41104
|
argiro.kok
|
|
346 |
|
|
}
|
347 |
41157
|
argiro.kok
|
@Test
|
348 |
|
|
public void test() throws Exception {
|
349 |
41350
|
argiro.kok
|
String xml="<?xml version=\"1.0\" encoding=\"UTF-8\"?><response>\t <header>\t\t <query>(((deletedbyinference = false) AND (oaftype exact result)) and (resulttypeid exact publication)) and (objidentifier exact od______1266::af81022e9c489007a8f9ab27c2c725cb)</query>\t\t\t\t <locale>en_GB</locale>\t\t\t\t\t\t<size>10</size>\t\t\t <page>1</page>\t\t\t <total>1</total>\t\t\t\t\t</header>\t <results>\t\t\t\t\t\t\t\t\t<result xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:dri=\"http://www.driver-repository.eu/namespace/dri\" xmlns:oaf=\"http://namespace.openaire.eu/oaf\"> <header> <dri:objIdentifier>od______1266::af81022e9c489007a8f9ab27c2c725cb</dri:objIdentifier> <dri:dateOfCollection>2015-08-14T07:08:53.549Z</dri:dateOfCollection> <counters>\t <counter_authorship value=\"2\"/> <counter_outcome value=\"1\"/>\t </counters> </header> <metadata> <oaf:entity xsi:schemaLocation=\"http://namespace.openaire.eu/oaf https://www.openaire.eu/schema/0.3/oaf-0.3.xsd\">\t\t <oaf:result>\t\t\t <subject classid=\"keyword\" classname=\"keyword\" schemeid=\"dnet:result_subject\" schemename=\"dnet:result_subject\">MATLAB</subject> <subject classid=\"keyword\" classname=\"keyword\" schemeid=\"dnet:result_subject\" schemename=\"dnet:result_subject\">Lecture</subject> <subject classid=\"keyword\" classname=\"keyword\" schemeid=\"dnet:result_subject\" schemename=\"dnet:result_subject\">Exercises</subject> <subject classid=\"keyword\" classname=\"keyword\" schemeid=\"dnet:result_subject\" schemename=\"dnet:result_subject\">Exercises in Linear Vibration Theory</subject> <subject classid=\"keyword\" classname=\"keyword\" schemeid=\"dnet:result_subject\" schemename=\"dnet:result_subject\">System Conditions</subject> <subject classid=\"keyword\" classname=\"keyword\" schemeid=\"dnet:result_subject\" schemename=\"dnet:result_subject\">MATLAB</subject> <subject classid=\"keyword\" classname=\"keyword\" schemeid=\"dnet:result_subject\" schemename=\"dnet:result_subject\">Exercises</subject> <subject classid=\"keyword\" classname=\"keyword\" schemeid=\"dnet:result_subject\" schemename=\"dnet:result_subject\">Exercises in Linear Vibration Theory</subject> <subject classid=\"keyword\" classname=\"keyword\" schemeid=\"dnet:result_subject\" schemename=\"dnet:result_subject\">System Conditions</subject> <subject classid=\"keyword\" classname=\"keyword\" schemeid=\"dnet:result_subject\" schemename=\"dnet:result_subject\">Damping Coefficient</subject> <subject classid=\"keyword\" classname=\"keyword\" schemeid=\"dnet:result_subject\" schemename=\"dnet:result_subject\">Lecture</subject> <title classid=\"main title\" classname=\"main title\" schemeid=\"dnet:dataCite_title\" schemename=\"dnet:dataCite_title\">Vibration Theory, Vol. 1B:linear vibration theory, MATLAB exercises</title> <dateofacceptance>1996-02-01</dateofacceptance> <publisher>Department of Mechanical Engineering, Aalborg University</publisher> <resulttype classid=\"publication\" classname=\"publication\" schemeid=\"dnet:result_typologies\" schemename=\"dnet:result_typologies\"/> <language classid=\"eng\" classname=\"English\" schemeid=\"dnet:languages\" schemename=\"dnet:languages\"/> <format>application/pdf</format> <description>The present collection of MATLAB exercises has been published as a supplement to the textbook, Svingningsteori, Bind 1 and the collection of exercises in Vibration theory, Vol. 1A, Solved Problems. Throughout the exercise references are made to these books.<br/><br/>The purpose of the MATLAB exercises is to give a better understanding of the physical problems in linear vibration theory and to surpress the mathematical analysis used to solve the problems. For this purpose the MATLAB environment is excellent.</description> <description>The present collection of MATLAB exercises has been published as a supplement to the textbook, Svingningsteori, Bind 1 and the collection of exercises in Vibration theory, Vol. 1A, Solved Problems. Throughout the exercise references are made to these books.<br/><br/>The purpose of the MATLAB exercises is to give a better understanding of the physical problems in linear vibration theory and to surpress the mathematical analysis used to solve the problems. For this purpose the MATLAB environment is excellent.</description> <source>Asmussen , J C & Nielsen , S R K 1996 , Vibration Theory, Vol. 1B : linear vibration theory, MATLAB exercises . Department of Mechanical Engineering, Aalborg University , Aalborg . U/ , no. 9601</source> <country classid=\"\" classname=\"\" schemeid=\"\" schemename=\"\"/> <relevantdate classid=\"\" classname=\"\" schemeid=\"\" schemename=\"\"/> <embargoenddate/> <fulltext/> <storagedate/> <resourcetype classid=\"\" classname=\"\" schemeid=\"\" schemename=\"\"/> <device/> <size/> <version/> <lastmetadataupdate/> <metadataversionnumber/> <originalId>oai:pure.atira.dk:publications/0b993280-a86a-11da-8341-000ea68e967b</originalId> <collectedfrom name=\"VBN\" id=\"opendoar____::8e2cfdc275761edc592f73a076197c33\"/> <pid classid=\"oai\" classname=\"oai\" schemeid=\"dnet:pid_types\" schemename=\"dnet:pid_types\">oai:pure.atira.dk:publications/0b993280-a86a-11da-8341-000ea68e967b</pid> <bestlicense classid=\"OPEN\" classname=\"Open Access\" schemeid=\"dnet:access_modes\" schemename=\"dnet:access_modes\"/> <context id=\"FCT\" label=\"Fundação para a Ciência e a Tecnologia, I.P.\" type=\"funding\"> <category id=\"FCT::3599-PPCDT\" label=\"3599-PPCDT\"/> </context> <datainfo> <inferred>false</inferred> <deletedbyinference>false</deletedbyinference> <trust>0.9</trust> <inferenceprovenance/> <provenanceaction classid=\"sysimport:crosswalk:repository\" classname=\"sysimport:crosswalk:repository\" schemeid=\"dnet:provenanceActions\" schemename=\"dnet:provenanceActions\"/> </datainfo>\t\t <rels>\t\t <rel inferred=\"false\" trust=\"0.9\" inferenceprovenance=\"\" provenanceaction=\"user:claim:search\">\t\t <to class=\"isProducedBy\" scheme=\"dnet:result_project_relations\" type=\"project\">fct_________::0432268334291febec6d0dbc1f8bae5d</to>\t\t <websiteurl>http://www.fct.pt/apoios/projectos/consulta/vglobal_projecto.phtml.en?idProjecto=83907&idElemConcurso=2612</websiteurl> <code>83907</code> <acronym>MIT-Pt/BS-CTRM/0051/2008</acronym> <title>Smart small-scale devices: systems for controlled delivery of bioactive molecules, cell expansion and for sensing cell environment.</title> <contracttype classid=\"UNKNOWN\" classname=\"UNKNOWN\" schemeid=\"fct:contractTypes\" schemename=\"fct:contractTypes\"/> <funding> <funder id=\"fct_________::FCT\" shortname=\"FCT\" name=\"Fundação para a Ciência e a Tecnologia, I.P.\" jurisdiction=\"PT\"/> <funding_level_0 name=\"3599-PPCDT\">fct_________::FCT::3599-PPCDT</funding_level_0> </funding>\t\t </rel> <rel inferred=\"true\" trust=\"0.9\" inferenceprovenance=\"\" provenanceaction=\"sysimport:crosswalk:repository\">\t\t <to class=\"hasAuthor\" scheme=\"dnet:personroles\" type=\"person\">dedup_wf_001::b3bccc606f9dfe608199defb1f89b4d2</to>\t\t <ranking>1</ranking> <fullname>Asmussen, J.C.</fullname>\t\t </rel> <rel inferred=\"true\" trust=\"0.9\" inferenceprovenance=\"\" provenanceaction=\"sysimport:crosswalk:repository\">\t\t <to class=\"hasAuthor\" scheme=\"dnet:personroles\" type=\"person\">dedup_wf_001::facd63932e76860852cdd2ca9d33f45c</to>\t\t <ranking>2</ranking> <fullname>Søren R. K. Nielsen</fullname>\t\t </rel>\t\t </rels>\t\t <children>\t\t\t <instance id=\"opendoar____::8e2cfdc275761edc592f73a076197c33\">\t\t\t <licence classid=\"OPEN\" classname=\"Open Access\" schemeid=\"dnet:access_modes\" schemename=\"dnet:access_modes\"/> <instancetype classid=\"0002\" classname=\"Book\" schemeid=\"dnet:publication_resource\" schemename=\"dnet:publication_resource\"/> <hostedby name=\"VBN\" id=\"opendoar____::8e2cfdc275761edc592f73a076197c33\"/>\t\t\t\t <webresource>\t\t\t\t <url>http://vbn.aau.dk/da/publications/vibration-theory-vol-1b(0b993280-a86a-11da-8341-000ea68e967b).html</url>\t\t\t\t </webresource>\t\t\t\t <webresource>\t\t\t\t <url>http://vbn.aau.dk/ws/files/57794257/vibration_theory_vol._1b_linear_vibration_theory_MATLAB_exercises.pdf</url>\t\t\t\t </webresource>\t\t\t </instance>\t\t </children>\t\t </oaf:result> </oaf:entity> </metadata> </result>\t\t\t\t\t\t</results>\t <browseResults>\t\t\t</browseResults></response>\n";
|
350 |
46755
|
katerina.i
|
|
351 |
41350
|
argiro.kok
|
SearchUtils searchUtils = new SearchUtils();
|
352 |
|
|
Integer size=searchUtils.getNumberOfResultsInAPIXML(xml);
|
353 |
|
|
log.info(size);
|
354 |
|
|
xml="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
|
355 |
|
|
"<record xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:prov=\"http://www.openarchives.org/OAI/2.0/provenance\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:dri=\"http://www.driver-repository.eu/namespace/dri\" xmlns:dr=\"http://www.driver-repository.eu/namespace/dr\" xmlns:oaf=\"http://namespace.openaire.eu/oaf\">\n" +
|
356 |
|
|
" <header xmlns=\"http://namespace.openaire.eu/\">\n" +
|
357 |
|
|
" <dri:objIdentifier>orcid_______::4f9638b3f0fecbe3de2f9dde824c36d1</dri:objIdentifier>\n" +
|
358 |
|
|
" <dri:recordIdentifier>0000-0002-3477-3082-5288651</dri:recordIdentifier>\n" +
|
359 |
|
|
" <dri:dateOfCollection></dri:dateOfCollection>\n" +
|
360 |
|
|
" <dri:mdFormat></dri:mdFormat>\n" +
|
361 |
|
|
" <dri:mdFormatInterpretation></dri:mdFormatInterpretation>\n" +
|
362 |
|
|
" <dri:repositoryId></dri:repositoryId>\n" +
|
363 |
|
|
" <dr:objectIdentifier></dr:objectIdentifier>\n" +
|
364 |
|
|
" <dr:dateOfCollection>2015-08-19T14:40:37+00:00</dr:dateOfCollection>\n" +
|
365 |
|
|
" <oaf:datasourceprefix>openaire____</oaf:datasourceprefix>\n" +
|
366 |
|
|
" </header>\n" +
|
367 |
|
|
" <metadata xmlns=\"http://namespace.openaire.eu/\">\n" +
|
368 |
|
|
" <dc:dateAccepted>2012-01-01T00:00:00Z</dc:dateAccepted>\n" +
|
369 |
|
|
" <dc:identifier>http://dx.doi.org/10.1007/978_3_642_27169_4_2</dc:identifier>\n" +
|
370 |
|
|
" <dc:title>A Survey of Context-Aware Cross-Digital Library Personalization</dc:title>\n" +
|
371 |
|
|
" <oaf:collectedDatasourceid>openaire____::orcid</oaf:collectedDatasourceid>\n" +
|
372 |
|
|
" <oaf:accessrights>OPEN</oaf:accessrights>\n" +
|
373 |
|
|
" <oaf:embargoenddate></oaf:embargoenddate>\n" +
|
374 |
|
|
" <oaf:hostedBy name=\"Unknown Repository\" id=\"openaire____::1256f046-bf1f-4afc-8b47-d0b147148b18\"/>\n" +
|
375 |
|
|
" <oaf:collectedFrom name=\"ORCID\" id=\"openaire____::orcid\" />\n" +
|
376 |
|
|
" \n" +
|
377 |
|
|
" <dc:creator>Manola, Natalia</dc:creator>\n" +
|
378 |
|
|
" <dc:creator>Nika, Ana</dc:creator>\n" +
|
379 |
|
|
" <dc:creator>Catarci, Tiziana</dc:creator>\n" +
|
380 |
|
|
" <dc:creator>Ioannidis, Yannis</dc:creator>\n" +
|
381 |
|
|
" <dc:creator>Katifori, Akrivi</dc:creator>\n" +
|
382 |
|
|
" <dc:creator>Koutrika, Georgia</dc:creator>\n" +
|
383 |
|
|
" <dc:creator>Manola, Natalia</dc:creator>\n" +
|
384 |
|
|
" <dc:creator>Nürnberger, Andreas</dc:creator>\n" +
|
385 |
|
|
" <dc:creator>Thaller, Manfred</dc:creator>\n" +
|
386 |
|
|
" \n" +
|
387 |
|
|
"\n" +
|
388 |
|
|
" <oaf:identifier identiferType=\"orcidworkid\">0000-0002-3477-3082-5288651</oaf:identifier>\n" +
|
389 |
|
|
"\n" +
|
390 |
|
|
" </metadata>\n" +
|
391 |
|
|
"</record>";
|
392 |
41444
|
argiro.kok
|
dmfResultHandler.fetchAccessRights(xml);
|
393 |
|
|
dmfResultHandler.fetchDoiByDMF(xml);
|
394 |
|
|
dmfResultHandler.fetchEmbargoEndDateByDMF(xml);
|
395 |
|
|
dmfResultHandler.fetchOrcidWorkByDMF(xml);
|
396 |
41350
|
argiro.kok
|
|
397 |
41444
|
argiro.kok
|
|
398 |
41157
|
argiro.kok
|
}
|
399 |
41104
|
argiro.kok
|
|
400 |
41199
|
argiro.kok
|
@Test
|
401 |
41444
|
argiro.kok
|
public void buildOpenaireResult() throws Exception {
|
402 |
|
|
|
403 |
41350
|
argiro.kok
|
Migration migration= new Migration();
|
404 |
|
|
Result r=migration.buildOpenaireResult("datacite____::ddbd5c4c76598f27793bccf4a99843f7","");
|
405 |
|
|
log.info(r);
|
406 |
41260
|
argiro.kok
|
|
407 |
41199
|
argiro.kok
|
}
|
408 |
46918
|
argiro.kok
|
@Test
|
409 |
|
|
public void buildOpenaireProject() throws Exception {
|
410 |
|
|
String projetcId = "corda_______::2c37878a0cede85dbbd1081bb9b4a2f8";
|
411 |
|
|
Migration migration= new Migration();
|
412 |
|
|
Project r=migration.buildProject(projetcId,"");
|
413 |
|
|
log.info(r);
|
414 |
|
|
// this.fetchProjectHandler.updateContactEmailsByProjectId(projetcId,r.getContactEmails());
|
415 |
41199
|
argiro.kok
|
|
416 |
46918
|
argiro.kok
|
}
|
417 |
|
|
@Test
|
418 |
47219
|
argiro.kok
|
public void testProject() throws Exception, SQLStoreException {
|
419 |
46918
|
argiro.kok
|
// List<String> mails = new ArrayList<String>();
|
420 |
|
|
// mails.add("test1@mail.com");
|
421 |
|
|
// mails.add("test2@mail.com");
|
422 |
|
|
// mails.add("test3@mail.com");
|
423 |
|
|
// sqlDAO.executePreparedQuery(queryGenerator.generateInsertProjectQuery("123","test project","TEstP","","","",mails));
|
424 |
47039
|
argiro.kok
|
System.out.println("\n"+this.fetchProjectHandler.fetchContactEmailsByProjectId("corda__h2020::94c962e736df90a5075a7f660ba3d7f6")+"\n");
|
425 |
46918
|
argiro.kok
|
List<String> mails = new ArrayList<String>();
|
426 |
|
|
mails.add("test11111@mail.com");
|
427 |
|
|
mails.add("test122222@mail.com");
|
428 |
48294
|
argiro.kok
|
this.projectHandler.updateContactEmailsByProjectId("123",mails);
|
429 |
47059
|
konstantin
|
// System.out.println("\n"+this.projectHandler.fetchContactEmailsByProjectId("123")+"\n");
|
430 |
|
|
// String token = UUID.randomUUID().toString();
|
431 |
|
|
// this.projectHandler.updateTokenByProjectId("123",token);
|
432 |
46918
|
argiro.kok
|
|
433 |
|
|
|
434 |
|
|
|
435 |
|
|
}
|
436 |
46977
|
argiro.kok
|
@Test
|
437 |
|
|
public void testMD5() throws Exception {
|
438 |
48294
|
argiro.kok
|
String id = "10.1016/j.engstruct.2013.03.014";
|
439 |
|
|
String createdId = ExternalRecordParser.createOpenaireId(id);
|
440 |
|
|
String openaireId = "userclaim___::07ec9eb2278a11e352e3fa93a621411d";
|
441 |
|
|
System.out.println(createdId );
|
442 |
47008
|
argiro.kok
|
|
443 |
46977
|
argiro.kok
|
}
|
444 |
|
|
@Test
|
445 |
47219
|
argiro.kok
|
public void testCuration() throws Exception, SQLStoreException {
|
446 |
48294
|
argiro.kok
|
// boolean updated = claimHandler.updateClaimCurationInfo("argiro@gmail.com","1",true);
|
447 |
|
|
// System.out.println(updated);
|
448 |
47008
|
argiro.kok
|
}
|
449 |
47059
|
konstantin
|
|
450 |
47008
|
argiro.kok
|
@Test
|
451 |
47219
|
argiro.kok
|
public void testFetchProjectIdByToken() throws Exception, SQLStoreException {
|
452 |
47059
|
konstantin
|
String openaireId = this.fetchProjectHandler.fetchProjectIdByToken("dedc6979-1967-4ea2-a2ad-5135f95285ae", "test11111@mail.com");
|
453 |
|
|
System.out.println(openaireId);
|
454 |
|
|
}
|
455 |
|
|
|
456 |
|
|
@Test
|
457 |
46977
|
argiro.kok
|
public void directIndexClaim() throws Exception {
|
458 |
47039
|
argiro.kok
|
System.out.println(this.claimValidation.getPathToSaveReport());
|
459 |
48294
|
argiro.kok
|
String json = "{\"originalId\":\"userclaim____::d1e668dc81fa714aa98a558d9ce515fa\",\"title\":\"Expression of Ik6 and Ik8 Isoforms and Their Association with Relapse and Death in Mexican Children with Acute Lymphoblastic Leukemia\",\"authors\":[\"Reyes-León Adriana\",\"Juárez-Velázquez Rocío\",\"Medrano-Hernández Alma\",\"Cuenca-Roldán Teresa\",\"Salas-Labadía Consuelo\",\"del Pilar Navarrete-Meneses María\",\"Rivera-Luna Roberto\",\"López-Hernández Gerardo\",\"Paredes-Aguilera Rogelio\",\"Pérez-Vera Patricia\"],\"publisher\":\"Public Library of Science (PLoS)\",\"type\":\"publication\",\"pids\":[{\"type\":\"doi\",\"value\":\"10.1371/journal.pone.0130756\"}],\"licenseCode\":\"OPEN\",\"resourceType\":\"0001\",\"url\":\"http://dx.doi.org/10.1371/journal.pone.0130756\",\"hostedById\":\"openaire____::1256f046-bf1f-4afc-8b47-d0b147148b18\",\"collectedFromId\":\"openaire____::crossref\",\"contexts\":[\"egi::country::gr\"]}";
|
460 |
46977
|
argiro.kok
|
// System.out.println("\n\nFeed Response is: "+directIndexHandler.insertRecord(json));
|
461 |
|
|
|
462 |
48294
|
argiro.kok
|
// System.out.println("\n\nDelete Response is: "+directIndexHandler.deleteRecord("userclaim___::d1e668dc81fa714aa98a558d9ce515fa","openaire____::crossref"));
|
463 |
46977
|
argiro.kok
|
}
|
464 |
|
|
|
465 |
40005
|
argiro.kok
|
}
|