-
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 #73 from DiSSCo/feature/add-chronometric-age
Add mapping for chronometricAge
- Loading branch information
Showing
43 changed files
with
1,368 additions
and
10 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
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
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
22 changes: 22 additions & 0 deletions
22
...dissco/core/translator/terms/specimen/chronometric/ChronometricAgeConversionProtocol.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.chronometric; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class ChronometricAgeConversionProtocol extends Term { | ||
|
||
public static final String TERM = CHRONO_PREFIX + "chronometricAgeConversionProtocol"; | ||
|
||
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; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...va/eu/dissco/core/translator/terms/specimen/chronometric/ChronometricAgeDeterminedBy.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.chronometric; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class ChronometricAgeDeterminedBy extends Term { | ||
|
||
public static final String TERM = CHRONO_PREFIX + "chronometricAgeDeterminedBy"; | ||
|
||
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; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
.../eu/dissco/core/translator/terms/specimen/chronometric/ChronometricAgeDeterminedDate.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,28 @@ | ||
package eu.dissco.core.translator.terms.specimen.chronometric; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class ChronometricAgeDeterminedDate extends Term { | ||
|
||
public static final String TERM = CHRONO_PREFIX + "chronometricAgeDeterminedDate"; | ||
private final List<String> abcdTerms = List.of("analysisDateTime/exactDate/dateText", | ||
"analysisDateTime/dateText"); | ||
private final List<String> dwcaTerms = List.of(TERM); | ||
|
||
@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; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/eu/dissco/core/translator/terms/specimen/chronometric/ChronometricAgeID.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.chronometric; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class ChronometricAgeID extends Term { | ||
|
||
public static final String TERM = CHRONO_PREFIX + "chronometricAgeID"; | ||
|
||
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; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...n/java/eu/dissco/core/translator/terms/specimen/chronometric/ChronometricAgeProtocol.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,28 @@ | ||
package eu.dissco.core.translator.terms.specimen.chronometric; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class ChronometricAgeProtocol extends Term { | ||
|
||
public static final String TERM = CHRONO_PREFIX + "chronometricAgeProtocol"; | ||
|
||
private final List<String> dwcaTerms = List.of(TERM); | ||
private final List<String> abcdTerms = List.of("radiometricDatingMethod"); | ||
|
||
@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; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...java/eu/dissco/core/translator/terms/specimen/chronometric/ChronometricAgeReferences.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,29 @@ | ||
package eu.dissco.core.translator.terms.specimen.chronometric; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class ChronometricAgeReferences extends Term { | ||
|
||
public static final String TERM = CHRONO_PREFIX + "chronometricAgeReferences"; | ||
|
||
private final List<String> dwcaTerms = List.of(TERM); | ||
private final List<String> abcdTerms = List.of("analysisReferences/uri", | ||
"analysisReferences/titleCitation", "analysisReferences/citationDetail"); | ||
|
||
@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; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...in/java/eu/dissco/core/translator/terms/specimen/chronometric/ChronometricAgeRemarks.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,28 @@ | ||
package eu.dissco.core.translator.terms.specimen.chronometric; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class ChronometricAgeRemarks extends Term { | ||
|
||
public static final String TERM = CHRONO_PREFIX + "chronometricAgeRemarks"; | ||
|
||
private final List<String> dwcaTerms = List.of(TERM); | ||
private final List<String> abcdTerms = List.of("datingComment"); | ||
|
||
@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; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...dissco/core/translator/terms/specimen/chronometric/ChronometricAgeUncertaintyInYears.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.chronometric; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import eu.dissco.core.translator.terms.Term; | ||
import java.util.List; | ||
|
||
public class ChronometricAgeUncertaintyInYears extends Term { | ||
|
||
public static final String TERM = CHRONO_PREFIX + "chronometricAgeUncertaintyInYears"; | ||
|
||
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; | ||
} | ||
} |
Oops, something went wrong.