Compare commits

..

No commits in common. "30578076bff1f3fd129deb69b8bea606017ba4aa" and "c58def9d17471f4c268cd4502ce2ced3e3ad0740" have entirely different histories.

4 changed files with 100 additions and 531 deletions

View File

@ -1,364 +0,0 @@
package eu.dnetlib.validator2.validation.guideline.openaire;
//import com.google.gson.Gson;
import eu.dnetlib.validator2.validation.guideline.*;
import org.w3c.dom.Document;
import java.util.*;
import java.util.stream.Collectors;
import static eu.dnetlib.validator2.validation.guideline.Cardinality.ONE;
import static eu.dnetlib.validator2.validation.guideline.Cardinality.ONE_TO_N;
public final class FAIR_Literature_GuidelinesProfile extends AbstractOpenAireProfile {
private static final String[] TITLE_TYPES = {
"AlternativeTitle", "Subtitle", "TranslatedTitle", "Other"
};
private static final String[] NAME_TYPES = {
"Organizational", "Personal"
};
private static final String[] CONTRIBUTOR_TYPES = {
"ContactPerson", "DataCollector", "DataCurator", "DataManager", "Distributor",
"Editor", "HostingInstitution", "Producer", "ProjectLeader", "ProjectManager", "ProjectMember",
"RegistrationAgency", "RegistrationAuthority", "RelatedPerson", "Researcher", "ResearchGroup",
"RightsHolder", "Sponsor", "Supervisor", "WorkPackageLeader", "Other"
};
private static final String[] FUNDER_IDENTIFIER_TYPES = {
"ISNI", "GRID", "Crossref Funder"
};
private static final String[] CONTRIBUTOR_NAME_IDENTIFIER_TYPES = {
"Funder", "FundingProgramme", "ProjectID", "Jurisdiction", "ProjectName", "ProjectAcronym"
};
private static final String[] rightsURIList = {
"info:eu-repo/semantics/closedAccess",
"info:eu-repo/semantics/embargoedAccess",
"info:eu-repo/semantics/restrictedAccess",
"info:eu-repo/semantics/openAccess"
};
private static final String[] IDENTIFIER_TYPES = {
"ARK", "arXiv", "bibcode", "DOI", "EAN13", "EISSN", "Handle", "IGSN", "ISBN",
"ISSN", "ISTC", "LISSN", "LSID", "PISSN", "PMID", "PURL", "UPC", "URL", "URN", "WOS",
};
private static final String[] PERSISTENT_IDENTIFIER_TYPES = {
"IGSN", "QID", "ARK", "IVOA", "CAS RN", "RRID", "URL", "RInChi", "ERM", "ISO 27729:2012 ISNI",
"EC Number", "PURL", "LSID", "TFClass Schema", "InChI", "w3id", "Handle", "DOI", "ORCID iD", "arXiv"
};
private static final String[] RELATION_TYPES = {
"IsCitedBy", "Cites", "IsSupplementTo", "IsSupplementedBy", "IsContinuedBy",
"Continues", "IsDescribedBy", "Describes", "HasMetadata", "IsMetadataFor", "HasVersion",
"IsVersionOf", "IsNewVersionOf", "IsPreviousVersionOf", "IsPartOf", "HasPart", "IsReferencedBy",
"References", "IsDocumentedBy", "Documents", "IsCompiledBy", "Compiles", "IsVariantFormOf",
"IsOriginalFormOf", "IsIdenticalTo", "IsReviewedBy", "Reviews", "IsDerivedFrom", "IsSourceOf",
"IsRequiredBy", "Requires"
};
private static final String[] RELATION_TYPES_LIMITED = {
"IsSupplementTo", "Describes", "IsMetadataFor", "IsPartOf"
};
private static final String[] RELATED_RESOURCE_GENERAL_TYPES = {
"Audiovisual", "Collection", "DataPaper", "Dataset", "Event", "Image", "InteractiveResource",
"Model", "PhysicalObject", "Service", "Software", "Sound", "Text", "Workflow", "Other"
};
private static final String[] EMBARGO_DATE_TYPES = {
"Created", "Collected"
};
private static final String[] NAME_IDENTIFIER_SCHEMES = {
"ORCID", "ISNI", "ROR", "GRID"
};
private static final String[] NAME_IDENTIFIER_SCHEMES_URIS = {
"https://orcid.org/", "http://www.isni.org/", "https://ror.org/", "https://www.grid.ac/"
};
private static final String[] RESOURCE_GENERAL_TYPES = {
"literature", "dataset", "software", "other research product"
};
private static final String[] RESOURCE_CONCEPT_URIS = {
"http://purl.org/coar/resource_type/c_1162", "http://purl.org/coar/resource_type/c_6501",
"http://purl.org/coar/resource_type/c_545b", "http://purl.org/coar/resource_type/c_b239",
"http://purl.org/coar/resource_type/c_2df8fbb1", "http://purl.org/coar/resource_type/c_dcae04bc",
"http://purl.org/coar/resource_type/c_beb9", "http://purl.org/coar/resource_type/c_3e5a",
"http://purl.org/coar/resource_type/c_ba08", "http://purl.org/coar/resource_type/c_3248",
"http://purl.org/coar/resource_type/c_2f33", "http://purl.org/coar/resource_type/c_86bc",
"http://purl.org/coar/resource_type/c_816b", "http://purl.org/coar/resource_type/c_8042",
"http://purl.org/coar/resource_type/c_71bd", "http://purl.org/coar/resource_type/c_18gh",
"http://purl.org/coar/resource_type/c_18ws", "http://purl.org/coar/resource_type/c_18hj",
"http://purl.org/coar/resource_type/c_18op", "http://purl.org/coar/resource_type/c_186u",
"http://purl.org/coar/resource_type/c_18wq", "http://purl.org/coar/resource_type/c_18wz",
"http://purl.org/coar/resource_type/c_18ww", "http://purl.org/coar/resource_type/c_efa0",
"http://purl.org/coar/resource_type/c_baaf", "http://purl.org/coar/resource_type/c_ba1f",
"http://purl.org/coar/resource_type/c_93fc", "http://purl.org/coar/resource_type/c_15cd",
"http://purl.org/coar/resource_type/c_18co", "http://purl.org/coar/resource_type/c_18cp",
"http://purl.org/coar/resource_type/c_6670", "http://purl.org/coar/resource_type/c_5794",
"http://purl.org/coar/resource_type/c_c94f", "http://purl.org/coar/resource_type/c_f744",
"http://purl.org/coar/resource_type/c_7a1f", "http://purl.org/coar/resource_type/c_bdcc",
"http://purl.org/coar/resource_type/c_db06", "http://purl.org/coar/resource_type/c_46ec",
"http://purl.org/coar/resource_type/c_0857", "http://purl.org/coar/resource_type/c_8544",
"http://purl.org/coar/resource_type/c_18cf", "http://purl.org/coar/resource_type/c_18cw",
"http://purl.org/coar/resource_type/c_18cd", "http://purl.org/coar/resource_type/c_18cc",
"http://purl.org/coar/resource_type/c_12ce", "http://purl.org/coar/resource_type/c_8a7e",
"http://purl.org/coar/resource_type/c_ecc8", "http://purl.org/coar/resource_type/c_c513",
"http://purl.org/coar/resource_type/c_12cd", "http://purl.org/coar/resource_type/c_12cc",
"http://purl.org/coar/resource_type/c_5ce6", "http://purl.org/coar/resource_type/c_ddb1",
"http://purl.org/coar/resource_type/c_e9a0", "http://purl.org/coar/resource_type/c_7ad9",
"http://purl.org/coar/resource_type/c_393c", "http://purl.org/coar/resource_type/c_1843"
};
private static final String[] RESOURCE_IDENTIFIER_TYPES = {
"ARK", "DOI", "Handle", "IGSN", "arXiv", "PURL", "URL", "URN", "PMID"
};
private static final String[] ACCESS_RIGHTS_URIS = {
"http://purl.org/coar/access_right/c_abf2", "http://purl.org/coar/access_right/c_abf2",
"http://purl.org/coar/access_right/c_16ec", "http://purl.org/coar/access_right/c_f1cf",
"http://purl.org/coar/access_right/c_16ec", "http://purl.org/coar/access_right/c_16ec",
"http://purl.org/coar/access_right/c_16ec", "http://purl.org/coar/access_right/c_14cb"
};
private static final String[] RESOURCE_VERSION_URIS = {
"http://purl.org/coar/version/c_b1a7d7d4d402bcce", "http://purl.org/coar/version/c_71e4c1898caa6e32",
"http://purl.org/coar/version/c_ab4af688f83e57aa", "http://purl.org/coar/version/c_fa2ee174bc00049f",
"http://purl.org/coar/version/c_970fb48d4fbd8a85", "http://purl.org/coar/version/c_e19f295774971610",
"http://purl.org/coar/version/c_dc82b40f9837b551", "http://purl.org/coar/version/c_be7fb7dd8ff6fe43"
};
private static final String[] RESOURCE_VERSION_LABELS = {
"AO", "SMUR", "AM", "P", "VoR", "CVoR", "EVoR", "NA"
};
private static final String[] DATE_TYPES = {
"Accepted", "Available", "Copyrighted", "Collected", "Created", "Issued", "Submitted", "Updated", "Valid"
};
private static final String[] FILE_OBJECT_TYPES = {
"fulltext", "dataset", "software", "other"
};
private static final String[] AUDIENCE_VOCABULARY = {
"Administrators", "Community Groups", "Counsellors", "Federal Funds Recipients and Applicants",
"Librarians", "News Media", "Other", "Parents and Families", "Policymakers", "Researchers",
"School Support Staff", "Student Financial Aid Providers", "Students", "Teachers"
};
// globally unique identifier
private static final ElementSpec F1_01D_SPEC = Builders.
forMandatoryElement("identifier", ONE).
// withMandatoryAttribute("identifierType", new PIDCheckValuePredicate()).
withMandatoryAttribute("identifierType", PERSISTENT_IDENTIFIER_TYPES).
build();
// persistent identifier
private static final ElementSpec F1_02D_SPEC = Builders.
forMandatoryElement("identifier", ONE).
withMandatoryAttribute("identifierType", IDENTIFIER_TYPES).
build();
// // To be implemented: In the case of OpenAIRE we suppose it succeeds
// private static final ElementSpec F4_01M_SPEC = Builders.
// forMandatoryElement("identifier", ONE).
// withMandatoryAttribute("identifierType", RESOURCE_IDENTIFIER_TYPES).
// build();
private static final ElementSpec A1_01M_SPEC = Builders.
forMandatoryElement("rights", ONE_TO_N).
withMandatoryAttribute("rightsURI", rightsURIList).
build();
// // To be implemented
// private static final ElementSpec A2_01M_SPEC = Builders.
// forMandatoryElement("subject", ONE_TO_N).
// withMandatoryAttribute("subjectScheme").
// withMandatoryAttribute("schemeURI").
// build();
// // To be implemented
// private static final ElementSpec I1_01M_SPEC = Builders.
// forMandatoryElement("subject", ONE_TO_N).
// build();
// // To be implemented
// // I1_02M Metadata uses semantic resources
// private static final ElementSpec I1_02M_SPEC = Builders.
// forMandatoryElement("subject", ONE).
// build();
private static final ElementSpec I3_01M_SPEC_1 = Builders.
forMandatoryElement("relatedIdentifier", ONE_TO_N).
withMandatoryAttribute("relatedIdentifierType", IDENTIFIER_TYPES).
withMandatoryAttribute("relationType", RELATION_TYPES).
build();
// private static final ElementSpec I3_01M_SPEC_2 = Builders.
// forMandatoryElement("creator", ONE_TO_N).
// withMandatoryAttribute("creatorName").
// withMandatoryAttribute("nameIdentifier", NAME_IDENTIFIER_SCHEMES).
// withMandatoryAttribute("nameIdentifierScheme", NAME_IDENTIFIER_SCHEMES).
// withMandatoryAttribute("schemeURI", NAME_IDENTIFIER_SCHEMES_URIS).
// withMandatoryAttribute("affiliation", NAME_IDENTIFIER_SCHEMES).
// build();
// TO BE IMPLEMENTED
private static final ElementSpec R1_1_01M_SPEC = Builders.
forMandatoryElement("rights", ONE_TO_N)
.atPosition(ElementPosition.FIRST)
.withMandatoryAttribute("rightsURI") // Not in the rightsURIList HOW TO IMPLEMENT?????
// .withMandatoryAttribute("rightsURI", rightsURIList) // Not in the rightsURIList HOW TO IMPLEMENT?????
.build();
//TODO: weights for guidelines haven't been finalized. They've been given an arbitrary value of 10.
public static SyntheticGuideline F1_01D = SyntheticGuideline.of("Data is identified by a persistent identifier", 10, F1_01D_SPEC);
public static SyntheticGuideline F1_02D = SyntheticGuideline.of("Data is identified by a globally unique identifier", 10, F1_02D_SPEC);
// public static SyntheticGuideline F4_01M = SyntheticGuideline.of("F4_01M", 10, F4_01M_SPEC);
public static SyntheticGuideline A1_01M = SyntheticGuideline.of("Metadata contains information to enable the user to get access to the data", 10, A1_01M_SPEC);
// public static SyntheticGuideline A2_01M = SyntheticGuideline.of("A2_01M", 10, A2_01M_SPEC);
// public static SyntheticGuideline I1_01M = SyntheticGuideline.of("I1_01M", 10, I1_01M_SPEC);
// public static SyntheticGuideline I1_02M = SyntheticGuideline.of("I1_02M", 10, I1_02M_SPEC);
public static SyntheticGuideline I3_01M_1 = SyntheticGuideline.of("Metadata includes references to other metadata", 10, I3_01M_SPEC_1);
// public static SyntheticGuideline I3_01M_2 = SyntheticGuideline.of("I3_01M_2", 5, I3_01M_SPEC_2);
// public static SyntheticGuideline R1_01M = SyntheticGuideline.of("R1_01M", 10, R1_01M_SPEC);
public static SyntheticGuideline R1_1_01M = SyntheticGuideline.of("Metadata includes information about the licence under which the data can be reused", 10, R1_1_01M_SPEC);
private static final List<Guideline<Document>> GUIDELINES = Collections.unmodifiableList(
Arrays.asList(
F1_01D,
F1_02D,
new F2_01M_SPEC(),
new F3_01M_SPEC(),
// F4_01M,
A1_01M,
// A2_01M,
// I1_01M,
// I1_02M,
new I2_01M_SPEC(),
I3_01M_1,
// I3_01M_2,
// R1_01M,
new R1_01M_SPEC(),
R1_1_01M,
new R1_2_01M_SPEC()
// new MetadataCompleteness()
// new I3_01M()
)
);
private static final Map<String, Guideline> GUIDELINE_MAP = GUIDELINES.
stream().
collect(Collectors.toMap(Guideline::getName, (guideline) -> guideline));
private static final int MAX_SCORE = GUIDELINES.stream().map(Guideline::getWeight).reduce(0, Integer::sum);
public FAIR_Literature_GuidelinesProfile() {
super("OpenAIRE FAIR Guidelines for Data Repositories Profile");
}
@Override
public Collection<? extends Guideline<Document>> guidelines() {
return GUIDELINES;
}
/**
*
* @param guidelineName
* @return
*/
@Override
public Guideline guideline(String guidelineName) {
return GUIDELINE_MAP.get(guidelineName);
}
@Override
public int maxScore() {
return MAX_SCORE;
}
}
//// TODO this goes to FAIRProfile
//class MetadataCompleteness extends AbstractGuideline<Document> {
//
// public MetadataCompleteness() {
// super("MetadataCompleteness", 40);
// }
//
// @Override
// public Result validate(String id, Document t) {
// DataArchiveGuidelinesV2Profile profile = new DataArchiveGuidelinesV2Profile();
//
// // <></>ODO: iterate over results and build one Guideline.Result
// try {
//// System.out.println("Processing MetadataCompleteness...");
// XMLApplicationProfile.ValidationResult res = profile.validate(id, t);
// Map<String, Result> results = res.results();
// int MaxScoreMetadataCompleteness = (int) ((res.score()*getWeight())/100);
//
//// System.out.println("Max score DataValidator(%): " + res.score());
//// System.out.println("Weight FAIRG: " + getWeight());
//// System.out.println("Max score MetadataCompleteness: " + MaxScoreMetadataCompleteness);
//// System.out.println("\n\n\n\n");
//
//// for (Map.Entry entry : results.entrySet()) {
//// System.out.println(entry.getKey() + " = " + entry.getValue());
//// }
//// System.out.println(score);
// return getResult(MaxScoreMetadataCompleteness);
//
//// System.out.println(tempp.status() + " - " + tempp.score());
//// String printout = results.entrySet().stream().
//// map(entry -> entry.getValue() + ": " + entry.getKey()).collect(Collectors.joining("\n"));
//// System.out.println(printout);
//
//// System.out.println("\n\n\n\n");
// } catch (Exception e) {
// System.out.println(e.getMessage());
// System.out.println(e);
// e.printStackTrace();
// }
//
// return null;
// }
//
// private static Result getResult(int score) {
// String aa;
// aa = (score > 0) ? "SUCCESS" : "FAILURE";
// return new Result() {
// @Override
// public int score() {
// return score;
// }
//
// @Override
// public Status status() {
//// return null;
// return Status.valueOf(aa);
// }
//
// @Override
// public Iterable<String> warnings() { return null; }
//
// @Override
// public Iterable<String> errors() {
// return null;
// }
//
// @Override
// public String internalError() {
// return null;
// }
// };
// }
//}

