Diversity Taxon Names

Import Export

  • Archive

    Creating and restoring archives for projects

  • Backup

    Backup of the database

  • Export

    Exporting data to text files

  • Import

    Importing data from text files

  • Replication

    Replication of data with other databases

Valid for all modules

The chapter below refers to DiversityCollection but is valid for DiversityTaxonNames as well.

The CacheDatabase is accessed via DiversityCollection

An overview of some options for the im- and export in the module DiversityCollection is shown in the image below. The options Importwizard, Exportwizard, Archive and Replication are available in most of the modules.

Example for a data flow

The image below shows an expample for a data flow from the original source to the final GBIF-portal. As a first step the data are imported via the Import wizard are imported into the database. After the data are given free for publication, they are transferred into the cache database .  From there they are transferred into a Postgres database containing a package for conversion into ABCD. Finally the BioCASE tool for mapping the data is used to provide the data for GBIF.

May 6, 2025

Subsections of Import Export

Diversity Taxon Names

Archive

Creating an archive

Valid for all modules

This chapter describes the archiving for the module DiversityAgents, but is valid correspondingly in other modules

The data related to a project can be exported into an archive. Choose Data - Archive - Create archive... from the menu. A window as shown below will open.

Select the project you want to create an archive of and click on the Find the data =\\\ button. The data related with the project will be imported into temporary tables to allow you to inspect them in advance of the creation of the archive (use the buttons to see the data). To create the archive, click on the Create the archive button. A directory will be created containing a XML file for every table. For a common introduction see the tutorial: Video starten.

You can include the log data by selecting the option as described in the tutorial: Video starten.

 

Resetting the database

Before you restore an archive, please make sure that the data from the archive do not interfere with the data in the database. In order to avoid problems you should clean the database from any user data. To clear the database from any user data, choose  Data - Archive - Reset database... from the menu. A window as shown below will open listing all tables and the number of data within these tables. Click on the Reset database  button to remove any of these data including any data in the log tables.

 

Restoring an archive

To restore an archive choose Data - - Archive - Restore archive... from the menu. A window as shown below will open listing the tables in the database. To restore an archive click on the Choose archive directory button and select the directory containing the archive files. Next click on the Read data button to import the data from the XML files into temporary tables.

With a click on the buttons you can inspect the content of the temporary tables. Finally click on the Restore from archiv button. If you select the option, the import will ask you for a stop in case of an error.

You can include the log data by selecting the option as described in the tutorial: Video starten.  

Planing

Plan schedule based archive creation

To administrate the schedule based creation of archives choose Data - Archive - Administrate archives... from the menu. A window as shown below will open listing the projects in the database. Select the project that should be included in the schedule based creation of archives. To create an archive for all selected projects, click on the Create archives button. The protocol of a previous archiving is shown as in the image below. Successful runs are indicated with a green color while failures have a red background (see below).

 

Creation of xsd schemata

Next to the data, the archive files contain a xsd description of the tables. To create xsd schemata independent of the content, select Data - Archive - Create schema from the menu. A windows as shown below will open with the list of all tables where the main tables of the database are preselected.

To change this selection you may use the  all and  none buttons resp. the Add to selection  and Remove from selection  options using * as a wildcard. Click on the Create schemata  button to create the schemata for the selected tables in the predefined directory. The  button will open this directory containing the created files. The schemata contain the name of the DiversityWorkbench module and its version, the definition of the table, the primary key and the colums together with their datatype and description (see the example below).

Creation of archives as a backgroud process

To archive the data in a scheduler based background process, you can start the application with the following arguments:

  • Archive
  • Server of the SQL-server database
  • Port of SQL-server
  • Database with the source data
  • Optional: Directory where the archive directories should be created

C:\DiversityWorkbench\DiversityAgents> DiversityAgents.exe Archive snsb.diversityworkbench.de 5432 DiversityAgents C:\DiversityWorkbench\DiversityAgents\Archive

The application will create the archives, generate the protocols as described above and quit automatically after the job is done. The user starting the process needs a Windows authentication with access to the SQL-Server database and proper rights to archive the data. If the last argument is not given the default directory …\Application directory\Archive\ will be used.

 

 

 

May 6, 2025

Diversity Taxon Names

Backup

If you want to create a backup of your database, there are 2 options. You may either export the data as csv files to your local computer or you may create a backup on the server.

Export data as csv

To export your data as csv files to your local computer, choose Data → Export → CSV(bcp) ... from the menu. A window will open as shown below, where you can select the tables that should be exported. Click on the Start Export button to export your data. If you choose the option as shown below 2 files will be created for every table. The first file (*.csv) contains the data while the second file (*.xml) contains the structure of the table.

Create backup on the server

To create a backup of your database on the server, choose Data → Backup database from the menu. This will create a SQL-Server backup on the server where the database is located. Ensure that there is enough space on the server.

Another option is to create a direct copy of the database files on the server. For this you have to use the functions provided by SQL-Server. However, you need administration rights for the database you want to create a backup of. Open the Enterprise Manager for SQL-Server, choose the database and detach it from the server as shown in the image below.

