log.info("**************** ORDER: *{}*", orderName); orderPath = "/Animalia/Chordata/Aves/" + orderName; order = findOrCreateSubTaxon(aves, idPrefix, orderPath).withRank(ORDER). withScientificName(orderName). withSpecificEpythet(orderName). log.info("**************** FAMILY: *{}*", familyName); familyPath = orderPath + "/" + familyName; family = findOrCreateSubTaxon(order, idPrefix, familyPath).withRank(FAMILY). withScientificName(familyName). withSpecificEpythet(familyName). final Taxon genus = findOrCreateSubTaxon(family, idPrefix, genusPath).withRank(GENUS). withScientificName(genusName). withSpecificEpythet(genusName). build(); final Taxon species = findOrCreateSubTaxon(genus, idPrefix, speciesPath).withRank(SPECIES). withScientificName(genusName + " " + speciesName). withSpecificEpythet(speciesName).
order = findOrCreateSubTaxon(aves, idPrefix, orderPath).withRank(ORDER). withScientificName(orderName). withSpecificEpythet(orderName). log.info("**************** FAMILY: *{}*", familyName); familyPath = orderPath + "/" + familyName; family = findOrCreateSubTaxon(order, idPrefix, familyPath).withRank(FAMILY). withScientificName(familyName). withSpecificEpythet(familyName). genus = findOrCreateSubTaxon(family, idPrefix, genusPath).withRank(GENUS). withScientificName(genusName). withSpecificEpythet(genusName). final Taxon species = findOrCreateSubTaxon(genus, idPrefix, speciesPath).withRank(SPECIES). withScientificName(genusName + " " + speciesName). withSpecificEpythet(speciesName).
/******************************************************************************************************************* * * ******************************************************************************************************************/ @Nonnull protected Taxon createAves (final @Nonnull Taxonomy taxonomy, final @Nonnull String idPrefix) throws RepositoryException { return taxonomy.createTopTaxon().withScientificName("Aves"). withSpecificEpythet("Aves"). withId(new Id(idPrefix + "/Animalia/Chordata/Aves")). withRank(Taxon.Rank.CLASS). build(); }
familyPath = orderPath + "/" + familyName; order = findOrCreateSubTaxon(aves, idPrefix, orderPath).withRank(ORDER). withScientificName(orderName). withSpecificEpythet(orderName). build(); family = findOrCreateSubTaxon(order, idPrefix, familyPath).withRank(FAMILY). withScientificName(familyName). withSpecificEpythet(familyName). final Taxon genus = findOrCreateSubTaxon(family, idPrefix, genusPath).withRank(GENUS). withScientificName(genusName). withSpecificEpythet(genusName). build(); final Taxon species = findOrCreateSubTaxon(genus, idPrefix, speciesPath).withRank(SPECIES). withScientificName(genusName + " " + speciesName). withSpecificEpythet(speciesName).
Builder builder = findOrCreateSubTaxon(aves, "", id).withRank(rank). withScientificName(scientificName). withSpecificEpythet(split[rankIndex]).
final Taxon order = findOrCreateSubTaxon(aves, idPrefix, path).withRank(ORDER). withScientificName(orderName). withSpecificEpythet(orderName). build(); path += "/" + familyName; final Taxon family = findOrCreateSubTaxon(order, idPrefix, path).withRank(FAMILY). withScientificName(familyName). withSpecificEpythet(familyName). build(); path += "/" + genusName; final Taxon genus = findOrCreateSubTaxon(family, idPrefix, path).withRank(GENUS). withScientificName(genusName). withSpecificEpythet(genusName). build(); path += "/" + speciesName; final Taxon species = findOrCreateSubTaxon(genus, idPrefix, path).withRank(SPECIES). withScientificName(genusName + " " + speciesName). withSpecificEpythet(speciesName). try findOrCreateSubTaxon(species, idPrefix, path).withRank(SUBSPECIES). withScientificName(genusName + " " + speciesName + " " + subSpeciesName). withSpecificEpythet(subSpeciesName).
withDisplayNames(displayable). withId(id). withRank(rank). withInitializers(initializers). build();