Commit f2b0348f authored by Matija Obreza's avatar Matija Obreza
Browse files

Added CROPCODE to map accession to Genesys Crop

parent 0eae2228
......@@ -249,6 +249,9 @@ public class GenesysJSON {
columnDef = new JsonField(Api1Constants.Accession.CROPNAME, RdfMCPD.CROPNAME).setType(String.class);
columns.add(columnDef);
columnDef = new JsonField(Api1Constants.Accession.CROPCODE, RdfMCPD.CROPCODE).setType(String.class);
columns.add(columnDef);
columnDef = new JsonField(Api1Constants.Accession.REMARKS, RdfMCPD.REMARKS).setAllowMultiple(true);
columns.add(columnDef);
......
......@@ -88,6 +88,9 @@ public class MCPD {
columnDef = new ColumnDef("CROPNAME", "Common crop name", ColumnDataType.TEXT, false, RdfMCPD.CROPNAME).setIncludeNull(false);
columns.add(columnDef);
columnDef = new ColumnDef("CROPCODE", "Genesys crop code", ColumnDataType.TEXT, false, RdfMCPD.CROPCODE).setIncludeNull(false);
columns.add(columnDef);
columnDef = new ColumnDef("ACCENAME", "Accession name", ColumnDataType.TEXT, false, RdfMCPD.ACCENAME).setAllowMultiple(true);
columns.add(columnDef);
......
......@@ -34,6 +34,7 @@ public class RdfMCPD {
public static final String SUBTAXA = "http://rs.tdwg.org/dwc/terms/infraspecificEpithet";
public static final String SUBTAUTHOR = "http://rs.tdwg.org/dwc/terms/scientificNameAuthorship";
public static final String CROPNAME = "http://rs.tdwg.org/dwc/terms/vernacularName";
public static final String CROPCODE = "https://www.genesys-pgr.org/rdf/mcpd#cropCode";
public static final String ACCENAME = "http://purl.org/germplasm/germplasmTerm#germplasmIdentifier";
public static final String ACQDATE = "http://purl.org/germplasm/germplasmTerm#acquisitionDate";
public static final String ORIGCTY = "http://rs.tdwg.org/dwc/terms/country";
......
Supports Markdown
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