Commit dd5de588 authored by Matija Obreza's avatar Matija Obreza

Merge branch '3-doi-support' into 'master'

Resolve "DOI support"

Closes #3

See merge request !2
parents 58b14ac4 98730bb2
......@@ -94,6 +94,9 @@ public class GenesysJSON {
JsonField instCode = new JsonField(Api1Constants.Accession.INSTCODE, RdfMCPD.INSTCODE).setRequired(true);
columns.add(instCode);
JsonField doi = new JsonField(Api1Constants.Accession.DOI, RdfMCPD.DOI).setRequired(false);
columns.add(doi);
JsonField acceNumb = new JsonField(Api1Constants.Accession.ACCENUMB, RdfMCPD.ACCENUMB).setRequired(true);
columns.add(acceNumb);
......
......@@ -34,6 +34,9 @@ public class MCPD {
instCode.getValidators().add(new FaoWiewsInstCodeValidator());
columns.add(instCode);
ColumnDef doi = new ColumnDef("DOI", "Digital object identifier", ColumnDataType.TEXT, true, RdfMCPD.DOI);
columns.add(doi);
ColumnDef acceNumb = new ColumnDef("ACCENUMB", "Accession number", ColumnDataType.TEXT, true, RdfMCPD.ACCENUMB);
columns.add(acceNumb);
......
......@@ -19,6 +19,7 @@ package org.genesys2.anno.predefined;
public class RdfMCPD {
// http://purl.org/germplasm/germplasmTerm#
public static final String INSTCODE = "http://rs.tdwg.org/dwc/terms/institutionCode";
public static final String DOI = "http://prismstandard.org/namespaces/1.2/basic/doi";
public static final String ACCENUMB = "http://purl.org/germplasm/germplasmTerm#germplasmID";
public static final String NEWACCENUMB = "https://www.genesys-pgr.org/rdf/mcpd#newAcceNumb";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment