[Schema] Extended the resultcommunity to include the serialization of the affiliated organizations
This commit is contained in:
parent
d4074eb538
commit
2d4e3ebb5a
|
@ -7,6 +7,7 @@ import com.fasterxml.jackson.annotation.JsonInclude;
|
|||
import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema;
|
||||
|
||||
import eu.dnetlib.dhp.oa.model.Result;
|
||||
import eu.dnetlib.dhp.oa.model.graph.Organization;
|
||||
|
||||
/**
|
||||
* extends eu.dnetlib.dhp.schema.dump.oaf.Result with the following parameters: - projects of type
|
||||
|
@ -25,6 +26,10 @@ public class CommunityResult extends Result {
|
|||
@JsonSchema(description = "List of projects (i.e. grants) that (co-)funded the production ofn the research results")
|
||||
private List<Project> projects;
|
||||
|
||||
@JsonSchema(description = "List of organizations in an affiliation relation with the research results")
|
||||
private List<Organization> organizations;
|
||||
|
||||
|
||||
@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> context;
|
||||
|
@ -72,4 +77,11 @@ public class CommunityResult extends Result {
|
|||
this.context = context;
|
||||
}
|
||||
|
||||
public List<Organization> getOrganizations() {
|
||||
return organizations;
|
||||
}
|
||||
|
||||
public void setOrganizations(List<Organization> organizations) {
|
||||
this.organizations = organizations;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue