diff --git a/src/main/java/eu/dnetlib/validator2/validation/guideline/openaire/FAIR_Data_GuidelinesProfile.java b/src/main/java/eu/dnetlib/validator2/validation/guideline/openaire/FAIR_Data_GuidelinesProfile.java index fe2de34..40c756d 100644 --- a/src/main/java/eu/dnetlib/validator2/validation/guideline/openaire/FAIR_Data_GuidelinesProfile.java +++ b/src/main/java/eu/dnetlib/validator2/validation/guideline/openaire/FAIR_Data_GuidelinesProfile.java @@ -470,8 +470,9 @@ class F3_01M_SPEC extends AbstractGuideline { // System.out.println("\nMetadata includes the identifier for the data"); XMLApplicationProfile.ValidationResult res_F = profile.validate(id, t); Map results = res_F.getResults(); -// int MaxScoreF3_01M_SPEC = (int) ((res_F.score()*getWeight())/100); +// int MaxScoreF3_01M_SPEC = (int) ((res_F.getScore() * getWeight())/100); +// This is to validate that if one of the checks in the F3_01M class is successfull then the whole FAIR rule becomes successfull int MaxScoreF3_01M_SPEC; if ((int) res_F.getScore() == 50 ) { MaxScoreF3_01M_SPEC = (int) (((2*res_F.getScore()) * getWeight())/100); @@ -524,8 +525,9 @@ class I2_01M_SPEC extends AbstractGuideline { logger.debug("Metadata uses FAIR-compliant vocabularies"); XMLApplicationProfile.ValidationResult res_F = profile.validate(id, t); Map results = res_F.getResults(); -// int MaxScoreI2_01M_SPEC = (int) ((res_F.score()*getWeight())/100); +// int MaxScoreI2_01M_SPEC = (int) ((res_F.getScore() * getWeight())/100); +// This is to validate that if one of the checks in the F3_01M class is successfull then the whole FAIR rule becomes successfull int MaxScoreI2_01M_SPEC; if ((int) res_F.getScore() == 50 ) { MaxScoreI2_01M_SPEC = (int) (((2*res_F.getScore()) * getWeight())/100);