[Scholexplorer]:
Updated scholix model: added subtype in scholix Summary and URL in Identifier field
This commit is contained in:
parent
7605f08d81
commit
74aa404a80
|
@ -1,15 +1,13 @@
|
|||
|
||||
package eu.dnetlib.dhp.schema.sx.scholix;
|
||||
|
||||
|
||||
|
||||
import eu.dnetlib.dhp.schema.sx.summary.ScholixSummary;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import eu.dnetlib.dhp.schema.sx.summary.ScholixSummary;
|
||||
|
||||
public class ScholixResource implements Serializable {
|
||||
|
||||
private List<ScholixIdentifier> identifier;
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
|
||||
package eu.dnetlib.dhp.schema.sx.summary;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class ScholixSummary implements Serializable {
|
||||
private String id;
|
||||
private List<TypedIdentifier> localIdentifier;
|
||||
private Typology typology;
|
||||
private String subType;
|
||||
private List<String> title;
|
||||
private List<String> author;
|
||||
private List<String> date;
|
||||
|
@ -125,4 +127,12 @@ public class ScholixSummary implements Serializable {
|
|||
public void setDatasources(List<CollectedFromType> datasources) {
|
||||
this.datasources = datasources;
|
||||
}
|
||||
|
||||
public String getSubType() {
|
||||
return subType;
|
||||
}
|
||||
|
||||
public void setSubType(String subType) {
|
||||
this.subType = subType;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,13 +6,23 @@ import java.io.Serializable;
|
|||
public class TypedIdentifier implements Serializable {
|
||||
private String id;
|
||||
private String type;
|
||||
private String url;
|
||||
|
||||
public TypedIdentifier() {
|
||||
}
|
||||
|
||||
public TypedIdentifier(String id, String type) {
|
||||
public TypedIdentifier(String id, String type, String url) {
|
||||
this.id = id;
|
||||
this.type = type;
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
|
|
Loading…
Reference in New Issue