Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Uploader
Commits
f2b0348f
Commit
f2b0348f
authored
Dec 11, 2021
by
Matija Obreza
Browse files
Added CROPCODE to map accession to Genesys Crop
parent
0eae2228
Changes
3
Hide whitespace changes
Inline
Side-by-side
anno-gui/src/main/java/org/genesys2/anno/predefined/GenesysJSON.java
View file @
f2b0348f
...
...
@@ -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
);
...
...
anno-gui/src/main/java/org/genesys2/anno/predefined/MCPD.java
View file @
f2b0348f
...
...
@@ -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
);
...
...
anno-gui/src/main/java/org/genesys2/anno/predefined/RdfMCPD.java
View file @
f2b0348f
...
...
@@ -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"
;
...
...
Matija Obreza
@mobreza
mentioned in commit
9b67f2ef
·
Dec 11, 2021
mentioned in commit
9b67f2ef
mentioned in commit 9b67f2efcf984fe4b9343d006d0a111964f1af08
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment