package eu.dnetlib.dhp.oa.model.community; import java.util.List; import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema; import eu.dnetlib.dhp.oa.model.Result; /** * extends eu.dnetlib.dhp.schema.dump.oaf.Result with the following parameters: - projects of type * List to store the list of projects related to the result. The * information is added after the result is mapped to the external model - context of type * List to store information about the RC RI related to the result. * For each context in the result represented in the internal model one context in the external model is produced - * collectedfrom of type List to store information about the sources from which * the record has been collected. For each collectedfrom in the result represented in the internal model one * collectedfrom in the external model is produced - instance of type * List to store all the instances associated to the result. * It corresponds to the same parameter in the result represented in the internal model */ public class CommunityResult extends Result { @JsonSchema(description = "List of projects (i.e. grants) that (co-)funded the production ofn the research results") private List projects; @JsonSchema( description = "Reference to a relevant research infrastructure, initiative or community (RI/RC) among those collaborating with OpenAIRE. Please see https://connect.openaire.eu") private List context; @JsonSchema(description = "Information about the sources from which the record has been collected") protected List collectedfrom; @JsonSchema( description = "Each instance is one specific materialisation or version of the result. For example, you can have one result with three instance: one is the pre-print, one is the post-print, one is te published version") private List instance; public List getInstance() { return instance; } public void setInstance(List instance) { this.instance = instance; } public List getCollectedfrom() { return collectedfrom; } public void setCollectedfrom(List collectedfrom) { this.collectedfrom = collectedfrom; } public List getProjects() { return projects; } public void setProjects(List projects) { this.projects = projects; } public List getContext() { return context; } public void setContext(List context) { this.context = context; } }