After detaching the database, you can save a copy of the ..._Data.MDF file to keep it as a backup.

After storing the backup you have to reattach the database.

A dialog will appear where you have to select the original database file in your directory.

May 6, 2025

Diversity Taxon Names

Replication

Valid for all modules

The chapter below refers to DiversityCollection but is valid for DiversityTaxonNames as well.

Replication

If you wish to work with your data on a local database (called subscriber), e.g. on your laptop, not linked to a database on a central server (called publisher) and these data should be synchronized with the data in the database on the server, you may use the replication function of DiversityCollection. To install the database on your local computer see the installation section.

To use the replication function you require the roles Replicator or Administrator.

Add Publisher

To define a publishing database choose Data → Replication → Add Publisher from the menu. A window will open where you choose the publisher. After the publisher is set, you may transfer data between your local database (subscriber) and the publisher. This function is only available for administrators.

Remove Publisher

To remove a publisher from the list choose Data → Replication → [Publisher] → Remove from the menu (where [Publisher] is the name of the publishing database on the publishing server). This function is only available for administrators.

Clean database

Initially you may wish to remove all previous data from your local database (subscriber). Choose Data → Replication → Clean database … from the menu. A window will open as shown below where you may choose the ranges which should be cleared:

  • Definitions = the basic definitions within the database, e.g. the available taxonomic groups.
  • Descriptions = the descriptions and their translations of the tables and columns of the database.
  • Project, User = the available projects and users.
  • Basic data = basic data like the collection.
  • Data = the specimen, organisms etc.

Choose the data ranges you wish to clear and click on the button. All tables which contain data will be listed as shown below.

 

Choose the tables which should be cleared and click on the Clean database button. Please keep in mind that you can not delete data from a table as long as there is data in a related table depending on the data you wish to delete. The sequence of the tables is organized to avoid these problems.

Download

To download data from the publisher choose Data → Replication → [Publisher] → Download from the menu (where [Publisher] is the name of the publishing database on the publishing server). A form will open as shown below. Choose the project of the data and the data ranges (see above) which you wish to download. Click on the button to list the tables containing data. To start the download click on the Start download button. With the Force download, ignore conflicts option you can decide whether or not the data in your local database (= Subscriber) should be checked for changes before you download the data from the publisher.

If not all data should be included in the replication, you have the option to set a filter. Click on the button for the table where the data should be filtered to set this filter. A window as shown below will open.

All columns of the table will be listed and allow you to set the filter. To inspect the filtered data, click on the button. Click on the button to see the current filter. If a filter is set this will be indicated with a blue background .  

Merge

To merge data from your local subscriber database with the publisher you must first choose a project. Choose Data → Replication → [Publisher] → Merge** from the menu ([Publisher] is the name of the publishing database on the publishing server). As described for the download, choose the data ranges and click on the button. To start the upload click on the Start merge button.

 

Upload

To transfer data from your local subscriber database to the publisher you must first choose a project. Choose Data → Replication → [Publisher] → Upload from the menu ([Publisher] is the name of the publishing database on the publishing server). As described for the download, choose the data ranges and click on the

button. To start the upload click on the Start upload button. With the Force upload, ignore conflicts option you can decide whether or not the data in server (= Publisher) should be checked for changes before you upload the data from your local database (= Subscriber).

As described for the download, data may be filtered with a click on the button (see above).

 

Tools

To fix problems that may interfere with the replication you find some tools under the menu Data → Replication → [Publisher] → Tools… from the menu ([Publisher] is the name of the publishing database on the publishing server). A window will open as shown below.

You may synchronize the RowGUIDs between basic subscriber and publisher tables if for any reason these are differing, e.g. due to manual insert. Choose the table that should be synchronized. The tables will be compared for both publisher and subscriber. The datasets with identical key but different RowGUID will be listed (see above). Click on the Start update button to synchronize the RowGUIDs.  

Conflict

If the transfer of data was successful, the numbers of the transferred data will be shown as below.

During the download or upload a conflict may occur, if the data has been edited in both databases. This will be indicated as shown below.

Click on the button to open a window as shown below where you can choose between the two versions of the data as found in the publisher and the subscriber database.

The conflicting columns are marked red. For text values the program will create a combination of both values (see above) in a merged version of the data. Choose the preferred version of the data and click Solve conflict button. If you can not solve a conflict, use the Ignore conflict or Stop conflict resolution buttons respectively.

 

Report

At the end of each transfer a report will be created with a summary for every table which has been included.

 

May 6, 2025

Diversity Taxon Names

Import

To import taxonomic names you have two options. Either use an import taxonomic names including evaluation of names according to codes like ICBN and automatic splitting of the names or a generic import wizard providing the additional possibilty to import synonyms and hierarchies.

Apr 16, 2025

Subsections of Import

Diversity Taxon Names

Import List

To import taxonomic names, choose Data → Import taxonomic names … from the menu. A window as shown below will open. Choose the encoding of your datasource, that means if your datasource was encoded with ASCII or a unicode format. To ensure a correct import of special signs please provide resp. convert your data in one of the available formats. You must choose a Project, in which your data should be imported. You may choose a Taxon list and a Datasource and if the names should be imported as accepted.