View File

@ -217,54 +217,54 @@ public final class LiteratureGuidelinesV3Profile extends AbstractOpenAireProfile
and(new RegexValuePredicate(COMPILED_DATASET_REFERENCE_REG_EX).negate())));
}
public static final SyntheticGuideline TITLE = SyntheticGuideline.of("Title", "description", "https://guidelines.openaire.eu/en/latest/literature/field_title.html", "F",
public static final SyntheticGuideline TITLE = SyntheticGuideline.of("Title", "description", "link", "fairPrinciples",
4, RequirementLevel.MANDATORY, TITLE_SPEC);
public static final SyntheticGuideline CREATOR = SyntheticGuideline.of("Creator", "description", "https://guidelines.openaire.eu/en/latest/literature/field_creator.html", "F",
public static final SyntheticGuideline CREATOR = SyntheticGuideline.of("Creator", "description", "link", "fairPrinciples",
4, RequirementLevel.MANDATORY, CREATOR_SPEC);
public static final SyntheticGuideline PROJECT_IDENTIFIER = SyntheticGuideline.of("Project Identifier", "description", "https://guidelines.openaire.eu/en/latest/literature/field_projectid.html", "F",
5, RequirementLevel.MANDATORY_IF_APPLICABLE, PROJECT_IDENTIFIER_SPEC);
public static final SyntheticGuideline ACCESS_LEVEL = SyntheticGuideline.of("Access Level", "description", "https://guidelines.openaire.eu/en/latest/literature/field_accesslevel.html", "F",
public static final SyntheticGuideline PROJECT_IDENTIFIER = SyntheticGuideline.of("Project Identifier", "description", "link", "fairPrinciples",
5, RequirementLevel.MANDATORY, PROJECT_IDENTIFIER_SPEC);
public static final SyntheticGuideline ACCESS_LEVEL = SyntheticGuideline.of("Access Level", "description", "link", "fairPrinciples",
5, RequirementLevel.MANDATORY, ACCESS_LEVEL_SPEC);
public static final SyntheticGuideline LICENSE_CONDITION = SyntheticGuideline.of("License Condition", "description", "https://guidelines.openaire.eu/en/latest/literature/field_licensecondition.html", "F,R",
1, RequirementLevel.RECOMMENDED, LICENSE_CONDITION_SPEC);
public static final SyntheticGuideline EMBARGO_END_DATE = SyntheticGuideline.of("Embargo End Date", "description", "https://guidelines.openaire.eu/en/latest/literature/field_embargoenddate.html", "F",
5, RequirementLevel.MANDATORY_IF_APPLICABLE, EMBARGO_END_DATE_SPEC);
public static final SyntheticGuideline ALTERNATIVE_IDENTIFIER = SyntheticGuideline.of("Alternative Identifier", "description", "https://guidelines.openaire.eu/en/latest/literature/field_alternativeidentifier.html", "F",
5, RequirementLevel.RECOMMENDED, ALT_IDENTIFIER_SPEC);
public static final SyntheticGuideline PUBLICATION_REFERENCE = SyntheticGuideline.of("Publication Reference", "description", "https://guidelines.openaire.eu/en/latest/literature/field_publicationreference.html", "F",
2, RequirementLevel.RECOMMENDED, PUBLICATION_REF_SPEC);
public static final SyntheticGuideline DATASET_REFERENCE = SyntheticGuideline.of("Dataset Reference", "description", "https://guidelines.openaire.eu/en/latest/literature/field_datasetreference.html", "F",
2, RequirementLevel.RECOMMENDED, DATASET_REF_SPEC);
public static final SyntheticGuideline SUBJECT = SyntheticGuideline.of("Subject", "description", "https://guidelines.openaire.eu/en/latest/literature/field_subject.html", "F",
5, RequirementLevel.MANDATORY_IF_APPLICABLE, SUBJECT_SPEC);
public static final SyntheticGuideline DESCRIPTION = SyntheticGuideline.of("Description", "description", "https://guidelines.openaire.eu/en/latest/literature/field_description.html", "F,R",
5, RequirementLevel.MANDATORY_IF_APPLICABLE, DESCRIPTION_SPEC);
public static final SyntheticGuideline PUBLISHER = SyntheticGuideline.of("Publisher", "description", "https://guidelines.openaire.eu/en/latest/literature/field_publisher.html", "F",
5, RequirementLevel.MANDATORY_IF_APPLICABLE, PUBLISHER_SPEC);
public static final SyntheticGuideline CONTRIBUTOR = SyntheticGuideline.of("Contributor", "description", "https://guidelines.openaire.eu/en/latest/literature/field_contributor.html", "F",
2, RequirementLevel.RECOMMENDED, CONTRIBUTOR_SPEC);
public static final SyntheticGuideline PUBLICATION_DATE = SyntheticGuideline.of("Publication Date", "description", "https://guidelines.openaire.eu/en/latest/literature/field_publicationdate.html", "F",
public static final SyntheticGuideline LICENSE_CONDITION = SyntheticGuideline.of("License Condition", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, LICENSE_CONDITION_SPEC);
public static final SyntheticGuideline EMBARGO_END_DATE = SyntheticGuideline.of("Embargo End Date", "description", "link", "fairPrinciples",
5, RequirementLevel.MANDATORY, EMBARGO_END_DATE_SPEC);
public static final SyntheticGuideline ALTERNATIVE_IDENTIFIER = SyntheticGuideline.of("Alternative Identifier", "description", "link", "fairPrinciples",
5, RequirementLevel.MANDATORY, ALT_IDENTIFIER_SPEC);
public static final SyntheticGuideline PUBLICATION_REFERENCE = SyntheticGuideline.of("Publication Reference", "description", "link", "fairPrinciples",
2, RequirementLevel.MANDATORY, PUBLICATION_REF_SPEC);
public static final SyntheticGuideline DATASET_REFERENCE = SyntheticGuideline.of("Dataset Reference", "description", "link", "fairPrinciples",
2, RequirementLevel.MANDATORY, DATASET_REF_SPEC);
public static final SyntheticGuideline SUBJECT = SyntheticGuideline.of("Subject", "description", "link", "fairPrinciples",
5, RequirementLevel.MANDATORY, SUBJECT_SPEC);
public static final SyntheticGuideline DESCRIPTION = SyntheticGuideline.of("Description", "description", "link", "fairPrinciples",
5, RequirementLevel.MANDATORY, DESCRIPTION_SPEC);
public static final SyntheticGuideline PUBLISHER = SyntheticGuideline.of("Publisher", "description", "link", "fairPrinciples",
5, RequirementLevel.MANDATORY, PUBLISHER_SPEC);
public static final SyntheticGuideline CONTRIBUTOR = SyntheticGuideline.of("Contributor", "description", "link", "fairPrinciples",
2, RequirementLevel.MANDATORY, CONTRIBUTOR_SPEC);
public static final SyntheticGuideline PUBLICATION_DATE = SyntheticGuideline.of("Publication Date", "description", "link", "fairPrinciples",
5, RequirementLevel.MANDATORY, PUBLICATION_DATE_SPEC);
public static final SyntheticGuideline PUBLICATION_TYPE_MANDATORY = SyntheticGuideline.of("Publication Type M", "description", "https://guidelines.openaire.eu/en/latest/literature/field_publicationtype.html", "F,R",
public static final SyntheticGuideline PUBLICATION_TYPE_MANDATORY = SyntheticGuideline.of("Publication Type M", "description", "link", "fairPrinciples",
5, RequirementLevel.MANDATORY, PUBLICATION_TYPE_M_SPEC);
public static final SyntheticGuideline PUBLICATION_TYPE_OPTIONAL = SyntheticGuideline.of("Publication Type O", "description", "https://guidelines.openaire.eu/en/latest/literature/field_publicationtype.html", "F,R",
1, RequirementLevel.OPTIONAL, PUBLICATION_TYPE_O_SPEC);
public static final SyntheticGuideline PUBLICATION_VERSION = SyntheticGuideline.of("Publication Version", "description", "https://guidelines.openaire.eu/en/latest/literature/field_publicationversion.html", "F",
2, RequirementLevel.RECOMMENDED, PUBLICATION_VERSION_SPEC);
public static final SyntheticGuideline FORMAT = SyntheticGuideline.of("Format", "description", "https://guidelines.openaire.eu/en/latest/literature/field_format.html", "F,R",
2, RequirementLevel.RECOMMENDED, FORMAT_SPEC);
public static final SyntheticGuideline RESOURCE_IDENTIFIER = SyntheticGuideline.of("Resource Identifier", "description", "https://guidelines.openaire.eu/en/latest/literature/field_resourceidentifier.html", "F",
public static final SyntheticGuideline PUBLICATION_TYPE_OPTIONAL = SyntheticGuideline.of("Publication Type O", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, PUBLICATION_TYPE_O_SPEC);
public static final SyntheticGuideline PUBLICATION_VERSION = SyntheticGuideline.of("Publication Version", "description", "link", "fairPrinciples",
2, RequirementLevel.MANDATORY, PUBLICATION_VERSION_SPEC);
public static final SyntheticGuideline FORMAT = SyntheticGuideline.of("Format", "description", "link", "fairPrinciples",
2, RequirementLevel.MANDATORY, FORMAT_SPEC);
public static final SyntheticGuideline RESOURCE_IDENTIFIER = SyntheticGuideline.of("Resource Identifier", "description", "link", "fairPrinciples",
5, RequirementLevel.MANDATORY, RESOURCE_IDENTIFIER_SPEC);
public static final SyntheticGuideline SOURCE = SyntheticGuideline.of("Source", "description", "https://guidelines.openaire.eu/en/latest/literature/field_source.html", "F",
5, RequirementLevel.RECOMMENDED, SOURCE_SPEC);
public static final SyntheticGuideline LANGUAGE = SyntheticGuideline.of("Language", "description", "https://guidelines.openaire.eu/en/latest/literature/field_language.html", "F",
2, RequirementLevel.RECOMMENDED, LANGUAGE_SPEC);
public static final SyntheticGuideline RELATION = SyntheticGuideline.of("Relation", "description", "https://guidelines.openaire.eu/en/latest/literature/field_relation.html", "F",
1, RequirementLevel.OPTIONAL, RELATION_SPEC);
public static final SyntheticGuideline COVERAGE = SyntheticGuideline.of("Coverage", "description", "https://guidelines.openaire.eu/en/latest/literature/field_coverage.html", "F,R",
1, RequirementLevel.RECOMMENDED, COVERAGE_SPEC);
public static final SyntheticGuideline AUDIENCE = SyntheticGuideline.of("Audience", "description", "https://guidelines.openaire.eu/en/latest/literature/field_audience.html", "F,R",
2, RequirementLevel.RECOMMENDED, AUDIENCE_SPEC);
public static final SyntheticGuideline SOURCE = SyntheticGuideline.of("Source", "link", "fairPrinciples",
5, RequirementLevel.MANDATORY, SOURCE_SPEC);
public static final SyntheticGuideline LANGUAGE = SyntheticGuideline.of("Language", "link", "fairPrinciples",
2, RequirementLevel.MANDATORY, LANGUAGE_SPEC);
public static final SyntheticGuideline RELATION = SyntheticGuideline.of("Relation", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, RELATION_SPEC);
public static final SyntheticGuideline COVERAGE = SyntheticGuideline.of("Coverage", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, COVERAGE_SPEC);
public static final SyntheticGuideline AUDIENCE = SyntheticGuideline.of("Audience", "link", "fairPrinciples",
2, RequirementLevel.MANDATORY, AUDIENCE_SPEC);
private static final List<SyntheticGuideline> GUIDELINES = Collections.unmodifiableList(
Arrays.asList(

View File

@ -425,70 +425,70 @@ public final class LiteratureGuidelinesV4Profile extends AbstractOpenAireProfile
}
//TODO: weights for guidelines haven't been finalized. They've been given an arbitrary value of 1.
public static SyntheticGuideline TITLE = SyntheticGuideline.of("Title", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_title.html#dci-title", "F",
public static SyntheticGuideline TITLE = SyntheticGuideline.of("Title", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, TITLE_SPEC);
public static SyntheticGuideline CREATOR = SyntheticGuideline.of("Creator", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_creator.html#dci-creator", "F",
public static SyntheticGuideline CREATOR = SyntheticGuideline.of("Creator", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, CREATOR_SPEC);
public static SyntheticGuideline CONTRIBUTOR = SyntheticGuideline.of("Contributor", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_contributor.html#dci-contributor", "F",
1, RequirementLevel.MANDATORY_IF_APPLICABLE, CONTRIBUTOR_SPEC);
public static SyntheticGuideline FUNDING_REFERENCE = SyntheticGuideline.of("Funding Reference", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_projectid.html#aire-fundingreference", "F",
1, RequirementLevel.MANDATORY_IF_APPLICABLE, FUNDING_REFERENCE_SPEC);
public static SyntheticGuideline ALTERNATE_IDENTIFIER = SyntheticGuideline.of("Alternate Identifier", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_alternativeidentifier.html#dci-alternativeidentifier", "F",
1, RequirementLevel.RECOMMENDED, ALTERNATE_IDENTIFIER_SPEC);
public static SyntheticGuideline RELATED_IDENTIFIER = SyntheticGuideline.of("Related Identifier", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_relatedidentifier.html#dci-relatedidentifier", "F",
1, RequirementLevel.RECOMMENDED, RELATED_IDENTIFIER_SPEC);
public static SyntheticGuideline EMBARGO_PERIOD_DATE = SyntheticGuideline.of("Embargo Period Date", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_embargoenddate.html#dci-dateembargo", "F",
1, RequirementLevel.MANDATORY_IF_APPLICABLE, EMBARGO_PERIOD_DATE_SPEC);
public static SyntheticGuideline LANGUAGE = SyntheticGuideline.of("Language", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_language.html#dc-language", "F",
1, RequirementLevel.MANDATORY_IF_APPLICABLE, LANGUAGE_SPEC);
public static SyntheticGuideline PUBLISHER = SyntheticGuideline.of("Publisher", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_publisher.html#dc-publisher", "F",
1, RequirementLevel.MANDATORY_IF_APPLICABLE, PUBLISHER_SPEC);
public static SyntheticGuideline PUBLICATION_DATE = SyntheticGuideline.of("Publication Date", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_publicationdate.html#dci-datepublication", "F",
public static SyntheticGuideline CONTRIBUTOR = SyntheticGuideline.of("Contributor", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, CONTRIBUTOR_SPEC);
public static SyntheticGuideline FUNDING_REFERENCE = SyntheticGuideline.of("Funding Reference", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, FUNDING_REFERENCE_SPEC);
public static SyntheticGuideline ALTERNATE_IDENTIFIER = SyntheticGuideline.of("Alternate Identifier", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, ALTERNATE_IDENTIFIER_SPEC);
public static SyntheticGuideline RELATED_IDENTIFIER = SyntheticGuideline.of("Related Identifier", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, RELATED_IDENTIFIER_SPEC);
public static SyntheticGuideline EMBARGO_PERIOD_DATE = SyntheticGuideline.of("Embargo Period Date", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, EMBARGO_PERIOD_DATE_SPEC);
public static SyntheticGuideline LANGUAGE = SyntheticGuideline.of("Language", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, LANGUAGE_SPEC);
public static SyntheticGuideline PUBLISHER = SyntheticGuideline.of("Publisher", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, PUBLISHER_SPEC);
public static SyntheticGuideline PUBLICATION_DATE = SyntheticGuideline.of("Publication Date", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, PUBLICATION_DATE_SPEC);
public static SyntheticGuideline RESOURCE_TYPE = SyntheticGuideline.of("Resource Type", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_publicationtype.html#aire-resourcetype", "F,R",
public static SyntheticGuideline RESOURCE_TYPE = SyntheticGuideline.of("Resource Type", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, RESOURCE_TYPE_SPEC);
public static SyntheticGuideline DESCRIPTION = SyntheticGuideline.of("Description", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_description.html#dc-description", "F,R",
1, RequirementLevel.MANDATORY_IF_APPLICABLE, DESCRIPTION_SPEC);
public static SyntheticGuideline FORMAT = SyntheticGuideline.of("Format", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_format.html#dc-format", "F,R",
1, RequirementLevel.RECOMMENDED, FORMAT_SPEC);
public static SyntheticGuideline RESOURCE_IDENTIFIER = SyntheticGuideline.of("Resource Identifier", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_resourceidentifier.html#dci-identifier", "F",
public static SyntheticGuideline DESCRIPTION = SyntheticGuideline.of("Description", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, DESCRIPTION_SPEC);
public static SyntheticGuideline FORMAT = SyntheticGuideline.of("Format", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, FORMAT_SPEC);
public static SyntheticGuideline RESOURCE_IDENTIFIER = SyntheticGuideline.of("Resource Identifier", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, RESOURCE_IDENTIFIER_SPEC);
public static SyntheticGuideline ACCESS_RIGHTS = SyntheticGuideline.of("Access Rights", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_accessrights.html#dci-accessrights", "F",
public static SyntheticGuideline ACCESS_RIGHTS = SyntheticGuideline.of("Access Rights", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, ACCESS_RIGHTS_SPEC);
public static SyntheticGuideline SOURCE = SyntheticGuideline.of("Source", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_source.html#dc-source", "F",
1, RequirementLevel.RECOMMENDED, SOURCE_SPEC);
public static SyntheticGuideline SUBJECT = SyntheticGuideline.of("Subject", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_subject.html#dci-subject", "F",
1, RequirementLevel.MANDATORY_IF_APPLICABLE, SUBJECT_SPEC);
public static SyntheticGuideline LICENSE_CONDITION = SyntheticGuideline.of("License Condition", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_licensecondition.html#aire-licensecondition", "F,R",
1, RequirementLevel.RECOMMENDED, LICENSE_CONDITION_SPEC);
public static SyntheticGuideline COVERAGE = SyntheticGuideline.of("Coverage", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_coverage.html#dc-coverage", "F,R",
1, RequirementLevel.RECOMMENDED, COVERAGE_SPEC);
public static SyntheticGuideline SIZE = SyntheticGuideline.of("Size", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_size.html#dci-size", "F,R",
1, RequirementLevel.OPTIONAL, SIZE_SPEC);
public static SyntheticGuideline GEO_LOCATION = SyntheticGuideline.of("Geo Location", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_geolocation.html#dci-geolocation", "F,R",
1, RequirementLevel.OPTIONAL, GEO_LOCATION_SPEC);
public static SyntheticGuideline RESOURCE_VERSION = SyntheticGuideline.of("Resource Version", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_resourceversion.html#aire-version", "F",
1, RequirementLevel.RECOMMENDED, RESOURCE_VERSION_SPEC);
public static SyntheticGuideline FILE_LOCATION = SyntheticGuideline.of("File Location", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_filelocation.html#aire-file", "F",
1, RequirementLevel.MANDATORY_IF_APPLICABLE, FILE_LOCATION_SPEC);
public static SyntheticGuideline CITATION_TITLE = SyntheticGuideline.of("Citation Title", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_citationtitle.html#aire-citationtitle", "F",
1, RequirementLevel.RECOMMENDED, CITATION_TITLE_SPEC);
public static SyntheticGuideline CITATION_VOLUME = SyntheticGuideline.of("Citation Volume", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_citationvolume.html#aire-citationvolume", "F",
1, RequirementLevel.RECOMMENDED, CITATION_VOLUME_SPEC);
public static SyntheticGuideline CITATION_ISSUE = SyntheticGuideline.of("Citation Issue", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_citationissue.html#aire-citationissue", "F",
1, RequirementLevel.RECOMMENDED, CITATION_ISSUE_SPEC);
public static SyntheticGuideline CITATION_START_PAGE = SyntheticGuideline.of("Citation Start Page", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_citationstartpage.html#aire-citationstartpage", "F",
1, RequirementLevel.RECOMMENDED, CITATION_START_PAGE_SPEC);
public static SyntheticGuideline CITATION_END_PAGE = SyntheticGuideline.of("Citation End Page", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_citationendpage.html#aire-citationendpage", "F",
1, RequirementLevel.RECOMMENDED, CITATION_END_PAGE_SPEC);
public static SyntheticGuideline CITATION_EDITION = SyntheticGuideline.of("Citation Edition", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_citationedition.html#aire-citationedition", "F",
1, RequirementLevel.RECOMMENDED, CITATION_EDITION_SPEC);
public static SyntheticGuideline CITATION_CONFERENCE_PLACE = SyntheticGuideline.of("Citation Conference Place", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_citationconferenceplace.html#aire-citationconferenceplace", "F",
1, RequirementLevel.RECOMMENDED, CITATION_CONFERENCE_PLACE_SPEC);
public static SyntheticGuideline CITATION_CONFERENCE_DATE = SyntheticGuideline.of("Citation Conference Date", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_citationconferencedate.html#aire-citationconferencedate", "F",
1, RequirementLevel.RECOMMENDED, CITATION_CONFERENCE_DATE_SPEC);
public static SyntheticGuideline AUDIENCE = SyntheticGuideline.of("Audience", "description", "https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_audience.html#dct-audience", "F,R",
1, RequirementLevel.OPTIONAL, AUDIENCE_SPEC);
public static SyntheticGuideline SOURCE = SyntheticGuideline.of("Source", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, SOURCE_SPEC);
public static SyntheticGuideline SUBJECT = SyntheticGuideline.of("Subject", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, SUBJECT_SPEC);
public static SyntheticGuideline LICENSE_CONDITION = SyntheticGuideline.of("License Condition", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, LICENSE_CONDITION_SPEC);
public static SyntheticGuideline COVERAGE = SyntheticGuideline.of("Coverage", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, COVERAGE_SPEC);
public static SyntheticGuideline SIZE = SyntheticGuideline.of("Size", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, SIZE_SPEC);
public static SyntheticGuideline GEO_LOCATION = SyntheticGuideline.of("Geo Location", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, GEO_LOCATION_SPEC);
public static SyntheticGuideline RESOURCE_VERSION = SyntheticGuideline.of("Resource Version", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, RESOURCE_VERSION_SPEC);
public static SyntheticGuideline FILE_LOCATION = SyntheticGuideline.of("File Location", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, FILE_LOCATION_SPEC);
public static SyntheticGuideline CITATION_TITLE = SyntheticGuideline.of("Citation Title", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, CITATION_TITLE_SPEC);
public static SyntheticGuideline CITATION_VOLUME = SyntheticGuideline.of("Citation Volume", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, CITATION_VOLUME_SPEC);
public static SyntheticGuideline CITATION_ISSUE = SyntheticGuideline.of("Citation Issue", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, CITATION_ISSUE_SPEC);
public static SyntheticGuideline CITATION_START_PAGE = SyntheticGuideline.of("Citation Start Page", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, CITATION_START_PAGE_SPEC);
public static SyntheticGuideline CITATION_END_PAGE = SyntheticGuideline.of("Citation End Page", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, CITATION_END_PAGE_SPEC);
public static SyntheticGuideline CITATION_EDITION = SyntheticGuideline.of("Citation Edition", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, CITATION_EDITION_SPEC);
public static SyntheticGuideline CITATION_CONFERENCE_PLACE = SyntheticGuideline.of("Citation Conference Place", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, CITATION_CONFERENCE_PLACE_SPEC);
public static SyntheticGuideline CITATION_CONFERENCE_DATE = SyntheticGuideline.of("Citation Conference Date", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, CITATION_CONFERENCE_DATE_SPEC);
public static SyntheticGuideline AUDIENCE = SyntheticGuideline.of("Audience", "description", "link", "fairPrinciples",
1, RequirementLevel.MANDATORY, AUDIENCE_SPEC);
private static final List<SyntheticGuideline> GUIDELINES = Collections.unmodifiableList(
Arrays.asList(

View File

@ -1,67 +0,0 @@
package eu.dnetlib.validator2.engine;
import eu.dnetlib.validator2.validation.XMLApplicationProfile;
import eu.dnetlib.validator2.validation.guideline.Guideline;
import eu.dnetlib.validator2.validation.guideline.openaire.FAIR_Literature_GuidelinesProfile;
import groovy.xml.DOMBuilder;
import org.slf4j.LoggerFactory;
import org.w3c.dom.Document;
import java.io.FileReader;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.OptionalDouble;
import java.util.stream.Collectors;
public class Test_FAIR_LIT {
private static final org.slf4j.Logger logger = LoggerFactory.getLogger(Test_FAIR_LIT.class);
private static final String[] FILES = new String[]{
"src/test/resources/openaireguidelinesV3/dia.library.tuc.gr/Record_21811.xml",
"src/test/resources/openaireguidelinesV3/cris.vtt.fi/03.xml",
"src/test/resources/openaireguidelinesV3/cris.vtt.fi/01_data.xml",
"src/test/resources/openaireguidelinesV3/cris.vtt.fi/02_data.xml",
"src/test/resources/openaireguidelinesV3/cris.vtt.fi/04_data.xml",
// "src/test/resources/openaireguidelinesV3/cris.vtt.fi/03_data.xml",
// "src/test/resources/openaireguidelinesV4/01_gv4.xml"
};
public static void main(String[] args) {
// String xmlFile = args[0];
FAIR_Literature_GuidelinesProfile profile = new FAIR_Literature_GuidelinesProfile();
logger.info("Max score: " + profile.maxScore());
Map<String, Double> scorePerDoc = new LinkedHashMap<>();
for ( String fileName : FILES ) {
try {
logger.info("Processing \"" + fileName + "\"");
Document doc = DOMBuilder.parse(new FileReader(fileName), false, true, true);
XMLApplicationProfile.ValidationResult result = profile.validate(fileName, doc);
scorePerDoc.put(fileName, result.score());
Map<String, Guideline.Result> results = result.results();
if ( logger.isDebugEnabled() ) {
for ( Map.Entry<String, Guideline.Result> entry : results.entrySet() ) {
logger.debug(entry.getKey() + " = " + entry.getValue());
}
}
} catch (Exception e) {
logger.error("", e);
}
}
// Individual scores
String printout = scorePerDoc.entrySet().stream().
map(entry -> entry.getValue() + ": " + entry.getKey()).collect(Collectors.joining("\n"));
logger.info(printout);
// Average Score
OptionalDouble optionalFinalScore = scorePerDoc.values().stream().mapToDouble(aDouble -> aDouble).average();
double finalScore = (optionalFinalScore.isPresent() ? optionalFinalScore.getAsDouble() : -1 );
logger.info("Validation Score: " + finalScore);
}
}