This commit is contained in:
Miriam Baglioni 2023-04-18 10:21:12 +02:00
parent 6cc95c96a2
commit 697a134504
1 changed files with 3 additions and 7 deletions

View File

@ -71,19 +71,15 @@ public class SparkEoscTag {
}
public static <R extends Result> R tagForSoftware(Result s){
public static <R extends Result> R tagForSoftware(R s){
if (!Optional.ofNullable(s.getEoscifguidelines()).isPresent())
s.setEoscifguidelines(new ArrayList<>());
if (containsCriteriaNotebook(s)) {
if (!Optional.ofNullable(s.getEoscifguidelines()).isPresent())
s.setEoscifguidelines(new ArrayList<>());
addEIG(
s.getEoscifguidelines(), EOSC_JUPYTER_NOTEBOOK, EOSC_JUPYTER_NOTEBOOK, "",
COMPLIES_WITH);
}
if (containsCriteriaGalaxy(s)) {
if (!Optional.ofNullable(s.getEoscifguidelines()).isPresent())
s.setEoscifguidelines(new ArrayList<>());
addEIG(
s.getEoscifguidelines(), EOSC_GALAXY_WORKFLOW, EOSC_GALAXY_WORKFLOW, "", COMPLIES_WITH);
}