2021-04-23 12:15:36 +02:00
|
|
|
|
|
|
|
package eu.dnetlib.dhp.schema.dump.oaf.community;
|
|
|
|
|
2021-11-19 14:42:12 +01:00
|
|
|
import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema;
|
|
|
|
|
2021-04-23 12:15:36 +02:00
|
|
|
import eu.dnetlib.dhp.schema.dump.oaf.Instance;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* It extends eu.dnetlib.dhp.dump.oaf.Instance with values related to the community dump. In the Result dump this
|
|
|
|
* information is not present because it is dumped as a set of relations between the result and the datasource. -
|
|
|
|
* hostedby of type eu.dnetlib.dhp.schema.dump.oaf.KeyValue to store the information about the source from which the
|
|
|
|
* instance can be viewed or downloaded. It is mapped against the hostedby parameter of the instance to be dumped and -
|
|
|
|
* key corresponds to hostedby.key - value corresponds to hostedby.value - collectedfrom of type
|
|
|
|
* eu.dnetlib.dhp.schema.dump.oaf.KeyValue to store the information about the source from which the instance has been
|
|
|
|
* collected. It is mapped against the collectedfrom parameter of the instance to be dumped and - key corresponds to
|
|
|
|
* collectedfrom.key - value corresponds to collectedfrom.value
|
|
|
|
*/
|
|
|
|
public class CommunityInstance extends Instance {
|
2021-11-19 14:42:12 +01:00
|
|
|
@JsonSchema(description = "Information about the source from which the instance can be viewed or downloaded.")
|
|
|
|
private CfHbKeyValue hostedby;
|
|
|
|
|
|
|
|
@JsonSchema(description = "Information about the source from which the record has been collected")
|
|
|
|
private CfHbKeyValue collectedfrom;
|
2021-04-23 12:15:36 +02:00
|
|
|
|
2021-11-19 14:42:12 +01:00
|
|
|
public CfHbKeyValue getHostedby() {
|
2021-04-23 12:15:36 +02:00
|
|
|
return hostedby;
|
|
|
|
}
|
|
|
|
|
2021-11-19 14:42:12 +01:00
|
|
|
public void setHostedby(CfHbKeyValue hostedby) {
|
2021-04-23 12:15:36 +02:00
|
|
|
this.hostedby = hostedby;
|
|
|
|
}
|
|
|
|
|
2021-11-19 14:42:12 +01:00
|
|
|
public CfHbKeyValue getCollectedfrom() {
|
2021-04-23 12:15:36 +02:00
|
|
|
return collectedfrom;
|
|
|
|
}
|
|
|
|
|
2021-11-19 14:42:12 +01:00
|
|
|
public void setCollectedfrom(CfHbKeyValue collectedfrom) {
|
2021-04-23 12:15:36 +02:00
|
|
|
this.collectedfrom = collectedfrom;
|
|
|
|
}
|
|
|
|
}
|