If there are additional columns in the source file (separated by tab) you may add these unsing the Add column button (see below) in the sequence as found in the source file. The additional columns will be included in the analysis of the data as shown below. To remove a column use the button.

To start the analysis of the data, just click on the button to open the source file. If you want to re-analyse a file with new settings, click on the   button. To send a feedback, use the button. If the names should be linked to higher taxa, check the Link taxa to genera if present option. The names can be compared with existing names within the current project or the whole database. If you compare the names with the whole database, you can insert a link for the current project for identical names that are missing in the project.

 

Your names will be listed as shown in the image above. If an error (e.g. special signs converted with the wrong encoding)

 

or a similar name

 

or an identical name

 

is found these will be marked as shown above and the names of your list will not be imported unless you check the according field (second column - Import name). If you changed one of the options, click on the Requery button to see the result.

To start the import, click on the according button Start import.

 

Apr 9, 2025

Diversity Taxon Names

Wizard

Import wizard for tab separated lists

With this import routine, you can import data from text files (as tab-separated lists) into the database. Choose Data → ImportWizard and then the type of data that should be imported, e.g. Import Taxa … from the menu. A window as shown below will open that will lead you through the import of the data. The window is separated in 3 areas. On the left side, you see a list of possible data related import steps according to the type of data you choosed for the import. On the right side you see the list of currently selected import steps. In the middle part the details of the selected import steps are shown.

Choosing the File

As a first step, choose the File from where the data should be imported. The currently supported format is tab-separated text. Then choose the Encoding of the file, e.g. Unicode. The Start line and End line will automatically be set according to your data. You may change these to restrict the data lines that should be imported. The not imported parts in the file are indicated as shown below with a gray background. If the First line contains the column definition this line will not be imported as well. If your data contains e.g. date information where notations differ between countries (e.g. 31.4.2013 - 4.31.2013), choose the Language / Country to ensure a correct interpretation of your data. Finally you can select a prepared Schema (see chapter Schema below) for the import.

 

Choosing the data ranges

In the selection list on the left side of the window (see below) all possible import steps for the data are listed according to the type of data you want to import.

The import of certain tables can be paralleled. To add parallels click on the button (see below). To remove parallels, use the button. Only selected ranges will appear in the list of the steps on the right (see below).

To import informations of logging columns like who created and changed the data, click on button in the header line. This will include a additional substeps for every step containing the logging columns (see below). If you do not import these data, they will be automatically filled by default values like the current time and user.

Attaching data

You can either import your data as new data or Attach them to data in the database. Select the import step Attachment from the list. All tables that are selected and contain columns at which you can attach data are listed (see below). Either choose the first option Import as new data or one of the columns the attachment columns offered like SeriesCode in the table Series in the example below.

If you select a column for attachment, this column will be marked with a blue background (see below and chapter Table data).

 

Merging data

You can either import your data as new data or Merge them with data in the database. Select the import step Merge from the list. For every table you can choose between Insert, Merge, Update and Attach (see below).

The Insert option will import the data from the file independent of existing data in the database.

The Merge option will compare the data from the file with those in the database according to the Key columns (see below). If no matching data are found in the database, the data from the file will be imported, otherwise the data will be updated..

The Update option will compare the data from the file with those in the database according to the Key columns. Only matching data found in the database will be updated.

The Attach option will compare the data from the file with those in the database according to the Key columns. The found data will not be changed, but used as a reference data in depending tables. 

 

Table data

To set the source for the columns in the file, select the step of a table listed underneath the Merge step. All columns available for importing data will be listed in the central part of the window. In the example shown below, the first column is used to attach the new data to data in the database.

A reminder in the header line will show you what actions are still needed to import the data into the table:

  • Please select at least one column   = No column has been selected so far.
  • Please select at least one decisive column   = If data will be imported depends on the content of decisive colums, so at least one must be selected.
  • Please select the position in the file   = The position in the file must be given if the data for a column should be taken from the file.
  • Please select at least one column for comparision   = For all merge types other than insert columns for comparision with data in the database are needed.
  • From file or For all   = For every you have to decide whether the data are taken from the file or a value is entered for all
  • Please select a value from the list   = You have to select a value from the provided list
  • Please enter a value   = You have to enter a value used for all datasets

The handling of the columns in described in the chapter columns.

 

Testing

To test if all requirements for the import are met use the Testing step. You can use a certain line in the file for you test and then click on the Test data in line: button. If there are still unmet requirements, these will be listed in a window as shown below.

If finally all requirements are met, the testing function will try to write the data into the database and display any errors that occurred as shown below. All datasets marked with a red background, produced some error.  

To see the list of all errors, double click in the error list window in the header line (see below).

If finally no errors are left, your data are ready for import. The colors in the table nodes in the tree indicate the handling of the datasets: INSERT, MERGE, UPDATE, No difference. Attach, No data. The colors of the table colums indicate whether a colum is decisive , a key column or an attachment column .  

