modified to store information concerning to instance and result common to both the dumps for community and the whole graph

This commit is contained in:
Miriam Baglioni 2020-08-19 11:43:44 +02:00
parent 11b80899d7
commit f5bae426f7
2 changed files with 11 additions and 44 deletions

View File

@ -6,18 +6,16 @@ import java.util.List;
/** /**
* Represents the manifestations (i.e. different versions) of the result. For example: the pre-print and the published * Represents the manifestations (i.e. different versions) of the result. For example: the pre-print and the published
* versions are two manifestations of the same research result. It has the following parameters: - license of type * versions are two manifestations of the same research result. It has the following parameters:
* - license of type
* String to store the license applied to the instance. It corresponds to the value of the licence in the instance to be * String to store the license applied to the instance. It corresponds to the value of the licence in the instance to be
* dumped - accessright of type eu.dnetlib.dhp.schema.dump.oaf.AccessRight to store the accessright of the instance. - * dumped
* type of type String to store the type of the instance as defined in the corresponding dnet vocabulary * - accessright of type eu.dnetlib.dhp.schema.dump.oaf.AccessRight to store the accessright of the instance.
* (dnet:pubication_resource). It corresponds to the instancetype.classname of the instance to be mapped - hostedby of * - type of type String to store the type of the instance as defined in the corresponding dnet vocabulary
* type eu.dnetlib.dhp.schema.dump.oaf.KeyValue to store the information about the source from which the instance can be * (dnet:pubication_resource). It corresponds to the instancetype.classname of the instance to be mapped
* viewed or downloaded. It is mapped against the hostedby parameter of the instance to be dumped and - key corresponds * - url of type List<String> list of locations where the instance
* to hostedby.key - value corresponds to hostedby.value - url of type List<String> list of locations where the instance * is accessible. It corresponds to url of the instance to be dumped
* is accessible. It corresponds to url of the instance to be dumped - collectedfrom of type * - publicationdate of type String to store the
* 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 - publicationdate of type String to store the
* publication date of the instance ;// dateofacceptance; - refereed of type String to store information abour tthe * publication date of the instance ;// dateofacceptance; - refereed of type String to store information abour tthe
* review status of the instance. Possible values are 'Unknown', 'nonPeerReviewed', 'peerReviewed'. It corresponds to * review status of the instance. Possible values are 'Unknown', 'nonPeerReviewed', 'peerReviewed'. It corresponds to
* refereed.classname of the instance to be dumped * refereed.classname of the instance to be dumped
@ -30,12 +28,8 @@ public class Instance implements Serializable {
private String type; private String type;
private KeyValue hostedby;
private List<String> url; private List<String> url;
private KeyValue collectedfrom;
private String publicationdate;// dateofacceptance; private String publicationdate;// dateofacceptance;
private String refereed; // peer-review status private String refereed; // peer-review status
@ -64,14 +58,6 @@ public class Instance implements Serializable {
this.type = type; this.type = type;
} }
public KeyValue getHostedby() {
return hostedby;
}
public void setHostedby(KeyValue hostedby) {
this.hostedby = hostedby;
}
public List<String> getUrl() { public List<String> getUrl() {
return url; return url;
} }
@ -80,14 +66,6 @@ public class Instance implements Serializable {
this.url = url; this.url = url;
} }
public KeyValue getCollectedfrom() {
return collectedfrom;
}
public void setCollectedfrom(KeyValue collectedfrom) {
this.collectedfrom = collectedfrom;
}
public String getPublicationdate() { public String getPublicationdate() {
return publicationdate; return publicationdate;
} }

View File

@ -34,8 +34,7 @@ import eu.dnetlib.dhp.schema.dump.oaf.community.Project;
* to the list of coverage.value in the result represented in the internal model - bestaccessright of type * to the list of coverage.value in the result represented in the internal model - bestaccessright of type
* eu.dnetlib.dhp.schema.dump.oaf.AccessRight to store informatin about the openest access right associated to the * eu.dnetlib.dhp.schema.dump.oaf.AccessRight to store informatin about the openest access right associated to the
* manifestations of this research results. It corresponds to the same parameter in the result represented in the * manifestations of this research results. It corresponds to the same parameter in the result represented in the
* internal model - instance of type List<eu.dnetlib.dhp.schema.dump.oaf.Instance> to store all the instances associated * internal model - container of
* to the result. It corresponds to the same parameter in the result represented in the internal model - container of
* type eu.dnetlib.dhp.schema/dump.oaf.Container (only for result of type publication). It corresponds to the parameter * type eu.dnetlib.dhp.schema/dump.oaf.Container (only for result of type publication). It corresponds to the parameter
* journal of the result represented in the internal model - documentationUrl of type List<String> (only for results of * journal of the result represented in the internal model - documentationUrl of type List<String> (only for results of
* type software) to store the URLs to the software documentation. It corresponds to the list of documentationUrl.value * type software) to store the URLs to the software documentation. It corresponds to the list of documentationUrl.value
@ -65,7 +64,7 @@ import eu.dnetlib.dhp.schema.dump.oaf.community.Project;
* represented in the internal model - lasteupdatetimestamp of type String to store the timestamp of the last update of * represented in the internal model - lasteupdatetimestamp of type String to store the timestamp of the last update of
* the record. It corresponds to lastupdatetimestamp of the resord represented in the internal model * the record. It corresponds to lastupdatetimestamp of the resord represented in the internal model
*/ */
public class Result implements Serializable { public class Result implements Serializable {
private List<Author> author; private List<Author> author;
@ -101,8 +100,6 @@ public class Result implements Serializable {
private AccessRight bestaccessright; private AccessRight bestaccessright;
private List<Instance> instance;
private Container container;// Journal private Container container;// Journal
private List<String> documentationUrl; // software private List<String> documentationUrl; // software
@ -309,14 +306,6 @@ public class Result implements Serializable {
this.bestaccessright = bestaccessright; this.bestaccessright = bestaccessright;
} }
public List<Instance> getInstance() {
return instance;
}
public void setInstance(List<Instance> instance) {
this.instance = instance;
}
public List<String> getDocumentationUrl() { public List<String> getDocumentationUrl() {
return documentationUrl; return documentationUrl;
} }