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