changed cardinality of identifier field as it fails!

This commit is contained in:
pispis 2024-05-24 09:48:50 +03:00
parent e08f336a76
commit 8679310e6e
1 changed files with 4 additions and 2 deletions

View File

@ -470,8 +470,9 @@ class F3_01M_SPEC extends AbstractGuideline<Document> {
// System.out.println("\nMetadata includes the identifier for the data");
XMLApplicationProfile.ValidationResult res_F = profile.validate(id, t);
Map<String, Guideline.Result> 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<Document> {
logger.debug("Metadata uses FAIR-compliant vocabularies");
XMLApplicationProfile.ValidationResult res_F = profile.validate(id, t);
Map<String, Guideline.Result> 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);