Package org.gbif.api.util
Class IdentifierUtils
java.lang.Object
org.gbif.api.util.IdentifierUtils
This class contains utility methods for identifiers. Currently there are 3 separate Identifier
classes: 1) org.gbif.api.model.checklistbank.Identifier 2)
org.gbif.api.model.common.Identifier 3) org.gbif.api.model.registry.Identifier Methods
common to 2 or more classes should be listed here.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getIdentifierLink
(String identifier, IdentifierType type) Creates a http link for an identifier if possible by passing it to some known resolvers for the specific id type.static boolean
isValidCitesIdentifier
(String identifier) CITES identifier validation according to https://cites.org/eng/common/reg/e_si.html.static boolean
isValidCLBDatasetKey
(String identifier) static boolean
isValidISILIdentifier
(String identifier) ISIL identifier validation according to https://slks.dk/english/work-areas/libraries-and-literature/library-standards/structurestatic boolean
isValidRORIdentifier
(String identifier) static boolean
isValidWikidataIdentifier
(String identifier)
-
Field Details
-
WIKIDATA_PATTERN
-
ROR_PATTERN
-
ISIL_PATTERN
-
CLB_DATASET_KEY_PATTERN
-
-
Constructor Details
-
IdentifierUtils
public IdentifierUtils()
-
-
Method Details
-
getIdentifierLink
Creates a http link for an identifier if possible by passing it to some known resolvers for the specific id type. If no link can be constructed, null is returned.- Parameters:
identifier
- Identifier's identifiertype
- Identifier's type- Returns:
- the url or null if it cannot be created
-
isValidCitesIdentifier
CITES identifier validation according to https://cites.org/eng/common/reg/e_si.html. -
isValidWikidataIdentifier
-
isValidRORIdentifier
-
isValidISILIdentifier
ISIL identifier validation according to https://slks.dk/english/work-areas/libraries-and-literature/library-standards/structure -
isValidCLBDatasetKey
-