added extention to the schema for the relation validated by funder

This commit is contained in:
Miriam Baglioni 2021-08-06 14:31:35 +02:00
parent b808238422
commit 32bcdcb1c0
3 changed files with 60 additions and 0 deletions

View File

@ -19,6 +19,16 @@ public class Project extends eu.dnetlib.dhp.schema.dump.oaf.Project {
private Provenance provenance; private Provenance provenance;
private Validated validated;
public void setValidated(Validated validated){
this.validated = validated;
}
public Validated getValidated(){
return validated;
}
public Provenance getProvenance() { public Provenance getProvenance() {
return provenance; return provenance;
} }

View File

@ -0,0 +1,32 @@
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;
}
}

View File

@ -17,6 +17,8 @@ public class Relation implements Serializable {
private Node target; private Node target;
private RelType reltype; private RelType reltype;
private Provenance provenance; private Provenance provenance;
private boolean validated;
private String validationDate;
public Node getSource() { public Node getSource() {
return source; return source;
@ -50,6 +52,22 @@ public class Relation implements Serializable {
this.provenance = provenance; 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 @Override
public int hashCode() { public int hashCode() {