From 8211cbb9fe4090f3a6ebe25a8e4466da7e426869 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Thu, 18 Jun 2020 11:23:52 +0200 Subject: [PATCH] extension of Result to contain all the properties owned by any result type --- .../dnetlib/dhp/schema/dump/oaf/Country.java | 2 +- .../dnetlib/dhp/schema/dump/oaf/Result.java | 89 +++++++++++++++++++ 2 files changed, 90 insertions(+), 1 deletion(-) diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Country.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Country.java index 3d6532af9..b0b4710ff 100644 --- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Country.java +++ b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Country.java @@ -13,7 +13,7 @@ public class Country extends Qualifier { this.provenance = provenance; } - public static Country newInstance(String code, String label, String provenance){ + public static Country newInstance(String code, String label, String provenance) { Country c = new Country(); c.setProvenance(provenance); c.setCode(code); diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Result.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Result.java index a6fd5d432..8491bf718 100644 --- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Result.java +++ b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Result.java @@ -48,6 +48,24 @@ public class Result extends OafEntity implements Serializable { private Container container;// Journal + private List documentationUrl; // software + + private String codeRepositoryUrl; // software + + private String programmingLanguage; // software + + private List contactperson; // orp + + private List contactgroup; // orp + + private List tool; // orp + + private String size; // dataset + + private String version; // dataset + + private List geolocation; // dataset + public List getAuthor() { return author; } @@ -208,4 +226,75 @@ public class Result extends OafEntity implements Serializable { this.instance = instance; } + public List getDocumentationUrl() { + return documentationUrl; + } + + public void setDocumentationUrl(List documentationUrl) { + this.documentationUrl = documentationUrl; + } + + public String getCodeRepositoryUrl() { + return codeRepositoryUrl; + } + + public void setCodeRepositoryUrl(String codeRepositoryUrl) { + this.codeRepositoryUrl = codeRepositoryUrl; + } + + public String getProgrammingLanguage() { + return programmingLanguage; + } + + public void setProgrammingLanguage(String programmingLanguage) { + this.programmingLanguage = programmingLanguage; + } + + public List getContactperson() { + return contactperson; + } + + public void setContactperson(List contactperson) { + this.contactperson = contactperson; + } + + public List getContactgroup() { + return contactgroup; + } + + public void setContactgroup(List contactgroup) { + this.contactgroup = contactgroup; + } + + public List getTool() { + return tool; + } + + public void setTool(List tool) { + this.tool = tool; + } + + public String getSize() { + return size; + } + + public void setSize(String size) { + this.size = size; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public List getGeolocation() { + return geolocation; + } + + public void setGeolocation(List geolocation) { + this.geolocation = geolocation; + } }