dnet-hadoop/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Project.java

48 lines
1.5 KiB
Java
Raw Normal View History

package eu.dnetlib.dhp.schema.dump.oaf.community;
import java.io.Serializable;
import eu.dnetlib.dhp.schema.dump.oaf.Provenance;
2020-08-13 17:06:49 +02:00
/**
2020-08-13 17:17:49 +02:00
* To store information about the project related to the result. This information is not directly mapped from the result
2020-08-13 18:23:24 +02:00
* represented in the internal model because it is not there. The mapped result will be enriched with project
2020-08-24 17:05:50 +02:00
* information derived by relation between results and projects. Project extends eu.dnetlib.dhp.schema.dump.oaf.Project
* with the following parameters: - funder of type eu.dnetlib.dhp.schema.dump.oaf.community.Funder to store information
* about the funder funding the project - provenance of type eu.dnetlib.dhp.schema.dump.oaf.Provenance to store
* information about the. provenance of the association between the result and the project
2020-08-13 17:06:49 +02:00
*/
public class Project extends eu.dnetlib.dhp.schema.dump.oaf.Project {
2020-06-15 11:06:56 +02:00
private Funder funder;
private Provenance provenance;
public Provenance getProvenance() {
return provenance;
}
public void setProvenance(Provenance provenance) {
this.provenance = provenance;
}
2020-06-15 11:06:56 +02:00
public Funder getFunder() {
return funder;
}
2020-06-15 11:06:56 +02:00
public void setFunder(Funder funders) {
this.funder = funders;
}
public static Project newInstance(String id, String code, String acronym, String title, Funder funder) {
Project project = new Project();
project.setAcronym(acronym);
project.setCode(code);
project.setFunder(funder);
project.setId(id);
project.setTitle(title);
return project;
2020-06-15 11:06:56 +02:00
}
}