If you suspect, that the import file contains data allready present in the database, you may test this an extract only the missing lines in a new file. Choose the attachment column (see chapter Attaching data) and click on the button Check for allready present data. The data allready present in the database will be marked red (see below). Click on the button Save missing data a text file to store the data not present in the database in a new file for the import. Please keep in mind, that this comparision will be performed without any transformations of the data, that means the data in the file must match exactly those in the database. 

 

Import

With the last step you can finally start to import the data into the database. If you want to repeat the import with the same settings and data of the same structure, you can save a schema of the current settings (see below).

Schedule for import of tab-separated text files into DiversityTaxonNames
Target within DiversityTaxonNames: TaxonName
Schedule version: 1 Database version: 02.05.14
Lines: 3 - 5 First line contains column definition: ?
Encoding: ANSI Language: US

Tables

TaxonName (TaxonName)
Merge handling: Merge

Column in table ? Key Copy Pre Post File pos. Transformations Value Source Table
NameID 2027929 Interface
TaxonomicRank fam. Interface
GenusOrSupragenericName ? ? 0 File
NomenclaturalCode 3 Interface

TaxonNameProject (TaxonNameProject)
Parent: Merge

Column in table ? Key Copy Pre Post File pos. Transformations Value Source Table
NameID ParentTable
ProjectID ? ? 58 Interface

TaxonAcceptedName_1 (TaxonAcceptedName)
Parent: TaxonNameProject
Merge handling: Insert

Column in table ? Key Copy Pre Post File pos. Transformations Value Source Table
ProjectID ParentTable
NameID ParentTable

 Lines that could not be imported will be marked with a red background while imported lines are marked green (see below).

If you want to save lines that produce errors during the import in a separate file, use the Save failed lines option. The protocol of the import will contain all settings acording to the used schema and an overview containing the number of inserted, updated, unchanged and failed lines (see below).

 

 

Apr 9, 2025

Subsections of Wizard

Diversity Taxon Names

Import Wizard Tutorial

This tutorial demostrates the import of a small file into the database. The example file is included in the software.  At the end of this tutorial you will have imported several datasets and practiced most of the possibilities provided by the import wizard. The import is done in several steps to demonstrate the functionality of the wizard. Please keep in mind, that this tutorial will only work as shown, if the names contained in the file are not already present in the database.

 

 Step1 - Import of the taxa

Choose Data → Import Wizard → import Taxa … from the menu. A window as shown here below will open. Click on the button to open the file ImportTutorial.txt shipped with this application. In addition to the preselected steps, select the step Common names to import the common name contained in the file. In the Merging step leave all tables as Insert (see below). 

In the Taxon step, set the first column NameID to Generate new value. Then select the additional columns as shown below. For the column TaxonomicRank choose For all and select species from the list. For the column NomenclaturalCode choose For all and select Botany (incl. Mycology) from the list. All columns besides NameID, NomenclaturalCode and TaxonomicRank are set on From file and the colums are set as shown in the image below.

The column CombiningAuthors needs a transformation. To add this, click on the button. Enter a translation as shown below where the value NULL is translated to nothing.

Select a translation transformation (click on the button) and press the button to enter a translation (see below).

Press Test the transformation to visualize how the data would be imported (see below).

To allow the import of this table, choose the 2 columns GenusOrSupragenericName and SpeciesEpithet as Decisive columns (see below). 

In the step Common name choose the column CommonName as Decisive column and From file (column 6) for and For all for the other 3 columns as shown in the image below.

In the step Project select For all and the project DiversityWorkbench from the list and select this column as Decisive column. 

In the step Accepted name no further action is needed. 

In the step Testing check if you missed any settings described above. A test should return a result as shown below. 

Finally   Import the taxa. If no errors occur, the import should return a result as shown below. 

 Proceeded with Steps 2 & 3 - Import of the higher taxa

Apr 9, 2025

Subsections of Tutorial

Diversity Taxon Names

Import Wizard Tutorial

Hierarchy

 Step2 - Import of the higher taxa - family

To import the hierarchy, the higher taxa must be imported first. Choose the same file as in the first step for the import. The data for the higher taxa are not unique in the file. Therefore in the Merging step, choose Merge for all tables (see below).

In the Taxon step, set the first column NameID to Generate new value. Then select the column
TaxonomicRank and choose For all and select family from the list. Finally select the column GenusOrSupragenericName, set it as Decisive columns, set it on From file and the column 1 as source (see below).

In the step Project select For all and the project DiversityWorkbench from the list and select this column as Decisive column. 

In the step Accepted name no futher action is needed. 

Finally Import the taxa. If no errors occur, the import should return a result as shown below. Only the green lines are imported. The yellow lines are found identical to the already imported data and are therefore not imported. 

 

 Step3 - Import of the higher taxa - order

Next we Import the order. Follow the steps as described for the family above with the difference that now for TaxonomicRank we select order from the list and choose column 0 as source for the column GenusOrSupragenericName taxa. If no errors occur, the import should return a result as shown below. Only the green lines are imported. The yellow lines are found identical to the already imported data and are therefore not imported (see below). 

 

 

 Proceeded with Step 4 - Import of the hierachycal relation between families and the order

 

 

