2022-02-22 12:53:19 +01:00
|
|
|
|
|
|
|
package eu.dnetlib.dhp.rdfconverter.bioschema.model;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
2022-04-05 10:47:17 +02:00
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
|
|
|
|
|
|
import eu.dnetlib.dhp.rdfconverter.utils.CustomPropertyValueDeserializer;
|
2022-02-22 12:53:19 +01:00
|
|
|
|
|
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
|
|
public class BioSchemaProtein {
|
|
|
|
@JsonProperty("@id")
|
|
|
|
private String id;
|
|
|
|
@JsonProperty("@graph")
|
|
|
|
private List<Entry> entryList;
|
|
|
|
@JsonProperty("http://purl.org/pav/retrievedOn")
|
|
|
|
private DateTimeType retrievedOn;
|
|
|
|
|
|
|
|
public static class Entry {
|
|
|
|
@JsonProperty("@id")
|
|
|
|
private String id;
|
|
|
|
@JsonProperty("@type")
|
2022-03-17 19:24:07 +01:00
|
|
|
// private List<String> type;
|
|
|
|
private String type;
|
2022-02-22 12:53:19 +01:00
|
|
|
@JsonProperty("https://schema.org/identifier")
|
|
|
|
private String identifier;
|
|
|
|
@JsonProperty("https://schema.org/name")
|
|
|
|
private String name;
|
|
|
|
@JsonProperty("associatedDisease")
|
|
|
|
private List<AssociatedDisease> associatedDisease;
|
|
|
|
@JsonProperty("description")
|
|
|
|
private String description;
|
|
|
|
@JsonProperty("isEncodedByBioChemEntity")
|
|
|
|
private String isEncodedByBioChemEntity;
|
|
|
|
@JsonProperty("url")
|
|
|
|
private String url;
|
|
|
|
@JsonProperty("alternateName")
|
|
|
|
private String alternateName;
|
|
|
|
@JsonProperty("bioChemInteraction")
|
|
|
|
private List<Link> bioChemInteraction;
|
|
|
|
@JsonProperty("bioChemSimilarity")
|
|
|
|
private List<Link> bioChemSimilarity;
|
|
|
|
@JsonProperty("hasMolecularFunction")
|
|
|
|
private String hasMolecularFunction;
|
|
|
|
@JsonProperty("image")
|
|
|
|
private String image;
|
|
|
|
@JsonProperty("isInvolvedInBiologicalProcess")
|
|
|
|
private String isInvolvedInBiologicalProcess;
|
|
|
|
@JsonProperty("isPartOfBioChemEntity")
|
|
|
|
private IsPartOfBioChemEntity isPartOfBioChemEntity;
|
|
|
|
@JsonProperty("mainEntityOfPage")
|
|
|
|
private Link mainEntityOfPage;
|
|
|
|
@JsonProperty("https://schema.org/citation")
|
|
|
|
private Citation citation;
|
2022-03-17 19:24:07 +01:00
|
|
|
@JsonProperty("https://schema.org/sameAs")
|
|
|
|
private List<Link> sameAs;
|
2022-03-16 11:26:50 +01:00
|
|
|
@JsonProperty("https://schema.org/hasSequenceAnnotation")
|
2022-04-06 12:22:10 +02:00
|
|
|
private List<Link> hasSequenceAnnotation;
|
2022-03-17 19:24:07 +01:00
|
|
|
@JsonProperty("https://schema.org/additionalProperty")
|
|
|
|
private List<Link> sequenceAnnotation;
|
|
|
|
@JsonProperty("https://schema.org/value")
|
2022-04-05 10:47:17 +02:00
|
|
|
@JsonDeserialize(using = CustomPropertyValueDeserializer.class)
|
2022-03-17 19:24:07 +01:00
|
|
|
private Link propertyValue;
|
|
|
|
@JsonProperty("https://schema.org/termCode")
|
|
|
|
private String termCode;
|
2022-02-22 12:53:19 +01:00
|
|
|
|
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(String id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
2022-03-17 19:24:07 +01:00
|
|
|
public String getType() {
|
2022-02-22 12:53:19 +01:00
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2022-03-17 19:24:07 +01:00
|
|
|
public void setType(String type) {
|
2022-02-22 12:53:19 +01:00
|
|
|
this.type = type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setName(String name) {
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<Link> getSameAs() {
|
|
|
|
return sameAs;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setSameAs(List<Link> sameAs) {
|
|
|
|
this.sameAs = sameAs;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getIdentifier() {
|
|
|
|
return identifier;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setIdentifier(String identifier) {
|
|
|
|
this.identifier = identifier;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDescription(String description) {
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getIsEncodedByBioChemEntity() {
|
|
|
|
return isEncodedByBioChemEntity;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setIsEncodedByBioChemEntity(String isEncodedByBioChemEntity) {
|
|
|
|
this.isEncodedByBioChemEntity = isEncodedByBioChemEntity;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getUrl() {
|
|
|
|
return url;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setUrl(String url) {
|
|
|
|
this.url = url;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getAlternateName() {
|
|
|
|
return alternateName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAlternateName(String alternateName) {
|
|
|
|
this.alternateName = alternateName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<Link> getBioChemInteraction() {
|
|
|
|
return bioChemInteraction;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setBioChemInteraction(List<Link> bioChemInteraction) {
|
|
|
|
this.bioChemInteraction = bioChemInteraction;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<Link> getBioChemSimilarity() {
|
|
|
|
return bioChemSimilarity;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setBioChemSimilarity(List<Link> bioChemSimilarity) {
|
|
|
|
this.bioChemSimilarity = bioChemSimilarity;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getHasMolecularFunction() {
|
|
|
|
return hasMolecularFunction;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setHasMolecularFunction(String hasMolecularFunction) {
|
|
|
|
this.hasMolecularFunction = hasMolecularFunction;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getImage() {
|
|
|
|
return image;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setImage(String image) {
|
|
|
|
this.image = image;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getIsInvolvedInBiologicalProcess() {
|
|
|
|
return isInvolvedInBiologicalProcess;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setIsInvolvedInBiologicalProcess(String isInvolvedInBiologicalProcess) {
|
|
|
|
this.isInvolvedInBiologicalProcess = isInvolvedInBiologicalProcess;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<AssociatedDisease> getAssociatedDisease() {
|
|
|
|
return associatedDisease;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAssociatedDisease(List<AssociatedDisease> associatedDisease) {
|
|
|
|
this.associatedDisease = associatedDisease;
|
|
|
|
}
|
|
|
|
|
|
|
|
public IsPartOfBioChemEntity getIsPartOfBioChemEntity() {
|
|
|
|
return isPartOfBioChemEntity;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setIsPartOfBioChemEntity(IsPartOfBioChemEntity isPartOfBioChemEntity) {
|
|
|
|
this.isPartOfBioChemEntity = isPartOfBioChemEntity;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Link getMainEntityOfPage() {
|
|
|
|
return mainEntityOfPage;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setMainEntityOfPage(Link mainEntityOfPage) {
|
|
|
|
this.mainEntityOfPage = mainEntityOfPage;
|
|
|
|
}
|
|
|
|
|
2022-04-06 12:22:10 +02:00
|
|
|
public List<Link> getHasSequenceAnnotation() {
|
2022-03-17 19:24:07 +01:00
|
|
|
return hasSequenceAnnotation;
|
|
|
|
}
|
|
|
|
|
2022-04-06 12:22:10 +02:00
|
|
|
public void setHasSequenceAnnotation(List<Link> hasSequenceAnnotation) {
|
2022-03-17 19:24:07 +01:00
|
|
|
this.hasSequenceAnnotation = hasSequenceAnnotation;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<Link> getSequenceAnnotation() {
|
2022-03-16 11:26:50 +01:00
|
|
|
return sequenceAnnotation;
|
|
|
|
}
|
|
|
|
|
2022-03-17 19:24:07 +01:00
|
|
|
public void setSequenceAnnotation(List<Link> sequenceAnnotation) {
|
2022-03-16 11:26:50 +01:00
|
|
|
this.sequenceAnnotation = sequenceAnnotation;
|
|
|
|
}
|
|
|
|
|
2022-02-22 12:53:19 +01:00
|
|
|
public Citation getCitation() {
|
|
|
|
return citation;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setCitation(Citation citation) {
|
|
|
|
this.citation = citation;
|
|
|
|
}
|
2022-03-17 19:24:07 +01:00
|
|
|
|
|
|
|
public Link getPropertyValue() {
|
|
|
|
return propertyValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPropertyValue(Link propertyValue) {
|
|
|
|
this.propertyValue = propertyValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getTermCode() {
|
|
|
|
return termCode;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setTermCode(String termCode) {
|
|
|
|
this.termCode = termCode;
|
|
|
|
}
|
2022-02-22 12:53:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public static class IsPartOfBioChemEntity {
|
|
|
|
@JsonProperty("@type")
|
|
|
|
private String type;
|
|
|
|
@JsonProperty("url")
|
|
|
|
private String url;
|
|
|
|
|
|
|
|
public String getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setType(String type) {
|
|
|
|
this.type = type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getUrl() {
|
|
|
|
return url;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setUrl(String url) {
|
|
|
|
this.url = url;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static class AssociatedDisease {
|
|
|
|
@JsonProperty("@type")
|
|
|
|
private String type;
|
|
|
|
@JsonProperty("name")
|
|
|
|
private String name;
|
|
|
|
@JsonProperty("code")
|
|
|
|
private DeseaseCode code;
|
|
|
|
@JsonProperty("id")
|
|
|
|
private String id;
|
|
|
|
|
|
|
|
public String getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setType(String type) {
|
|
|
|
this.type = type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setName(String name) {
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public DeseaseCode getCode() {
|
|
|
|
return code;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setCode(DeseaseCode code) {
|
|
|
|
this.code = code;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(String id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static class DeseaseCode {
|
|
|
|
@JsonProperty("@type")
|
|
|
|
private String type;
|
|
|
|
@JsonProperty("codeValue")
|
|
|
|
private String codeValue;
|
|
|
|
@JsonProperty("codingSystem")
|
|
|
|
private String codingSystem;
|
|
|
|
|
|
|
|
public String getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setType(String type) {
|
|
|
|
this.type = type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getCodeValue() {
|
|
|
|
return codeValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setCodeValue(String codeValue) {
|
|
|
|
this.codeValue = codeValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getCodingSystem() {
|
|
|
|
return codingSystem;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setCodingSystem(String codingSystem) {
|
|
|
|
this.codingSystem = codingSystem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static class Link {
|
|
|
|
@JsonProperty("@id")
|
|
|
|
private String id;
|
|
|
|
|
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(String id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static class DateTimeType {
|
|
|
|
@JsonProperty("@type")
|
|
|
|
private String type;
|
|
|
|
@JsonProperty("@value")
|
|
|
|
private String value;
|
|
|
|
|
|
|
|
public String getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setType(String type) {
|
|
|
|
this.type = type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setValue(String value) {
|
|
|
|
this.value = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static class Citation {
|
|
|
|
@JsonProperty("@id")
|
|
|
|
private String id;
|
|
|
|
|
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(String id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-17 19:24:07 +01:00
|
|
|
public static class SequenceAnnotationId {
|
|
|
|
@JsonProperty("@id")
|
|
|
|
private String id;
|
|
|
|
|
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(String id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-16 11:26:50 +01:00
|
|
|
public static class SequenceAnnotation {
|
|
|
|
@JsonProperty("https://schema.org/additionalProperty")
|
2022-03-17 19:24:07 +01:00
|
|
|
private List<PropertyValue> additionalProperty;
|
2022-03-16 11:26:50 +01:00
|
|
|
|
2022-03-17 19:24:07 +01:00
|
|
|
public List<PropertyValue> getAdditionalProperty() {
|
2022-03-16 11:26:50 +01:00
|
|
|
return additionalProperty;
|
|
|
|
}
|
|
|
|
|
2022-03-17 19:24:07 +01:00
|
|
|
public void setAdditionalProperty(List<PropertyValue> additionalProperty) {
|
2022-03-16 11:26:50 +01:00
|
|
|
this.additionalProperty = additionalProperty;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-17 19:24:07 +01:00
|
|
|
public static class PropertyValue {
|
2022-03-16 11:26:50 +01:00
|
|
|
@JsonProperty("https://schema.org/value")
|
2022-03-17 19:24:07 +01:00
|
|
|
private DefinedTerm definedTerm;
|
2022-03-16 11:26:50 +01:00
|
|
|
|
2022-03-17 19:24:07 +01:00
|
|
|
public DefinedTerm getDefinedTerm() {
|
|
|
|
return definedTerm;
|
2022-03-16 11:26:50 +01:00
|
|
|
}
|
|
|
|
|
2022-03-17 19:24:07 +01:00
|
|
|
public void setDefinedTerm(DefinedTerm definedTerm) {
|
|
|
|
this.definedTerm = definedTerm;
|
2022-03-16 11:26:50 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-17 19:24:07 +01:00
|
|
|
public static class DefinedTerm {
|
2022-03-16 11:26:50 +01:00
|
|
|
@JsonProperty("@id")
|
|
|
|
private String id;
|
|
|
|
@JsonProperty("https://schema.org/termCode")
|
|
|
|
private String termCode;
|
|
|
|
@JsonProperty("https://schema.org/name")
|
|
|
|
private String name;
|
|
|
|
|
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(String id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getTermCode() {
|
|
|
|
return termCode;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setTermCode(String termCode) {
|
|
|
|
this.termCode = termCode;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setName(String name) {
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-22 12:53:19 +01:00
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(String id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<Entry> getEntryList() {
|
|
|
|
return entryList;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setEntryList(List<Entry> entryList) {
|
|
|
|
this.entryList = entryList;
|
|
|
|
}
|
|
|
|
|
|
|
|
public DateTimeType getRetrievedOn() {
|
|
|
|
return retrievedOn;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setRetrievedOn(DateTimeType retrievedOn) {
|
|
|
|
this.retrievedOn = retrievedOn;
|
|
|
|
}
|
|
|
|
}
|