[Schema-Dump] changed the model to allow to change the description annotation w.r.t. the specific semantics of the field - refactoring
This commit is contained in:
parent
82720345f0
commit
a222c28fec
|
@ -1,9 +1,9 @@
|
||||||
package eu.dnetlib.dhp.schema.dump.oaf;
|
package eu.dnetlib.dhp.schema.dump.oaf;
|
||||||
|
|
||||||
import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema;
|
||||||
|
|
||||||
public class AlternateIdentifier implements Serializable {
|
public class AlternateIdentifier implements Serializable {
|
||||||
@JsonSchema(description="The scheme of the identifier. It can be a persistent identifier (i.e. doi). If it is present in the alternate identifiers " +
|
@JsonSchema(description="The scheme of the identifier. It can be a persistent identifier (i.e. doi). If it is present in the alternate identifiers " +
|
||||||
"it means it has not been forged by an authority for that pid. For example we collect metadata from an institutional repository that provides " +
|
"it means it has not been forged by an authority for that pid. For example we collect metadata from an institutional repository that provides " +
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package eu.dnetlib.dhp.schema.dump.oaf;
|
package eu.dnetlib.dhp.schema.dump.oaf;
|
||||||
|
|
||||||
import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema;
|
||||||
|
|
||||||
public class AuthorPidSchemeValue implements Serializable {
|
public class AuthorPidSchemeValue implements Serializable {
|
||||||
|
|
||||||
@JsonSchema(description="The author's pid scheme. OpenAIRE currently supports 'ORCID'")
|
@JsonSchema(description="The author's pid scheme. OpenAIRE currently supports 'ORCID'")
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
package eu.dnetlib.dhp.schema.dump.oaf;
|
package eu.dnetlib.dhp.schema.dump.oaf;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema;
|
import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
public class Measure implements Serializable {
|
public class Measure implements Serializable {
|
||||||
@JsonSchema(description = "The measure (i.e. popularity)")
|
@JsonSchema(description = "The measure (i.e. popularity)")
|
||||||
|
@ -41,4 +42,4 @@ public class Measure implements Serializable {
|
||||||
return StringUtils.isBlank(key) && StringUtils.isBlank(value);
|
return StringUtils.isBlank(key) && StringUtils.isBlank(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package eu.dnetlib.dhp.schema.dump.oaf;
|
package eu.dnetlib.dhp.schema.dump.oaf;
|
||||||
|
|
||||||
import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema;
|
||||||
|
|
||||||
public class SubjectSchemeValue implements Serializable {
|
public class SubjectSchemeValue implements Serializable {
|
||||||
@JsonSchema(description="OpenAIRE subject classification scheme (https://api.openaire.eu/vocabularies/dnet:subject_classification_typologies).")
|
@JsonSchema(description="OpenAIRE subject classification scheme (https://api.openaire.eu/vocabularies/dnet:subject_classification_typologies).")
|
||||||
private String scheme;
|
private String scheme;
|
||||||
|
|
Loading…
Reference in New Issue