Apr 9, 2025

Diversity Taxon Names

Import Wizard Tutorial

Species & Family

 Step 4 - Import of the hierachycal relation between species and families

To import the hierarchical relation between the taxa choose Data → Import Wizard → Import Hierarchy … from the menu. For every hierarchical rank, you have to import the relations between the taxa. We start with the relations from the species to the family (the genus as intermediate rank between species and family is omitted in this example).

As described in the previous steps, open the file ImportTutorial.txt shipped with this application. In the Merging step leave the table on Insert (see below).

In the Hierachy step, select the columns  Taxon (Name or ID) and Higher taxon (Name or ID) as Decisive columns (see below).

For the column ProjectID, select For all as shown below and select the project of your choice from the list (e.g. DiversityWorkbench if available).

As the file does not contain the IDs of the name, we let the program determine the ID on basis of the name. To enable the program to detect the ID we need to provide the whole name from the data in the file. We start with the column Taxon (Name or ID). As first step, click on the button to set the source for the genus, the first part of the taxonomic name. A window as shown below will open. Mark the column as shown below an click on the OK button.

Next we need the species epithet as second part of the names. Click on the button to add another column. A window as shown below will open where where the previous selected column for the Genus is marked with 1. We select the column containing the species epithet (see below) and click OK.

Now we need the authors as last part of the names. Again click on the button to add a column and select the source as shown below.

As shown below, enter a space in the Postfix for the first 2 columns.

If combining authors do exist for a name, the authors of the basionym are set in brackets. To ensure the correct build-up of the name, we need to add a transformation. Click on the button to enter the a filter as shown below where an opening bracket ( is inserted in dependence of the content of the column of the combining authors.

To set the column for the filter, click on the button and choose the column containing the combining authors as shown below.

The final Transformation should look like shown below.

After adding the optional opening bracket we add the authors of the basionym. Click on the button and select the column as shown below.

As final step for the authors of the basionym we need the optional closing bracket. Click on the button and select the column as shown above. For the new colum enter another filter transformation as shown below. To set the column for the filter, click on the button as described for the opening bracket.

Finally we need the combining authors, provided they do exist. Click on the button and select the column containing the combining authors. As these are missing for some names we have to add a transformation where the content NULL is translated into nothing. Click on the button to add a transformation and in the window that will open, click on the button to add a  translation (see below).

To add a value that should be translated, click on the button and type NULL into the window as shown below.

The final transformation should look like shown in the image below.

The final build-up for the Taxon should look like in the image below.

Now we enter the higher taxon, in this example the family. Click on the button and choose the column containing the family as shown below.

Now the Hierarchy step is finished and should look like shown below.

In the Testing steps use the test for a check if you missed any settings described above. The result of the test should appear like shown below.

Finally Import the data according to your settings. The result of the import should appear like shown below.

 

 Proceeded with Step 5 - Import of the hierachycal relation between families and the order

 

Apr 9, 2025

Diversity Taxon Names

Import Wizard Tutorial

Family & Order

 Step 5 - Import of the hierachycal relation between families and the order

After the relations between the species and the families are imported we proceed with the hierarchical relation between families and the order. Choose Data → Import Wizard → Import Hierarchy … from the menu. 

As described in the previous steps, open the file ImportTutorial.txt shipped with this application. In the Merging step set the table on Merge (see below).

As described in the previous step, select the project of your choice and set the columns Taxon and Higher Taxon to From file. 

Click on the button to select the source for the family (see below).

… and the orders as shown below.

Additionally you must select these columns as Key columns, used to compare the data from the file with the content in the database (see below).

A final test before importing the data turns positive (see below).

Now we are ready to import the relation into the database. For every family this relation will be imported only once (see below).

As a last step, search for the highest taxon “Russulales” in the hierarchy in the main from and click on the button set hierarchy (see below) .

After the hierarchy for the Russulales is set, all imported name will show the complete hierarchy as shown in the example below.

 

 

 Proceeded with Step 6 - Import of the synonyms

 

Apr 9, 2025

Diversity Taxon Names

Import Wizard Tutorial

Synonyms

 Step 6 - Import of the synonyms

To import the synonyms, choose Data → Import Wizard → import Synonyms … from the menu. A window as shown below will open. 

In the Taxon step choose From file for the Genus and select the colums
Synonym1 as shown below.

To get only the genus from the name in the source, add a transformation for the column. Click on the button and in the window as shown below add a cutting transformation. Enter a space as Splitter. A Test of the transformation should produce the result as shown below.

Next select the SpeciesEpithet and again From file (see below).

Select the same column as for the genus (see below).

… and as for the genus add a cutting transformation with a space as splitter but this time set the Position to 2 (see below).

Choose the columns for the genus and the epithet as Decisive columns (see below). Next we turn to the authors of the synonym. Select the From file for BasionymAuthors …

And choose the SynonymAut1 Column as shown below.

To cut out the basionym authors we add a cut transformation as shown below. Enter ) as splitter.

Next we add a  Replace transformation to get rid of the leeding bracket (see below).

Now we turn to the combining authors …

