changed cardinality of identifier field as it fails!
This commit is contained in:
parent
e08f336a76
commit
8679310e6e
|
@ -470,8 +470,9 @@ class F3_01M_SPEC extends AbstractGuideline<Document> {
|
||||||
// System.out.println("\nMetadata includes the identifier for the data");
|
// System.out.println("\nMetadata includes the identifier for the data");
|
||||||
XMLApplicationProfile.ValidationResult res_F = profile.validate(id, t);
|
XMLApplicationProfile.ValidationResult res_F = profile.validate(id, t);
|
||||||
Map<String, Guideline.Result> results = res_F.getResults();
|
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;
|
int MaxScoreF3_01M_SPEC;
|
||||||
if ((int) res_F.getScore() == 50 ) {
|
if ((int) res_F.getScore() == 50 ) {
|
||||||
MaxScoreF3_01M_SPEC = (int) (((2*res_F.getScore()) * getWeight())/100);
|
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");
|
logger.debug("Metadata uses FAIR-compliant vocabularies");
|
||||||
XMLApplicationProfile.ValidationResult res_F = profile.validate(id, t);
|
XMLApplicationProfile.ValidationResult res_F = profile.validate(id, t);
|
||||||
Map<String, Guideline.Result> results = res_F.getResults();
|
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;
|
int MaxScoreI2_01M_SPEC;
|
||||||
if ((int) res_F.getScore() == 50 ) {
|
if ((int) res_F.getScore() == 50 ) {
|
||||||
MaxScoreI2_01M_SPEC = (int) (((2*res_F.getScore()) * getWeight())/100);
|
MaxScoreI2_01M_SPEC = (int) (((2*res_F.getScore()) * getWeight())/100);
|
||||||
|
|
Loading…
Reference in New Issue