package org.gbif.dwc.terms;

import java.net.URI;

public enum GadmTerm implements Term, AlternativeNames {
  level0Gid(DwcTerm.GROUP_LOCATION),
  level0Name(DwcTerm.GROUP_LOCATION),
  level1Gid(DwcTerm.GROUP_LOCATION),
  level1Name(DwcTerm.GROUP_LOCATION),
  level2Gid(DwcTerm.GROUP_LOCATION),
  level2Name(DwcTerm.GROUP_LOCATION),
  level3Gid(DwcTerm.GROUP_LOCATION),
  level3Name(DwcTerm.GROUP_LOCATION);

  private static final String PREFIX = "gadm";
  private static final String NS = "http://gadm.org/terms/";
  private static final URI NS_URI = URI.create(NS);

  public final String[] normAlts;

  GadmTerm(String... alternatives) {
    normAlts = alternatives;
  }

  @Override
  public String simpleName() {
    return name();
  }

  @Override
  public String[] alternativeNames() {
    return normAlts;
  }

  @Override
  public String toString() {
    return prefixedName();
  }

  @Override
  public String prefix() {
    return PREFIX;
  }

  @Override
  public URI namespace() {
    return NS_URI;
  }

  @Override
  public boolean isClass() {
    return false;
  }
}

@@ -492,20 +492,23 @@
 %22http://
-gadm
+rs.gbif
 .org/ter
@@ -510,16 +510,25 @@
 g/terms/
+gadm/3.0/
 %22;%0A  pri

Use GBIF namespace.