Again we add a cut transformation with ) as Splitter, but 2 as Position (see below). 

The window now should look like below. 

As a last entry in the taxon step we choose Botany for the Nomenclatural Code (see below).

In the Project step select For all, choose the project where you want to import the data and set this column as Decisive column.

In the Synonymy step select From file for the accepted name. Now we must combine the accepted name from the entries in the file to match the entry in the database.

Select the Genus column for the first part of the accepted name (see below).

Click on the button to add another column and choose the Species column as shown below as source.

For both columns enter a space into the Postfix (see below).

Next we add the authors. For the basionym authors we need to add brackets if combining authors do exist. Select the Author column …  

… and add a filter transformation (see below). Here we choose Import fixed value and enter ( as a value. As condition we choose that the colum of the combining autors should not contain the string NULL. 

To complete this transformation click on the button and select the column containing the combining authors (see below).

To add the basionym authors themselves, click on the  button and choose the corresponding source as shown below.

Next we need the closing bracket for the basionym authors. As before we click on the button and for the new entered columns we add a filter transformation as shown below. Enter ) as fixed value and as before select that the source for the combining authors should be unequal to NULL.

Finally we get the values for the combining authors. Add another column and select the corresponding column in the source (see below).

To remove the NULL value, we add a  translation transformation. As only string that should be translated, we click on the  button and enter NULL (see below).

Now the translation should look like below.

As final action in the Synonym step we choose the column for the Acc.name as Decisive column (see below).

A final Testing will detect any missed settings.

After the final test is passed, we can Import the data as shown below. The schema will automatically be created and is available for subsequent imports. 

Apr 9, 2025

Diversity Taxon Names

Columns

If the content of a file should be imported into a certain column of a table, mark it with the checkbox.

Decisive columns

The import depends on the data found in the file where certain columns can be selected as decisive. Only those lines will be imported where data are found in any of these decisive columns. To mark a column as decisive, click on the icon at the beginning of the line (see below).

In the example shown below, the file column Organims 2 was marked as decisive. Therefore only the two lines containing content in this column will be imported.

 

Key columns

For the options Merge, Update and Attach the import compares the data from the file with those already present in the database. This comparison is done via key columns. To make a column a key column, click on the icon at the beginning of the line. You can define as many key columns as you need to ensure a valid comparison of the data.

 

Source

The data imported into the database can either be taken From file or the same value that you enter into the window or select from a list can be used For all datasets. If you choose the From file option, a window as shown below will pop up. Just click in the column where the data for the column should be taken from and click OK (see below).

If you choose the For all option, you can either enter text, select a value from a list or use a checkbox for YES or NO.

 

Transformation

The data imported may be transformed e.g. to adapt them to a format demanded by the database. For further details please see the chapter Transformation.

Copy

If data in the source file are missing in subsequent lines as shown below,

you can use the Copy line option to fill in missing data as shown below where the blue values are copied into empty fields during the import. Click on the button to ensure that missing values are filled in from previous lines.

 

Prefix and Postfix

In addition to the transformation of the values from the file, you may add a pre- and a postfix. These will be added after the transformation of the text. Double-click in the field to see or edit the content. The pre- and a postfix values will only be used, if the file contains data for the current position.

Column selection

If for any reason, a column that should take its content from the imported file misses the position of the file or you want to change the position click on the button. In case a position is present, this button will show the number of the column. A window as shown below will pop up where you can select and change the position in the file.

Multi column

The content of a column can be composed from the content of several columns in the file. To add additional file columns, click on the button. A window as shown below will pop up, showing you the column selected so far, where the sequence is indicated in the header line. The first column is marked with a blue background while the added columns are marked with a green background (see below).

To remove an added column, use the button (see below).

Information

The button opens a window displaying the information about the column. For certain datatypes additional options are included (see Pre- and Postfix).

May 7, 2025

Diversity Taxon Names

Transformation

The data imported may be transformed e.g. to adapt them to a format demanded by the database. A short introduction is provided in a video Video starten. Click on the button to open a window as shown below.

Here you can enter 4 types of transformation that should be applied to your data. Cut out parts,  Translate contents from the file, RegEx apply regular expressions or Replace text in the data from the file. All transformations will be applied in the sequence they had been entered. Finally, if a prefix and/or a postfix are defined, these will be added after the transformation. To remove a transformation, select it and click on the button.

Cut

With the cut transformation you can restrict the data taken from the file to a part of the text in the file. This is done by splitters and the position after splitting. In the example below, the month of a date should be extracted from the information. To achieve this, the splitter '.' is added and than the position set to 2. You can change the direction of the sequence with the button Seq starting at the first position and starting at the last position. Click on the button Test the transformation to see the result of your transformation.

Translate

The translate transformation translates values from the file into values entered by the user. In the example above, the values of the month cut out from the date string should be translated from roman into numeric notation. To do this click on the button to add a translation transformation (see below). To list all different values present in the data, click on the button. A list as shown below will be created. You may as well use the and buttons to add or remove values from the list or the button to clear the list. Then enter the translations as shown below. Use the save button to save entries and the Test the transformation button to see the result. 

