diff --git a/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Project.java b/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Project.java index aadb790..eed0ae8 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Project.java +++ b/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Project.java @@ -17,6 +17,16 @@ public class Project extends eu.dnetlib.dhp.schema.dump.oaf.Project { private Provenance provenance; + private Validated validated; + + public void setValidated(Validated validated){ + this.validated = validated; + } + + public Validated getValidated(){ + return validated; + } + public Provenance getProvenance() { return provenance; } diff --git a/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Validated.java b/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Validated.java new file mode 100644 index 0000000..0d136f0 --- /dev/null +++ b/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Validated.java @@ -0,0 +1,39 @@ + +package eu.dnetlib.dhp.schema.dump.oaf.community; + +import java.io.Serializable; + +/** + * To store information about the funder funding the project related to the result. It has the following parameters: - + * shortName of type String to store the funder short name (e.c. AKA). - name of type String to store the funder name + * (e.c. Akademy of Finland) - fundingStream of type String to store the funding stream - jurisdiction of type String to + * store the jurisdiction of the funder + */ +public class Validated implements Serializable { + + private String validationDate; + private Boolean validatedByFunder; + + public void setValidationDate(String validationDate){ + this.validationDate = validationDate; + } + + public String getValidationDate(){ + return validationDate; + } + + public void setValidatedByFunder(Boolean validated){ + this.validatedByFunder = validated; + } + + public Boolean getValidatedByFunder(){ + return validatedByFunder; + } + + public static Validated newInstance(Boolean validated, String validationDate){ + Validated v = new Validated(); + v.validatedByFunder = validated; + v.validationDate = validationDate; + return v; + } +} diff --git a/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/graph/Relation.java b/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/graph/Relation.java index e2b126e..31af2f1 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/graph/Relation.java +++ b/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/graph/Relation.java @@ -17,6 +17,8 @@ public class Relation implements Serializable { private Node target; private RelType reltype; private Provenance provenance; + private boolean validated; + private String validationDate; public Node getSource() { return source; @@ -50,6 +52,22 @@ public class Relation implements Serializable { this.provenance = provenance; } + public void setValidated(boolean validate){ + this.validated = validate; + } + + public boolean getValidated(){ + return validated; + } + + public void setValidationDate(String validationDate){ + this.validationDate = validationDate; + } + + public String getValidationDate(){ + return validationDate; + } + @Override public int hashCode() {