-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from DiSSCo/feature/additional-dwc-terms
Add additional dwc properties
- Loading branch information
Showing
37 changed files
with
1,083 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ecimen/occurence/DataGeneralizations.java → ...r/terms/specimen/DataGeneralizations.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ecimen/occurence/InformationWithheld.java → ...r/terms/specimen/InformationWithheld.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...java/eu/dissco/core/translator/terms/specimen/identification/IdentificationQualifier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package eu.dissco.core.translator.terms.specimen.identification; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class IdentificationQualifier extends Term { | ||
|
||
public static final String TERM = DWC_PREFIX + "identificationQualifier"; | ||
|
||
private final List<String> dwcaTerms = List.of(TERM); | ||
|
||
private final List<String> abcdTerms = List.of( | ||
"result/taxonIdentified/scientificName/identificationQualifier/nameAddendum"); | ||
|
||
@Override | ||
public String retrieveFromDWCA(JsonNode unit) { | ||
return super.searchJsonForTerm(unit, dwcaTerms); | ||
} | ||
|
||
@Override | ||
public String retrieveFromABCD(JsonNode unit) { | ||
return super.searchJsonForTerm(unit, abcdTerms); | ||
} | ||
|
||
@Override | ||
public String getTerm() { | ||
return TERM; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...a/eu/dissco/core/translator/terms/specimen/identification/taxonomy/AcceptedNameUsage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package eu.dissco.core.translator.terms.specimen.identification.taxonomy; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class AcceptedNameUsage extends Term { | ||
public static final String TERM = DWC_PREFIX + "acceptedNameUsage"; | ||
|
||
private final List<String> dwcaTerms = List.of(TERM); | ||
|
||
@Override | ||
public String retrieveFromDWCA(JsonNode unit) { | ||
return super.searchJsonForTerm(unit, dwcaTerms); | ||
} | ||
|
||
@Override | ||
public String getTerm() { | ||
return TERM; | ||
} | ||
|
||
|
||
} |
23 changes: 23 additions & 0 deletions
23
...eu/dissco/core/translator/terms/specimen/identification/taxonomy/AcceptedNameUsageId.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package eu.dissco.core.translator.terms.specimen.identification.taxonomy; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class AcceptedNameUsageId extends Term { | ||
public static final String TERM = DWC_PREFIX + "acceptedNameUsageId"; | ||
|
||
private final List<String> dwcaTerms = List.of(TERM); | ||
|
||
@Override | ||
public String retrieveFromDWCA(JsonNode unit) { | ||
return super.searchJsonForTerm(unit, dwcaTerms); | ||
} | ||
|
||
@Override | ||
public String getTerm() { | ||
return TERM; | ||
} | ||
|
||
|
||
} |
32 changes: 32 additions & 0 deletions
32
...ava/eu/dissco/core/translator/terms/specimen/identification/taxonomy/CultivarEpithet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package eu.dissco.core.translator.terms.specimen.identification.taxonomy; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class CultivarEpithet extends Term { | ||
public static final String TERM = DWC_PREFIX + "cultivarEpithet"; | ||
|
||
private final List<String> dwcaTerms = List.of(TERM); | ||
|
||
private final List<String> abcdTerms = List.of( | ||
"result/taxonIdentified/scientificName/nameAtomised/botanical/cultivarName", | ||
"result/taxonIdentified/scientificName/nameAtomised/botanical/cultivarGroupName"); | ||
|
||
@Override | ||
public String retrieveFromDWCA(JsonNode unit) { | ||
return super.searchJsonForTerm(unit, dwcaTerms); | ||
} | ||
|
||
@Override | ||
public String retrieveFromABCD(JsonNode unit) { | ||
return searchJsonForTerm(unit, abcdTerms); | ||
} | ||
|
||
@Override | ||
public String getTerm() { | ||
return TERM; | ||
} | ||
|
||
|
||
} |
23 changes: 23 additions & 0 deletions
23
...in/java/eu/dissco/core/translator/terms/specimen/identification/taxonomy/GenericName.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package eu.dissco.core.translator.terms.specimen.identification.taxonomy; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class GenericName extends Term { | ||
public static final String TERM = DWC_PREFIX + "genericName"; | ||
|
||
private final List<String> dwcaTerms = List.of(TERM); | ||
|
||
@Override | ||
public String retrieveFromDWCA(JsonNode unit) { | ||
return super.searchJsonForTerm(unit, dwcaTerms); | ||
} | ||
|
||
@Override | ||
public String getTerm() { | ||
return TERM; | ||
} | ||
|
||
|
||
} |
31 changes: 31 additions & 0 deletions
31
...eu/dissco/core/translator/terms/specimen/identification/taxonomy/InfraGenericEpithet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package eu.dissco.core.translator.terms.specimen.identification.taxonomy; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class InfraGenericEpithet extends Term { | ||
|
||
public static final String TERM = DWC_PREFIX + "infragenericEpithet"; | ||
|
||
private final List<String> dwcaTerms = List.of(TERM); | ||
private final List<String> abcdTerms = List.of( | ||
"result/taxonIdentified/scientificName/nameAtomised/botanical/firstEpithet", | ||
"result/taxonIdentified/scientificName/nameAtomised/zoological/subgenus", | ||
"result/taxonIdentified/scientificName/nameAtomised/bacterial/subgenus"); | ||
|
||
@Override | ||
public String retrieveFromDWCA(JsonNode unit) { | ||
return super.searchJsonForTerm(unit, dwcaTerms); | ||
} | ||
|
||
@Override | ||
public String retrieveFromABCD(JsonNode unit) { | ||
return searchJsonForTerm(unit, abcdTerms); | ||
} | ||
|
||
@Override | ||
public String getTerm() { | ||
return TERM; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...eu/dissco/core/translator/terms/specimen/identification/taxonomy/NomenclaturalStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package eu.dissco.core.translator.terms.specimen.identification.taxonomy; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class NomenclaturalStatus extends Term { | ||
|
||
public static final String TERM = DWC_PREFIX + "nomenclaturalStatus"; | ||
|
||
private final List<String> dwcaTerms = List.of(TERM); | ||
|
||
@Override | ||
public String retrieveFromDWCA(JsonNode unit) { | ||
return super.searchJsonForTerm(unit, dwcaTerms); | ||
} | ||
|
||
@Override | ||
public String getTerm() { | ||
return TERM; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...a/eu/dissco/core/translator/terms/specimen/identification/taxonomy/OriginalNameUsage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package eu.dissco.core.translator.terms.specimen.identification.taxonomy; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class OriginalNameUsage extends Term { | ||
public static final String TERM = DWC_PREFIX + "originalNameUsage"; | ||
|
||
private final List<String> dwcaTerms = List.of(TERM); | ||
|
||
@Override | ||
public String retrieveFromDWCA(JsonNode unit) { | ||
return super.searchJsonForTerm(unit, dwcaTerms); | ||
} | ||
|
||
@Override | ||
public String getTerm() { | ||
return TERM; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/eu/dissco/core/translator/terms/specimen/identification/taxonomy/Subtribe.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package eu.dissco.core.translator.terms.specimen.identification.taxonomy; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import java.util.List; | ||
|
||
public class Subtribe extends AbstractTaxonomy { | ||
|
||
public static final String TERM = DWC_PREFIX + "subtribe"; | ||
|
||
private final List<String> dwcaTerms = List.of(TERM); | ||
private final List<String> abcdSplitTerms = List.of("subtribus", "subtribe"); | ||
|
||
@Override | ||
public String retrieveFromDWCA(JsonNode unit) { | ||
return super.searchJsonForTerm(unit, dwcaTerms); | ||
} | ||
|
||
@Override | ||
public String retrieveFromABCD(JsonNode unit) { | ||
return super.searchABCDSplitTerms(unit, abcdSplitTerms); | ||
} | ||
@Override | ||
public String getTerm() { | ||
return TERM; | ||
} | ||
} |
Oops, something went wrong.