To load a predefined list for the transformation use the button. A window as shown below will open. Choose the encoding of the data in your translation source, if the first line contains the column definition and click on the  button to open a file. Click OK to use the values from the file for the translation.

Regular expression

The RegEx transformation using regular expressions will transform the values according to the entered Regular expression and Replace by vales. For more details please see documentations about regular expressions.

Replacement

The replacement transformation replaces any text in the data by a text specified by the user. In the example shown below, the text "." is replaced by "-". 

Calculation 

The Σ calculation transformation performs a calculation on numeric value, dependent on an optional condition. In the example below, 2 calculations were applied to convert 2-digit values into 4 digit years.

Filter 

The filter transformation compares the values from the file with a value entered by the user. As a result you can either Import content of column in file or Import a fixed value. To select another column that should be compared, click on the button and choose a column from the file in the window that will open. If the column that should be compared is not the column of the transformation, the number of the column will be shown instead of the symbol. To add further filter conditions use the button. For the combination of the conditions you can choose among AND and OR. 

May 6, 2025

Subsections of Export

Diversity Taxon Names

Export CSV

To export the tables of the database in a tabulator, comma or semicolon separated format, choose Data → Export → Export CSV... from the menu. A window as shown below will open where you can select the tables to be exported in sections Selection criteria and in the Tables for export.

A prerequisite for this export is that the bcp program is installed on your computer. This has either been installed together with the installation of SQL-Server or you have to install the Microsoft Command Line Utilities for SQL Server.

To start the export click on the Start export button. By default the data will be exported into a directory ...\Export\<database_name> below your application directory. Click on the button to select a different target directory before starting export.

 

After export the tables are marked with green background, if table schema and data were exported successfully. If only the data were exported, this is marked with yellow background, if nothing was exported, the background is red. A detailed export report can be viewed by a click on the export result file name.

May 6, 2025

Diversity Taxon Names

Export Wizard

The export wizard provides a possibility to export the data selected in the main form. The data are exported as tab separated text file. The export may include transformations of the data as well as information provided by linked modules and webservices. Choose Data - Export - Export wizard from the menu and then select one of the export targets (Event, Specimen, ...). For a short introduction see the tutorial.  

Adding tables

There are the following ways to add tables:

  • One parallel table
  • Several parallel tables according to selected data
  • Dependent table

All options will include the depending tables as defined for the default table. The option for several tables will add as many tables as there are found in the data.

If you added parallel tables, you should set the sequence of the datasets within these tables: For the columns that should be used for sorting the data, set the ordering sequence to a value > 0 and choose if the ordering sequence should be ascending or descending .

Certain columns in the database may provide information linked to another table or a module resp. webservice . Click on the button to add a linked value.

Adding and editing file columns

To add columns to the exported file, use the buttons. In the textbox at the top of the file column, you can change the header for the column. To change the position of a file column use the resp. button. To fuse a column with the previous column, click in the gray bar on the left side of the column that will change to for fused columns. To remove a file column, use the button. Pre- and postfixes for the columns can directly be entered in the corresponding fields. To apply transformations on the data click on the button.  

Filter

To filter the exported data, use the filter function. Click on the button and enter the text for the filter. Only data matching the filter string will be exported. If a filter is set, the button will have a red background to remind you of the filter. The filter may be set for any number of columns you need for the restriction of the exported data.  

Rowfilter

This filter in contrast to the filter above strictly applies to the row according to the sequence of the data. For an explanation see a short tutorial Video starten.

 

Test

To test the export choose the Test tab, set the number of lines that should be included in the test and click on the Test export button. To inspect the result in a separate window, click on the button.

SQL

If you want to inspect the SQL commands created during the test check this option. To see the generated SQL click on the SQL button after the Test export. A window containing all commands including their corresponding tables will be shown.

 

Export

To export your data to a file, choose the Export tab. If you want to store the file in different place use the button to choose the directory and edit the name of the file if necessary. Check the include a schema option if you want to save a schema together with your export. To start the export, click on the Export data   button. To open the exported file, use the button.

 

Export to SQLite

To export your data into a SQLite database, choose the Export to SQLite tab. You may change the preset name of the database in order to keep previous exports. Otherwise you overwrite previous exports with the same filename. To start the export, click on the Export data   button. To view the exported data, use the button.

 

Schema

To handle the settings of your export, choose the Schema tab. To load a predefined schema, click on the button. To reset the settings to the default, click on the button. To save the current schema click on the button. With the button you can inspect the schema in a separate window.

May 6, 2025

Subsections of Export Wizard

Diversity Taxon Names

Export Wizard Transformation

The exported data may be transformed e.g. to adapt them to a format demanded by the user. Click on the button to open a window as shown below. For an introduction see a short tutorial Video starten.

Here you can enter 6 types of transformation that should be applied to your data. Cut out parts,  Translate contents from the file, RegEx apply regular expressions or Replace text and apply Calculations Σ or Filters on the data from the file. All transformations will be applied in the sequence they had been entered. Finally, if a prefix and/or a postfix are defined, these will be added after the transformation. To remove a transformation, select it and click on the button.

 

