code formatting
This commit is contained in:
commit
f075753c3f
2
pom.xml
2
pom.xml
|
@ -32,7 +32,7 @@
|
||||||
<connection>scm:git:gitea@code-repo.d4science.org:D-Net/dhp-schemas.git</connection>
|
<connection>scm:git:gitea@code-repo.d4science.org:D-Net/dhp-schemas.git</connection>
|
||||||
<developerConnection>scm:git:gitea@code-repo.d4science.org:D-Net/dhp-schemas.git</developerConnection>
|
<developerConnection>scm:git:gitea@code-repo.d4science.org:D-Net/dhp-schemas.git</developerConnection>
|
||||||
<url>https://code-repo.d4science.org/D-Net/dhp-schemas/</url>
|
<url>https://code-repo.d4science.org/D-Net/dhp-schemas/</url>
|
||||||
<tag>HEAD</tag>
|
<tag>dhp-schemas-2.6.13</tag>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<description>This module contains common schema classes meant to be used across the dnet-hadoop submodules</description>
|
<description>This module contains common schema classes meant to be used across the dnet-hadoop submodules</description>
|
||||||
|
|
|
@ -13,6 +13,8 @@ public class AccessRight extends Qualifier {
|
||||||
|
|
||||||
private String scheme;
|
private String scheme;
|
||||||
|
|
||||||
|
private OpenAccessRoute openAccessRoute ;
|
||||||
|
|
||||||
public String getScheme() {
|
public String getScheme() {
|
||||||
return scheme;
|
return scheme;
|
||||||
}
|
}
|
||||||
|
@ -28,4 +30,12 @@ public class AccessRight extends Qualifier {
|
||||||
ar.setScheme(scheme);
|
ar.setScheme(scheme);
|
||||||
return ar;
|
return ar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public OpenAccessRoute getOpenAccessRoute() {
|
||||||
|
return openAccessRoute;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpenAccessRoute(OpenAccessRoute openAccessRoute) {
|
||||||
|
this.openAccessRoute = openAccessRoute;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,14 +12,20 @@ import java.util.List;
|
||||||
* type of type String to store the type of the instance as defined in the corresponding dnet vocabulary
|
* type of type String to store the type of the instance as defined in the corresponding dnet vocabulary
|
||||||
* (dnet:pubication_resource). It corresponds to the instancetype.classname of the instance to be mapped - url of type
|
* (dnet:pubication_resource). It corresponds to the instancetype.classname of the instance to be mapped - url of type
|
||||||
* List<String> list of locations where the instance is accessible. It corresponds to url of the instance to be dumped -
|
* List<String> list of locations where the instance is accessible. It corresponds to url of the instance to be dumped -
|
||||||
* publicationdate of type String to store the publication date of the instance ;// dateofacceptance;
|
* publicationdate of type String to store the publication date of the instance ;// dateofacceptance; - refereed of type
|
||||||
* - refereed of type
|
|
||||||
* String to store information abour the review status of the instance. Possible values are 'Unknown',
|
* String to store information abour the review status of the instance. Possible values are 'Unknown',
|
||||||
* 'nonPeerReviewed', 'peerReviewed'. It corresponds to refereed.classname of the instance to be dumped
|
* 'nonPeerReviewed', 'peerReviewed'. It corresponds to refereed.classname of the instance to be dumped
|
||||||
* - articleprocessingcharge of type APC to store the article processing charges possibly associated to the instance
|
* - articleprocessingcharge of type APC to store the article processing charges possibly associated to the instance
|
||||||
|
* -pid of type List<ControlledField> that is the list of pids associated to the result coming from authoritative sources for that pid
|
||||||
|
* -alternateIdentifier of type List<ControlledField> that is the list of pids associated to the result coming from NON authoritative
|
||||||
|
* sources for that pid
|
||||||
*/
|
*/
|
||||||
public class Instance implements Serializable {
|
public class Instance implements Serializable {
|
||||||
|
|
||||||
|
private List<ControlledField> pid;
|
||||||
|
|
||||||
|
private List<ControlledField> alternateIdentifier;
|
||||||
|
|
||||||
private String license;
|
private String license;
|
||||||
|
|
||||||
private AccessRight accessright;
|
private AccessRight accessright;
|
||||||
|
@ -28,10 +34,10 @@ public class Instance implements Serializable {
|
||||||
|
|
||||||
private List<String> url;
|
private List<String> url;
|
||||||
|
|
||||||
private String publicationdate;// dateofacceptance;
|
|
||||||
|
|
||||||
private APC articleprocessingcharge;
|
private APC articleprocessingcharge;
|
||||||
|
|
||||||
|
private String publicationdate;// dateofacceptance;
|
||||||
|
|
||||||
private String refereed; // peer-review status
|
private String refereed; // peer-review status
|
||||||
|
|
||||||
public String getLicense() {
|
public String getLicense() {
|
||||||
|
@ -89,4 +95,20 @@ public class Instance implements Serializable {
|
||||||
public void setArticleprocessingcharge(APC articleprocessingcharge) {
|
public void setArticleprocessingcharge(APC articleprocessingcharge) {
|
||||||
this.articleprocessingcharge = articleprocessingcharge;
|
this.articleprocessingcharge = articleprocessingcharge;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<ControlledField> getPid() {
|
||||||
|
return pid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPid(List<ControlledField> pid) {
|
||||||
|
this.pid = pid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ControlledField> getAlternateIdentifier() {
|
||||||
|
return alternateIdentifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAlternateIdentifier(List<ControlledField> alternateIdentifier) {
|
||||||
|
this.alternateIdentifier = alternateIdentifier;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
package eu.dnetlib.dhp.schema.dump.oaf;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This Enum models the OpenAccess status, currently including only the values from Unpaywall
|
||||||
|
*
|
||||||
|
* https://support.unpaywall.org/support/solutions/articles/44001777288-what-do-the-types-of-oa-status-green-gold-hybrid-and-bronze-mean-
|
||||||
|
*/
|
||||||
|
public enum OpenAccessRoute {
|
||||||
|
|
||||||
|
gold, green, hybrid, bronze
|
||||||
|
|
||||||
|
}
|
|
@ -62,9 +62,12 @@ import eu.dnetlib.dhp.schema.dump.oaf.community.Project;
|
||||||
* to store information about the time OpenAIRE collected the record. It corresponds to dateofcollection of the result
|
* to store information about the time OpenAIRE collected the record. It corresponds to dateofcollection of the result
|
||||||
* 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
|
||||||
|
* -measure list<KeyValue> to represent the measure of beepFinder. It corresponds to measures in the model
|
||||||
*/
|
*/
|
||||||
public class Result implements Serializable {
|
public class Result implements Serializable {
|
||||||
|
|
||||||
|
private List<KeyValue> measures;
|
||||||
|
|
||||||
private List<Author> author;
|
private List<Author> author;
|
||||||
|
|
||||||
// resulttype allows subclassing results into publications | datasets | software
|
// resulttype allows subclassing results into publications | datasets | software
|
||||||
|
@ -376,4 +379,12 @@ public class Result implements Serializable {
|
||||||
public void setGeolocation(List<GeoLocation> geolocation) {
|
public void setGeolocation(List<GeoLocation> geolocation) {
|
||||||
this.geolocation = geolocation;
|
this.geolocation = geolocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<KeyValue> getMeasures() {
|
||||||
|
return measures;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMeasures(List<KeyValue> measures) {
|
||||||
|
this.measures = measures;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ import java.io.Serializable;
|
||||||
*/
|
*/
|
||||||
public class ResearchInitiative implements Serializable {
|
public class ResearchInitiative implements Serializable {
|
||||||
private String id; // openaireId
|
private String id; // openaireId
|
||||||
private String originalId; // context id
|
private String acronym; // context id
|
||||||
private String name; // context name
|
private String name; // context name
|
||||||
private String type; // context type: research initiative or research community
|
private String type; // context type: research initiative or research community
|
||||||
private String description;
|
private String description;
|
||||||
|
@ -57,12 +57,12 @@ public class ResearchInitiative implements Serializable {
|
||||||
this.name = label;
|
this.name = label;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOriginalId() {
|
public String getAcronym() {
|
||||||
return originalId;
|
return acronym;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOriginalId(String originalId) {
|
public void setAcronym(String acronym) {
|
||||||
this.originalId = originalId;
|
this.acronym = acronym;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
|
|
|
@ -16,7 +16,7 @@ public class Measure {
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of units associated with this measure. KeyValue provides a pair to store the laber (key) and the value, plus
|
* List of units associated with this measure. KeyValue provides a pair to store the label (key) and the value, plus
|
||||||
* common provenance information.
|
* common provenance information.
|
||||||
*/
|
*/
|
||||||
private List<KeyValue> unit;
|
private List<KeyValue> unit;
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
|
|
||||||
package eu.dnetlib.dhp.schema.oaf;
|
package eu.dnetlib.dhp.schema.oaf;
|
||||||
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
public class Project extends OafEntity implements Serializable {
|
public class Project extends OafEntity implements Serializable {
|
||||||
|
|
||||||
private Field<String> websiteurl;
|
private Field<String> websiteurl;
|
||||||
|
|
Loading…
Reference in New Issue