public interface TaxonomyDatabase
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsGenus(String genus)
Does the database contain at least one record that exactly matches specified genus?.
|
boolean |
containsSpecies(String genus,
String species)
Does the database contain at least one record that exactly matches specified genus and species?.
|
boolean |
containsSubtaxa(String genus,
String species,
String subtaxa)
Does the database contain at least one record that exactly matches specified genus, species and subtaxa?.
|
List<String> |
findSimilarGenus(String genus,
int maxSize)
Return a list of genera close to the specified genus.
|
List<String> |
findSimilarSpecies(String genus,
String species,
int maxSize)
Return a list of species close to the specified genus and species.
|
List<String> |
findSimilarSubtaxa(String genus,
String species,
String subtaxa,
int maxSize)
Suggest a list of subtaxa
|
List<SpeciesRow> |
findSpeciesRow(String genus,
String species,
String subtaxa)
Find SpeciesRows matching the definition
|
String |
getGenus(long genusId)
Get genus by genusId
|
String |
getSpeciesAuthority(String genus,
String species)
Return the species authority for the specified species within genus.
|
SpeciesRow |
getSpeciesRow(long speciesId)
Get species by speciesId
|
String |
getSubtaxaAuthority(String genus,
String species,
String subtaxa)
Return the authority for the specified subtaxa
|
List<SpeciesRow> |
listSpecies(String genus,
String species,
int maxSize)
Return all subtaxa for genus and species
|
double |
similarityScore(String string1,
String string2)
Get string similarity score
|
boolean containsGenus(String genus)
genus - the genustrue if there is at least one recordList<String> findSimilarGenus(String genus, int maxSize)
genus - genusmaxSize - TODOboolean containsSpecies(String genus, String species)
genus - the genusspecies - the speciestrue if there is at least one recordList<String> findSimilarSpecies(String genus, String species, int maxSize)
genus - valid genusspecies - speciesmaxSize - maximum number of suggestions to returnString getSpeciesAuthority(String genus, String species)
genus - the genusspecies - the speciesnullboolean containsSubtaxa(String genus, String species, String subtaxa)
genus - valid genusspecies - valid speciessubtaxa - subtaxa to checktrue if there is at least one recordList<String> findSimilarSubtaxa(String genus, String species, String subtaxa, int maxSize)
genus - valid genusspecies - valid speciessubtaxa - current subtaxamaxSize - maximum number of suggestions to returnString getSubtaxaAuthority(String genus, String species, String subtaxa)
genus - the genusspecies - the speciessubtaxa - subtaxanullList<SpeciesRow> listSpecies(String genus, String species, int maxSize)
genus - valid genusspecies - valid speciesmaxSize - maximum number of rows to returnList<SpeciesRow> findSpeciesRow(String genus, String species, String subtaxa)
genus - the genusspecies - the speciessubtaxa - the MCPD subtaxaSpeciesRow getSpeciesRow(long speciesId)
speciesId - duhString getGenus(long genusId)
genusId - duhCopyright © 2017 Global Crop Diversity Trust. All rights reserved.