001/* 002 * Copyright 2021 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.dwc.terms; 017 018import java.net.URI; 019 020/** 021 * Internal GBIF terms used for processing, fragmenting, crawling, ... 022 * These are not exposed in downloads or the public API. 023 */ 024public enum GbifInternalTerm implements Term, AlternativeNames { 025 identifierCount, 026 crawlId, 027 fragment, 028 fragmentHash, 029 fragmentCreated, 030 xmlSchema, 031 publishingOrgKey, 032 unitQualifier, 033 networkKey, 034 installationKey, 035 programmeAcronym, 036 collectionKey, 037 institutionKey, 038 hostingOrganizationKey, 039 isInCluster, 040 dwcaExtension, 041 datasetTitle, 042 datasetCategory, 043 044 // Lower and upper endpoints for eventDates 045 eventDateGte, 046 eventDateLte, 047 048 //Experimental Terms for Events indexing 049 parentEventGbifId, 050 051 // multi taxonomy classifications 052 taxonomicStatuses, 053 classifications, 054 classificationDetails, 055 056 // humboldt 057 humboldtEventDurationValueInMinutes, 058 059 // nucleotide 060 nucleotide_nucleotideSequenceID, 061 nucleotide_sequence, 062 nucleotide_sequenceLength, 063 nucleotide_gcContent, 064 nucleotide_nonIupacFraction, 065 nucleotide_nonACGTNFraction, 066 nucleotide_nFraction, 067 nucleotide_nRunsCapped, 068 nucleotide_naturalLanguageDetected, 069 nucleotide_endsTrimmed, 070 nucleotide_gapsOrWhitespaceRemoved, 071 nucleotide_invalid; 072 073 private static final String PREFIX = "gbint"; 074 private static final String NS = "http://rs.gbif.org/terms/internal/"; 075 private static final URI NS_URI = URI.create(NS); 076 077 private static final String[] EMPTY = new String[0]; 078 079 @Override 080 public String simpleName() { 081 return name(); 082 } 083 084 @Override 085 public String toString() { 086 return prefixedName(); 087 } 088 089 @Override 090 public String[] alternativeNames() { 091 return EMPTY; 092 } 093 094 @Override 095 public boolean isClass() { 096 return false; 097 } 098 099 @Override 100 public String prefix() { 101 return PREFIX; 102 } 103 104 @Override 105 public URI namespace() { 106 return NS_URI; 107 } 108}