public class IdentifierUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Pattern |
CLB_DATASET_KEY_PATTERN |
static Pattern |
ISIL_PATTERN |
static Pattern |
ROR_PATTERN |
static Pattern |
WIKIDATA_PATTERN |
Constructor and Description |
---|
IdentifierUtils() |
Modifier and Type | Method and Description |
---|---|
static 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/structure
|
static boolean |
isValidRORIdentifier(String identifier) |
static boolean |
isValidWikidataIdentifier(String identifier) |
public static final Pattern WIKIDATA_PATTERN
public static final Pattern ROR_PATTERN
public static final Pattern ISIL_PATTERN
public static final Pattern CLB_DATASET_KEY_PATTERN
public IdentifierUtils()
@Nullable public static String getIdentifierLink(String identifier, IdentifierType type)
identifier
- Identifier's identifiertype
- Identifier's typepublic static boolean isValidCitesIdentifier(String identifier)
public static boolean isValidWikidataIdentifier(String identifier)
public static boolean isValidRORIdentifier(String identifier)
public static boolean isValidISILIdentifier(String identifier)
public static boolean isValidCLBDatasetKey(String identifier)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.