2021-04-23 12:15:36 +02:00
|
|
|
|
|
|
|
package eu.dnetlib.dhp.schema.dump.oaf;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
2021-11-18 11:01:44 +01:00
|
|
|
import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema;
|
|
|
|
|
2021-04-23 12:15:36 +02:00
|
|
|
/**
|
2021-12-14 18:37:00 +01:00
|
|
|
* To represent keywords associated to the result. It has two parameters:
|
|
|
|
* - subject of type eu.dnetlib.dhp.schema.dump.oaf.SubjectSchemeValue to describe the subject. It mapped as:
|
|
|
|
* - schema it corresponds to qualifier.classid of the dumped subject
|
|
|
|
* - value it corresponds to the subject value
|
|
|
|
* - provenance of type eu.dnetlib.dhp.schema.dump.oaf.Provenance to represent the provenance of the subject. It is dumped only if dataInfo
|
|
|
|
* is not null. In this case:
|
|
|
|
* - provenance corresponds to dataInfo.provenanceaction.classname
|
|
|
|
* - trust corresponds to dataInfo.trust
|
2021-04-23 12:15:36 +02:00
|
|
|
*/
|
|
|
|
public class Subject implements Serializable {
|
2021-12-14 18:37:00 +01:00
|
|
|
private SubjectSchemeValue subject;
|
|
|
|
|
|
|
|
@JsonSchema(description = "Why this subject is associated to the result")
|
2021-04-23 12:15:36 +02:00
|
|
|
private Provenance provenance;
|
|
|
|
|
2021-12-14 18:37:00 +01:00
|
|
|
public SubjectSchemeValue getSubject() {
|
2021-04-23 12:15:36 +02:00
|
|
|
return subject;
|
|
|
|
}
|
|
|
|
|
2021-12-14 18:37:00 +01:00
|
|
|
public void setSubject(SubjectSchemeValue subject) {
|
2021-04-23 12:15:36 +02:00
|
|
|
this.subject = subject;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Provenance getProvenance() {
|
|
|
|
return provenance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setProvenance(Provenance provenance) {
|
|
|
|
this.provenance = provenance;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|