Revision 40964
Added by Eri Katsari over 8 years ago
modules/dnet-openaire-lodexport-wf/src/main/java/eu/dnetlib/iis/core/workflows/lodexport/Finalize.java | ||
---|---|---|
8 | 8 |
private static Logger log = Logger.getLogger(Finalize.class); |
9 | 9 |
|
10 | 10 |
public static void main(String[] args) throws Exception { |
11 |
log.debug("Finalizing..."); |
|
12 | 11 |
|
13 |
/* |
|
14 |
DataSource ds = null; |
|
15 |
try { |
|
16 |
ds = DB.getDatasource(args[0], args[1], args[2], args[3], args[4], args[5]); |
|
17 | 12 |
|
18 |
|
|
19 |
} catch (Exception e) { |
|
20 |
log.error("Datasource creation failed: " + e.toString(), e); |
|
21 |
System.out.println("Datasource creation failed: " + e.toString()); |
|
22 |
} |
|
23 |
|
|
24 |
|
|
25 |
RDFizer rdFizer = new RDFizer(); |
|
26 |
|
|
27 |
VirtGraph graph = new VirtGraph(ds); |
|
28 |
try { |
|
29 |
rdFizer.clearGraph(args[6], graph); |
|
30 |
} catch (Exception e) |
|
31 |
{ log.error("Failed to clear Graph: " + e.toString(),e); |
|
32 |
System.out.println("Failed to clear Graph: " + e.toString()); |
|
33 |
|
|
34 |
} |
|
35 |
|
|
36 |
|
|
37 |
}*/ |
|
38 |
|
|
39 | 13 |
} |
40 | 14 |
} |
Also available in: Unified diff
fixed error in json file