Compare commits

...

6 Commits

Author SHA1 Message Date
Sandro La Bruzzo 2c43e0aa35 ignored jenv prop 2023-11-29 11:28:20 +01:00
Sandro La Bruzzo ca68323002 Merge remote-tracking branch 'origin/master' into scholix_flat_indexing 2023-10-12 10:53:42 +02:00
Sandro La Bruzzo 3b91cae839 added openaire main type 2023-04-27 10:17:28 +02:00
Sandro La Bruzzo bea951b6cb Moved ScholixFlat from dhp-common to DHP Schemas 2023-04-13 16:23:58 +02:00
Sandro La Bruzzo 397d67535b Introduced Pid type into author 2023-04-05 08:49:29 +02:00
Sandro La Bruzzo 0de147382c added openaire main type 2023-04-05 08:49:12 +02:00
6 changed files with 194 additions and 6 deletions

2
.gitignore vendored
View File

@ -10,7 +10,7 @@ buildNumber.properties
.mvn/timing.properties
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
.mvn/wrapper/maven-wrapper.jar
.java-version
# ---> Java
# Compiled class file
*.class

View File

@ -158,7 +158,7 @@ public class ScholixItemType {
if (input == null)
return null;
final ScholixItemType instance = new ScholixItemType();
instance.setType("publication".equalsIgnoreCase(input.getObjectType())?"literature": "dataset");
instance.setType("publication".equalsIgnoreCase(input.getObjectType())?"literature": input.getObjectType());
instance.setTitle(input.getTitle());
if (input.getIdentifier()!= null)

View File

@ -0,0 +1,158 @@
package eu.dnetlib.dhp.schema.sx.scholix;
import java.util.List;
public class ScholixFlat {
private String identifier;
private String relationType;
private String sourceId;
private String sourceType;
private String sourceSubType;
private List<String> sourcePid;
private List<String> sourcePidType;
private List<String> sourcePublisher;
private String targetId;
private String targetType;
private String targetSubType;
private List<String> targetPid;
private List<String> targetPidType;
private List<String> targetPublisher;
private List<String> linkProviders;
private String publicationDate;
private String blob;
public String getIdentifier() {
return identifier;
}
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
public String getRelationType() {
return relationType;
}
public void setRelationType(String relationType) {
this.relationType = relationType;
}
public String getSourceId() {
return sourceId;
}
public void setSourceId(String sourceId) {
this.sourceId = sourceId;
}
public String getSourceType() {
return sourceType;
}
public void setSourceType(String sourceType) {
this.sourceType = sourceType;
}
public String getSourceSubType() {
return sourceSubType;
}
public void setSourceSubType(String sourceSubType) {
this.sourceSubType = sourceSubType;
}
public List<String> getSourcePid() {
return sourcePid;
}
public void setSourcePid(List<String> sourcePid) {
this.sourcePid = sourcePid;
}
public List<String> getSourcePidType() {
return sourcePidType;
}
public void setSourcePidType(List<String> sourcePidType) {
this.sourcePidType = sourcePidType;
}
public List<String> getSourcePublisher() {
return sourcePublisher;
}
public void setSourcePublisher(List<String> sourcePublisher) {
this.sourcePublisher = sourcePublisher;
}
public String getTargetId() {
return targetId;
}
public void setTargetId(String targetId) {
this.targetId = targetId;
}
public String getTargetType() {
return targetType;
}
public void setTargetType(String targetType) {
this.targetType = targetType;
}
public String getTargetSubType() {
return targetSubType;
}
public void setTargetSubType(String targetSubType) {
this.targetSubType = targetSubType;
}
public List<String> getTargetPid() {
return targetPid;
}
public void setTargetPid(List<String> targetPid) {
this.targetPid = targetPid;
}
public List<String> getTargetPidType() {
return targetPidType;
}
public void setTargetPidType(List<String> targetPidType) {
this.targetPidType = targetPidType;
}
public List<String> getTargetPublisher() {
return targetPublisher;
}
public void setTargetPublisher(List<String> targetPublisher) {
this.targetPublisher = targetPublisher;
}
public List<String> getLinkProviders() {
return linkProviders;
}
public void setLinkProviders(List<String> linkProviders) {
this.linkProviders = linkProviders;
}
public String getPublicationDate() {
return publicationDate;
}
public void setPublicationDate(String publicationDate) {
this.publicationDate = publicationDate;
}
public String getBlob() {
return blob;
}
public void setBlob(String blob) {
this.blob = blob;
}
}

View File

@ -0,0 +1,30 @@
package eu.dnetlib.dhp.schema.sx.summary;
public class AuthorPid {
private String fullname;
private String ORCID;
public AuthorPid() {
}
public AuthorPid(String fullname, String ORCID) {
this.fullname = fullname;
this.ORCID = ORCID;
}
public String getFullname() {
return fullname;
}
public void setFullname(String fullname) {
this.fullname = fullname;
}
public String getORCID() {
return ORCID;
}
public void setORCID(String ORCID) {
this.ORCID = ORCID;
}
}

View File

@ -14,7 +14,7 @@ public class ScholixSummary implements Serializable {
private Typology typology;
private String subType;
private List<String> title;
private List<String> author;
private List<AuthorPid> author;
private List<String> date;
private String description;
private List<SchemeValue> subject;
@ -56,11 +56,11 @@ public class ScholixSummary implements Serializable {
this.title = title;
}
public List<String> getAuthor() {
public List<AuthorPid> getAuthor() {
return author;
}
public void setAuthor(List<String> author) {
public void setAuthor(List<AuthorPid> author) {
this.author = author;
}

View File

@ -4,5 +4,5 @@ package eu.dnetlib.dhp.schema.sx.summary;
import java.io.Serializable;
public enum Typology implements Serializable {
dataset, publication, unknown
dataset, publication, software, otherresearchproduct
}