001/* 002 * Copyright 2020 Global Biodiversity Information Facility (GBIF) 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.gbif.api.model; 017 018import java.util.UUID; 019 020/** 021 * Common variables used by API. 022 */ 023public final class Constants { 024 025 /** 026 * The dataset key for the GBIF backbone (NUB) taxonomy. 027 */ 028 public static final UUID NUB_DATASET_KEY = UUID.fromString("d7dddbf4-2cf0-4f39-9b2a-bb099caae36c"); 029 030 /** 031 * The network key for the GBIF backbone sources. 032 */ 033 public static final UUID NUB_NETWORK_KEY = UUID.fromString("029f9226-0d8a-4f28-97fe-13180e9eb0e5"); 034 035 /** 036 * The dataset key for the Catalogue of Life. 037 */ 038 public static final UUID COL_DATASET_KEY = UUID.fromString("7ddf754f-d193-4cc9-b351-99906754a03b"); 039 040 /** 041 * The publishing organization key for Plazi. 042 */ 043 public static final UUID PLAZI_ORG_KEY = UUID.fromString("7ce8aef0-9e92-11dc-8738-b8a03c50a862"); 044 045 /** 046 * The network key for the Ocean Biodiversity Information System (OBIS). 047 */ 048 public static final UUID OBIS_NETWORK_KEY = UUID.fromString("2b7c7b4f-4d4f-40d3-94de-c28b6fa054a6"); 049 050 /** 051 * The dataset key for the EOD - eBird Observation Dataset. 052 */ 053 public static final UUID EBIRD_DATASET_KEY = UUID.fromString("4fa7b334-ce0d-4e88-aaae-2e0c138d049e"); 054 055 /** 056 * The dataset key for the iNaturalist Research-grade Observations dataset. 057 */ 058 public static final UUID INATURALIST_DATASET_KEY = UUID.fromString("50c9509d-22c7-4a22-a47d-8c48425ef4a7"); 059 060 /** 061 * The dataset key for the IUCN Red List of Threatened Species 062 */ 063 public static final UUID IUCN_DATASET_KEY = UUID.fromString("19491596-35ae-4a91-9a98-85cf505f1bd3"); 064 065 /** 066 * The maximum key for a NUB usage. All non-NUB usages have a key above this limit, so it can be used as a simple way 067 * to distinguish between NUB and checklist usages. 068 */ 069 public static final int NUB_MAXIMUM_KEY = 99999999; 070 071 private Constants() { 072 throw new UnsupportedOperationException("Can't initialize class"); 073 } 074 075}