added properties file in the forlder for the workflow of project to result propagation. Changes the path in the classes implementing the propagation

This commit is contained in:
Miriam Baglioni 2023-12-22 11:46:15 +01:00
parent f2352e8a78
commit 2f7b9ad815
4 changed files with 79 additions and 2 deletions

View File

@ -28,7 +28,7 @@ public class PrepareProjectResultsAssociation {
.toString( .toString(
PrepareProjectResultsAssociation.class PrepareProjectResultsAssociation.class
.getResourceAsStream( .getResourceAsStream(
"/eu/dnetlib/dhp/projecttoresult/input_prepareprojecttoresult_parameters.json")); "/eu/dnetlib/dhp/wf/subworkflows/projecttoresult/input_prepareprojecttoresult_parameters.json"));
final ArgumentApplicationParser parser = new ArgumentApplicationParser(jsonConfiguration); final ArgumentApplicationParser parser = new ArgumentApplicationParser(jsonConfiguration);

View File

@ -33,7 +33,7 @@ public class SparkResultToProjectThroughSemRelJob {
.toString( .toString(
SparkResultToProjectThroughSemRelJob.class SparkResultToProjectThroughSemRelJob.class
.getResourceAsStream( .getResourceAsStream(
"/eu/dnetlib/dhp/projecttoresult/input_projecttoresult_parameters.json")); "/eu/dnetlib/dhp/wf/subworkflows/projecttoresult/input_projecttoresult_parameters.json"));
final ArgumentApplicationParser parser = new ArgumentApplicationParser(jsonConfiguration); final ArgumentApplicationParser parser = new ArgumentApplicationParser(jsonConfiguration);

View File

@ -0,0 +1,33 @@
[
{
"paramName":"s",
"paramLongName":"sourcePath",
"paramDescription": "the path of the sequencial file to read",
"paramRequired": true
},
{
"paramName":"asr",
"paramLongName":"allowedsemrels",
"paramDescription": "the types of the allowed datasources. Split by ;",
"paramRequired": true
},
{
"paramName":"h",
"paramLongName":"hive_metastore_uris",
"paramDescription": "the hive metastore uris",
"paramRequired": true
},
{
"paramName":"pu",
"paramLongName":"potentialUpdatePath",
"paramDescription": "the path of the potential updates ",
"paramRequired": true
},
{
"paramName":"al",
"paramLongName":"alreadyLinkedPath",
"paramDescription": "the path of the already linked project result_set",
"paramRequired": true
}
]

View File

@ -0,0 +1,44 @@
[
{
"paramName":"h",
"paramLongName":"hive_metastore_uris",
"paramDescription": "the hive metastore uris",
"paramRequired": true
},
{
"paramName":"sg",
"paramLongName":"saveGraph",
"paramDescription": "true if the new version of the graph must be saved",
"paramRequired": false
},
{
"paramName":"pu",
"paramLongName":"potentialUpdatePath",
"paramDescription": "the path of the potential updates ",
"paramRequired": true
},
{
"paramName":"al",
"paramLongName":"alreadyLinkedPath",
"paramDescription": "the path of the already linked project result_set",
"paramRequired": true
},
{
"paramName": "ssm",
"paramLongName": "isSparkSessionManaged",
"paramDescription": "the path where prepared info have been stored",
"paramRequired": false
},
{
"paramName": "out",
"paramLongName": "outputPath",
"paramDescription": "the path used to store temporary output files",
"paramRequired": true
},
{
"paramName": "test",
"paramLongName": "isTest",
"paramDescription": "true if it is a test running",
"paramRequired": false
}
]