Skip to content

Commit

Permalink
Switch to static chrono-prefix field
Browse files Browse the repository at this point in the history
  • Loading branch information
samleeflang committed Nov 20, 2024
1 parent c42e6a7 commit fb97254
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions src/main/java/eu/dissco/core/translator/terms/Term.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public abstract class Term {
protected static final String ODS_PREFIX = "ods:";
protected static final String DWC_PREFIX = "dwc:";
protected static final String DCTERMS_PREFIX = "dcterms:";
protected static final String CHRONO_PREFIX = "chrono:";
protected static final Pair<String, String> ABCD_NAMED_AREA_KEY =
Pair.of(
"abcd:gathering/namedAreas/namedArea/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class ChronometricAgeConversionProtocol extends Term {

public static final String TERM = "chrono:chronometricAgeConversionProtocol";
public static final String TERM = CHRONO_PREFIX + "chronometricAgeConversionProtocol";

private final List<String> dwcaTerms = List.of(TERM);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class ChronometricAgeDeterminedBy extends Term {

public static final String TERM = "chrono:chronometricAgeDeterminedBy";
public static final String TERM = CHRONO_PREFIX + "chronometricAgeDeterminedBy";

private final List<String> dwcaTerms = List.of(TERM);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class ChronometricAgeDeterminedDate extends Term {

public static final String TERM = "chrono:chronometricAgeDeterminedDate";
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class ChronometricAgeID extends Term {

public static final String TERM = "chrono:chronometricAgeID";
public static final String TERM = CHRONO_PREFIX + "chronometricAgeID";

private final List<String> dwcaTerms = List.of(TERM);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class ChronometricAgeProtocol extends Term {

public static final String TERM = "chrono:chronometricAgeProtocol";
public static final String TERM = CHRONO_PREFIX + "chronometricAgeProtocol";

private final List<String> dwcaTerms = List.of(TERM);
private final List<String> abcdTerms = List.of("radiometricDatingMethod");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class ChronometricAgeReferences extends Term {

public static final String TERM = "chrono:chronometricAgeReferences";
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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class ChronometricAgeRemarks extends Term {

public static final String TERM = "chrono:chronometricAgeRemarks";
public static final String TERM = CHRONO_PREFIX + "chronometricAgeRemarks";

private final List<String> dwcaTerms = List.of(TERM);
private final List<String> abcdTerms = List.of("datingComment");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class ChronometricAgeUncertaintyInYears extends Term {

public static final String TERM = "chrono:chronometricAgeUncertaintyInYears";
public static final String TERM = CHRONO_PREFIX + "chronometricAgeUncertaintyInYears";

private final List<String> dwcaTerms = List.of(TERM);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class ChronometricAgeUncertaintyMethod extends Term {

public static final String TERM = "chrono:chronometricAgeUncertaintyMethod";
public static final String TERM = CHRONO_PREFIX + "chronometricAgeUncertaintyMethod";

private final List<String> dwcaTerms = List.of(TERM);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class EarliestChronometricAge extends Term {

public static final String TERM = "chrono:earliestChronometricAge";
public static final String TERM = CHRONO_PREFIX + "earliestChronometricAge";

private final List<String> dwcaTerms = List.of(TERM);
private final List<String> abcdTerms = List.of("earliestDate");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class EarliestChronometricAgeReferenceSystem extends Term {

public static final String TERM = "chrono:earliestChronometricAgeReferenceSystem";
public static final String TERM = CHRONO_PREFIX + "earliestChronometricAgeReferenceSystem";

private final List<String> dwcaTerms = List.of(TERM);
private final List<String> abcdTerms = List.of("timeUnit");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class LatestChronometricAge extends Term {

public static final String TERM = "chrono:latestChronometricAge";
public static final String TERM = CHRONO_PREFIX + "latestChronometricAge";

private final List<String> dwcaTerms = List.of(TERM);
private final List<String> abcdTerms = List.of("latestDate");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class LatestChronometricAgeReferenceSystem extends Term {

public static final String TERM = "chrono:latestChronometricAgeReferenceSystem";
public static final String TERM = CHRONO_PREFIX + "latestChronometricAgeReferenceSystem";

private final List<String> dwcaTerms = List.of(TERM);
private final List<String> abcdTerms = List.of("timeUnit");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class MaterialDated extends Term {

public static final String TERM = "chrono:materialDated";
public static final String TERM = CHRONO_PREFIX + "materialDated";

private final List<String> dwcaTerms = List.of(TERM);
private final List<String> abcdTerms = List.of("materialDated");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class MaterialDatedID extends Term {

public static final String TERM = "chrono:materialDatedID";
public static final String TERM = CHRONO_PREFIX + "materialDatedID";

private final List<String> dwcaTerms = List.of(TERM);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class MaterialDatedRelationship extends Term {

public static final String TERM = "chrono:materialDatedRelationship";
public static final String TERM = CHRONO_PREFIX + "materialDatedRelationship";

private final List<String> dwcaTerms = List.of(TERM);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class UncalibratedChronometricAge extends Term {

public static final String TERM = "chrono:uncalibratedChronometricAge";
public static final String TERM = CHRONO_PREFIX + "uncalibratedChronometricAge";

private final List<String> dwcaTerms = List.of(TERM);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class VerbatimChronometricAge extends Term {

public static final String TERM = "chrono:verbatimChronometricAge";
public static final String TERM = CHRONO_PREFIX + "verbatimChronometricAge";

private final List<String> dwcaTerms = List.of(TERM);
private final List<String> abcdTerms = List.of("datingAccuracy");
Expand Down

0 comments on commit fb97254

Please sign in to comment.