Cut

With the cut transformation you can restrict the data taken from the file to a part of the text in the file. This is done by splitters and the position after splitting. In the example below, the month of a date should be extracted from the information. To achieve this, the splitter '.' is added and then the position set to 2. You can change the direction of the sequence with the button Seq starting at the first position and starting at the last position. Click on the button Test the transformation to see the result of your transformation.

With the Start at Pos. option the given splitters will be converted into space (' ') and the whole string starting with the given position will be used (see below).

 

Translate

The translate transformation translates values from the file into values entered by the user. In the example above, the values of the month should be translated from roman into numeric notation. To do this click on the button to add a translation transformation (see below). To list all different values present in the data, click on the button. A list as shown below will be created. You may as well use the and buttons to add or remove values from the list or the button to clear the list. Then enter the translations as shown below. Use the save button to save entries and the Test the transformation button to see the result. 

To load a predefined list for the transformation use the   button. A window as shown below will open. Choose the Encoding of the data in your translation source and indicate if the First line contains column definition. Click OK to use the values from the file for the translation.

 

Regular expression

The transformation RegEx using regular expressions will transform the values according to the entered Regular expression and Replace by values. For more details please see documentations about regular expressions.

 

Replacement

The replacement transformation replaces any text in the data by a text specified by the user. In the example shown below, the text "." is replaced by "-". 

 

Calculation 

The calculation transformation Σ performs a calculation on numeric value, dependent on an optional condition. In the example below, 2 calculations were applied to convert 2-digit values into 4 digit years.

 

Filter 

The filter transformation compares the values from the data with a value entered by the user. As a result you can either Export content into file or Export fixed value. To select another column that should be compared, click on the button and choose a column from the file in the window that will open. If the column that should be compared is not the column of the transformation, the number of the column will be shown instead of the symbol. To add further filter conditions use the button. For the combination of the conditions you can choose among AND and OR. 

 

 

 

 

 

 

May 6, 2025

Diversity Taxon Names

Export Wizard

Tutorial

This tutorial demonstrates the export of a small sample of data from the database.

Choosing the data

 In the main form, select the data that should be exported (only the data displayed in the query results are exported).

Exporting the data

Choose Data → Export → Wizard → Export taxa … from the menu.

A window as shown below will open where the available tables for export are listed in the upper left area. To show the data colums of a table, select this table in the list.

 

Adding columns

In this example, we want to add the higher hierarchy, starting with the order. Select the Order from the list as shown below.

In the Columns area appearing in the area on the right click on the button to add the Order to the columns list.

This is repeated for the Family and the Genus (see below).

In the taxon table choose the column GenusOrSupragenericName to add teh genus to te exported (see below).

To avoid that the column name GenusOrSupragenericName appears in our export, we change the name to Genus (see below).

The same is repeated for the species, authors, common names and synonyms (see below).

 

Testing

After all columns that should be exported and their transformations are defined, we start Test export to see the result as shown below.

Click on the button to open the result in a separate window (see below).

 

Export

To export the data change to the tab and click on the Export data button. The result is shown in the textbox below and stored in the specified file (see below). 

Together with the exported data, a schema is stored, containing all settings of the export. This schema may be reused for subsequent exports of the same type (see below).

May 6, 2025

Diversity Taxon Names

Export hierarchy and synonymy

To export the taxonomy, including the hierarchy and the synonymy, select the corresponding taxon, choose Data → Export → Export hierarchy and synonymy… from the menu.

To see the whole hierarchy, select the desired node in the hierarchy tree and click on the button besides the hierarchy.

A window as shown below will open

 

The data you in the export will depend upon the taxon you selected in the main form. So if e.g. you want to export the names within a genus, select the genus in the main form.

If you want to include the synonyms, check Restrict to accepted names and Show synonyms and click on the button (see below).

 If you start the export without any schema file, you will get the data strutured as xml (see below).

To format the data, specify the schema file containing your preferred format as shown below. 

You can export the data including all higher taxa (see above) or starting with the taxon for which you selected the export (see below). mao format the data, specify the schema file containing your preferred format as shown below.

To export only the higher taxa, you can restrict the lowest rank to e.g. the genus as shown below.

If you choose the option Summary, the numbers of the differnet hierarchical levels will be listed at the bottom of the report (see image below)

Apr 9, 2025

Diversity Taxon Names

Export List

To export lists, including information about the distribution or the synonymy, choose Data → Export → Export taxon list … from the menu. A window as shown below will open, where you can choose the taxonomic list and the project where the synonomy of the taxa is documented.

 

Choose a Schema file and the options for your export. Than click on the Create the taxon list to start the export. The resulting html file (see below) will be named according to the choosen schema file.

If you miss to choose a schema file, the original XML file will be shown (see below). To convert this into a html file, choose a schema file and click the button.

Apr 9, 2025

Diversity Taxon Names

Synonyms

To export a list of the synonyms for the taxa selected in the query, choose Data → Export → Export synonyms… from the menu. A window as shown below will open. With a click on the Find accepted names and synonyms button to search for the contents in the database.

Use the Export button to export the data from the table to the specified file