Editing the data

The main forms of all modules have a design as shown below

Main form Main form

Status

In the status area you find

  • The name of the module,
  • The name of the database if different fron the module
  • The version of the software

The menu contains the options provided by the module

Commands

The commands area contains buttons for e.g. handling the data:

  • - To connect to a database click on the button.
  • - To save the changes in a dataset click on the button.
  • - To propagate the changes in a dataset to linked modules click on the button.
  • - To undo the changes a dataset click the button. This will recover the original data unless the changes had been saved or changes were done in certain tables or hierarchies were the data must be stored to display the hierarchy.
  • - To create a new entry in the database, click on the  button below the search result listbox. This will create a entry with the specimen and show it in the list.
  • - To copy a specimen, choose it from the list and click on the button .
  • - To options a dataset click on the button .
  • - To change the arrangement of the query click on the button.

Create new agent

To create a new agent, click on the  button above the search result listbox. You will be asked, if you are sure

Click OK to enter the basic entries in the next window as shown below

Click OK to create the new agent and show it in the list.

Forwarding changes to linked data

After changes to a dataset, the button will get a pink background if any part related to linked datasets is concerned. This relates to all dataset in the databases select for an update as described in chapter connections. To add the current dataset independed of changes to changes, choose Insert current ID in backlink list from the context menu. To insert all items from the query in the backlink list, click on the button. To check the content of the current backlink list select in the context menu. To clear the backlink list, select in the context menu. Provided the permission to update the respective tables you can forward the changes to datasets in linked modules with a click on the button as described in the tutorial Video starten

For further information see the chapter Editing

Subsections of Editing the data

Data in tables

Besides of the main form, the Diversity Workbench provides 2 editors of the data in tabular form:

  • Table editors : Provide single table based access to the data of the query results in the main form
  • Spreadsheets : Provide predefined tabular access including the possibility to query and filter data and can be used as starting form

See a short tutorial for an introduction Video starten with DiversityCollection as an example (Grids are only available in DiversityCollection).

Comparison of tabular forms

Property Table editors Spreadsheets
Range One table Predefined selection of tables
Query Depending on main form Own query
Filter Restricted Direct query in database
Column sequence Fixed Fixed
Start form No Yes
Different versions No Yes
Read only projects No access Read only mode
Data in map No In TK25 sheet

 

Subsections of Data in tables

Spreadsheets

The spreadsheets similar to the grids provide a tabular access to the data. In addition you can search and filter data independent from the main form. For an introduction see two short tutorials Video starten (overview), Video starten (tables and columns). To open a spreadsheet, choose Grid - Spreadsheets - and then one of the provided versions, e.g. Organisms from the menu. A window as shown below will open where the data are marked and organized according to the database tables. If values in one of the tables are missing, this will be indicated with a grey background. The colors correspond to the overview for the database.

Start

To use any of the spreadsheets as a starting window, click on the  button. Now the application will directly open the spreadsheet with the same parameters when you close it. Video starten

 

Database

To change to another database, click on the button and choose the database as described here. Please keep in mind that the main form will connect to the new selected database. 

 

Project

If a user has read only projects available, a button will appear in front of the project. Click on this button to change to the list of projects with read only access. The window will change into the Read only mode (see below). To return to the list of projects with write access, just click no the button again. After changing the source for the project list, the project label will blink with red to remind you, to select a project from the list. Video starten

 

Getting the data

The data are always restricted to one project, selected in the corresponding field (see image above) and restricted to the first top lines as specified in the Max. res. field. To change to the next or previous block of data, use the resp. button. 

The program will organize the data in blocks indicated by the colors as shown above. In the example above the first block contains 2  Organisms all belonging to the block starting with  Hildesheim... for the Event and M-0014196 for the Specimen. The next block then starts with  Hildesheim... indicated by a change in the color containing 2 Organisms. For most of the spreadsheets, the presence of the Event in the data is a prerequisit. As long as you do not sort or filter the data (see below), these blocks will be consistent with the data. As soon as you filter or sort the data, these blocks may be split and may not correspond to the data blocks in the database any more. In the example below you see the effect of sorting by the column Taxon on breaking up the blocks. E.g. the block for the specimen M-0036950 is split into 2.

 

SQL

The query used for the retrieval of the data can be accessed with a click on the SQL button.

 

Filtering

To filter the content of a table you can apply a filter either on the whole table or on each of the columns of the table.

Table filter

This filter will apply on the whole table. Click in the black box next to the filter area and select one of the filter options as shown below.

  • : Filled (all visible columns)
  • : Empty (all visible columns)
  • : Data in table do exist
  • Ø: Data in table do not exist

Tutorial:

Column filter

Tutorial: Video starten

This filter will apply on a single column of a table. To set a filter click in the field underneath the column name. A window as shown below will open. With a click on the button you can enter a value from the current content of the column as filter.

Here you set the sorting (see below), enter the search string and choose among several ways of comparison with the contents in the database:

  • =: The content must be exactly like the given value
  • : The content must be different to the given value
  • ~: The content must be similar to the given value, use wildcards % for any string or _ for a single character
  • ¬: The content must NOT be similar to the given value, use wildcards % for any string or _ for a single character
  • <: The content must be smaller than the given value
  • >: The content must be bigger than the given value
  • |: The content must be in a given list of values
  • : The content must NOT be in a given list of values

For columns linked to modules of the DiversityWorkbench there may be additional options. E.g. for a column linked to DiversityTaxonNames you get 3 additional options:

  • +H: Include lower Hierarchy
  • +S: Include Synonyms
  • +H+S: Include lower Hierarchy and Synonyms

After selecting one of these options, you will be asked for the database and the project where the data should be taken from. In the next step the corresponding names as retrieved from the selected source will be listed (see below). To change the filter click on the button and on the button to remove it.

Sorting

↓↑ Tutorial: Video starten

The data can be sorted by each visible column. If you click into the field underneath the column name a window will open as described above. To change between the modes of sorting, just click on the current sorting. The modes are:

  • -: Not sorted
  • : Sorted in ascending sequence
  • : Sorted in descending sequence

After all parameters are set, the sort mode and filter settings will be shown in the field underneath the column name (see image below). The number indicates the sequence within the sorting columns.

 

Timeout

After all parameters are set, click on the button. If for any reason you get a timeout, meaning the query for the data takes too long, either simplify your query or adapt the time for the query after a click on the button. If you do not want to restrict the time for the queries, set the value to 0. The default value is 30 seconds. 

 

Read only mode

<> Tutorial: Video starten

The formatting of the sheet including the color indication of tables and data blocks is rather time consuming. If these are not needed, e.g. for exporting the data, you can switch to the Read only mode for higher performance. For projects with read only access (see above), the mode is automatically set to Read only

 

Editing

Video starten

To edit the data, just change them. If data are missing, type or select a value in the corresponding field. To remove data, click on the x field. This will remove all entries dependent on this entry that means all data right from the entry in the same line resp. block and any depending data. If there are any depending data, a window will open as shown below listing these data. Click OK if you want to remove the selected data including all depending data as shown in the window.

 

To change the content of several values in a column, either select the whole column with a click on the  button or select the fields manually. To avoid the pop-up of data-entry windows e.g. for columns with a lookup list, click no the button. Once you have selected the contents to change, select the mode of change:

  • Prepend: Insert the given value at the beginning of the content
  • Append: Append the given value at the end of the content
  • Overwrite: Remove current content and insert given value
  • Replace: Replace a string in the content with the given value
  • Clear: Remove the content

After selecting the change mode, enter the text in the field where necessary and click on the corresponding button to perform the changes.

With the context menu (mark area and right click) you can Remove data (for single data fields with a list behind), Tranfer or Copy the content into the clipboard and Insert the content of the clipboard into the selected cells. Tutorial: Video starten

Inclusion of RowGUID

By default the primary key can not be changed in the spreadsheet. In some cases you may want to change parts of the primary key. To do this, you must include the column RowGUID in the list of selected columns. The program will ensure that the changed data do not collide with existing data, that is having the same primary key. See an example in a short tutorial:

 

Fixed sources

Tutorial: Video starten

For columns that are linked to a remote module, you can fix the source for the query. If the source is fixed, the query will directly contact the source as shown in the image below. To set resp. change the source, click on the button. A window will open where you can select either a webservice or a source database together with a project within the database. To remove the source, click on the button (only visible if a source is present).

To see an overview for the fixed sources, click on the button. A window will open where all sources are listed with the source for the current column marked with a yellow background. 

 

A "right-click" on the button in the main form will show the settings as well and with a click on the button you can set the connection for the selected column. If a column depends on values from the data as for example the relations to the module DiversityTaxonNames with a dependence on the taxonomic group, the relation will change with the selected row, depending on the data retrieved from the selected row. If there is no connection to the related module defined, the button will appear gray and if the column has no relation to a module, the button will appear like

If the source is not fixed the query will start as described here.

Settings

- To change the data shown in the query results, either click on the header of the tables, e.g. Event for that table. A window as shown below will open where you can select or deselect columns, change their headers etc. Red columns need to be filled (either by the database, the program or the user). In the Alias field you can rename the columns to your preferences. The button will show a description of the columns. For columns linked to a module, the current settings for the link will be shown in addition to the description. To display a column in the sheet use the checkbox . If a column is needed, but should be hidden, select the checkbox. Displayed columns are indicated by a yellow background while hidden columns get a light yellow background. Certain columns are required (indicated by a purple color) and can not be removed e.g. if they are involved in a link to a remote module like in the example below the columns FamilyCache and OrderCache. Columns linked to a module are indicated by a blue color.

The button allows you to include one of the tables missing in the sheet (see image below). After selection of the table, select the column(s) you want to include in the sheet as shown in the image above.

To store resp. load settings, use the resp. button. If a setting file has been corrupted click on the button to remove it and restart with factory settings. The spreadsheet will always start with the previous settings. The location where the settings are stored are set under Administration - Resources directory ... . For an introduction see a short tutorial Video starten.

 

Column width

Tutorial: Video starten

The width of the columns can be set manually (in the filter area) or automatically with a click on the button. A window will open where you can choose and set the parameters for setting the column width.

 

Adding

Tutorial: Video starten

To add new data, use the area underneath the data table. You can enter preset values that will be used for the new data. If the new data should be added to existing entries, select the corresponding row. Then click on the + field of the datarange that should be inserted. If preset values are given, all corresponding tables will be filled together with the new inserted data. Defaults for the responsibles can be set under Administration - Customize Display. If a column is linked to a remote module, the corresponding columns will be filled together with the selection of the link, so e.g. if you select a link for a taxonomic name to a DiversityTaxonNames the columns for the taxon and if available the familiy etc. will be filled as well. To remove a linked value, select it a choose Remove from the context menu (right click).

Export

Tutorial: Video starten

To export the data as a tab separated text file (UTF8), click on the button. You will be asked if you want to include the hidden columns. These are the primary keys you may need for statistic evaluations etc.

Feedback

To send a feedback to the developer of the software, create a screenshot and click on the  button. 

Details

Tutorial: Video starten

To see all details of a dataset, select the dataset in the sheet and click on the button. A window, corresponding to the main form will open, showing all data related to the selected specimen. 

 

Image

Tutorial: Video starten

If an image is present a preview will be shown in the right upper area of the window. Click on it to see the image in a separate form. The images are restricted to the first image of one source, so e.g. in the organisms sheet only the first image of the specimen linked with this organism will be shown while images of e.g. linked to none or another organism or the collection event will not be addressed. 

Table Editors

For the data selected in the main window the table editors offer a direct access to the tables of the database. The menu Data - Table editors provide an editor for selected tables within the database.

A window with the content of the table will open. Columns with a gray background can not be edited here. Columns with a light gray background are linked to the contents of lookup tables where you can change according to the contents of these tables.

Select Set timeout ... from the menu to increase the default timeout from 5 seconds to a higher value, e.g. for greater amounts of data.  

Editing

You can either edit the contents of the table directly or perform changes to any number of marked fields. To mark a whole column use the  button. Once you have selected the contents to change, select one of the modes of change that appear in the upper left corner. The modes of change are:

  • Insert: Insert the given value at the beginning of the content
  • Append: Append the given value at the end of the content
  • Replace: Replace a string in the content with the given value
  • Clear: Remove the content

After selecting the change mode, enter the text in the field where necessary and click on the corresponding button to perform the changes

Filtering

To filter the content of the table, click in the column that should be used for filtering. Then choose the mode of comparision:

  • = : The content must be exactly like the given value
  • ~ : The content must contain the given value
  • ≠ : The content must be different to the given value

If you want the filtering to be case sensitive, choose the a<>A option. After all parameters are set, click on the button. To undo the filtering, click on the button. This will reset the data to the last saved version. If you want your changes to be saved, click the button before you reset the filtering. If you close the window all changes so far will be saved automatically. So if you do not want to save your changes, click on the button before closing the window.

Export

To export the data as a tab separated text file, click on the button. The file will be automatically saved in the client-folder.  

To export the data in a SQLite database click on the button. The data will be exported into the SQLite database DiversityAgentTables.sqlite in the folder Export in your application directory. If you want to save previous exports, please rename the SQLite database or copy it to a different directory.  

Log data

To see the log data of the table, you can click on the button. The content of the log table can not be changed, but is read only.  

Agent

The data for an agents are entered in the upper part of the form (see image below).

The header of the form (see below) shows the combined name of the agent, its ID in the database, the version of the dataset and the revision level. The version is set by the database and will be increased with every change in the data.

To see the history of the changes within a dataset, click on the button (see the history part for further details).

By default an agent is not available for publication indicated by the sign. If an agent should be published, click on the button and remove the data withholding reason. The sign will change to and the agent is now available for publication.  

To set the language of the content, click on the  button. The ISO-639-1-Code for the selected language will be shown and the icon will change to the selected language.  

DiversityAgents may contain several versions of the same name resp. person. To link these entries you can declare one name a synonym of the other. An overview of the synonymy is shown in the Synonymy part (see below). The accepted name resp. the entry not declared to be a synonym is shown as the top of the hierachy. To change to a name within the synonymy, just double-click on it. 

 

To set the synonymy, click on the button to open a window where you can search for the entry, the current entry should become a synonym of. In the field [Syn.type] set the type of the synonymy. The service of DiversityAgents is used by other modules. Therefore it must be avoided to delete datasets. Instead of deleting an entry, set it a synonym of a valid entry and set the type of the synonymy to replaced with. If an agent was replaced or declared a synonym, the button will change to . Click on this button to change to the dataset that replaced the current dataset resp. its synonym. If a dataset was replace by another entry, the form will change as shown below. In the synonymy the replaced agents are depicted in red. 

 

The data of the agent are stored in the table Agent.

Contact

Every agent can have several contacts resp. addresses. These are listed in the contact section (see image below).

The address that is used by other modules is a cumulation of the addess data of the agent and all its superior agents (see below).

By default the contacts are not available for publication, indicated by the sign and a pink background (see below). To enable the publication of a contact, click on the button and remove the data withholding reason. The sign will change to and the contact will be available for publication.

To see the public available contact information, click on the button. The window that will open shows the public available contact information including those of parent data (see image below). The cumulative address will collect data of every first contact information of the superior agents in the main hierarchy provided these are public and valid. Video starten

The data of the agent contacts are stored in the table AgentContactInformation.

Descriptors

To add a new descriptor click on the button. To delete a selected descriptor click on the  button. To administrate the descriptor types, click on the button or select Administration - Descriptor types... from the menu. A window as shown below will open.

 

To add a new descriptor type click on the button. To delete a selected descriptor type click on the  button. Deleting is only possible as long as the type has not been used. Otherwise this option is blocked as shown below. You may link a type to a module of the DiversityWorkbench. If the data contain either a link to a module or a link to a resource, the setting of the module will be blocked as shown below.

The data of the agent descriptors are stored in the table AgentDescriptor.

External data

The list at the button of the form showns the original datasources of the dataset (see image above).

The data concerning external information are stored in the tables AgentExternalDatabase and AgentExternalID.

Hierarchy

Main hierarchy

The relation to other agents is shown in the hierarchy. For an introduction see a short video Video starten.

Every agent can have one main superior agent. To set this superior agent click on the button. To remove the superior agent click on the button. To change to another agent in the hierarchy, select it and click on the button.

The address of an agent e.g. used by other modules will be replenished with the addresses of all superior agents (for further details see topic Contact). If an entry in the main hierarchy is changed or removed you will be asked of this information should be transferred into to other hierarchies, so the information about e.g. previous employments is not lost.

If the hierarchy contains a loop, a corresponding message will be shown and the tree will contain the current dataset twice (see below). To remove the loop, click on the button in the dataset where the relation to the upper dataset should be removed.

 

Other hierarchies

For other hierarchies, e.g. previous employments, you can add entries in the Other hierarchy part as shown below.

Use the and buttons to add resp. delete other hierarchies. The  button will open a window where you can search within the database for the parent agent you want to select. After you selected the agent where the current agent should be included into the depending data, click OK to close the window. Select the new parent in the list to see the current agent within the main hierarchy of the parent agent. The items shown in the tree are restricted to the main hierarchy of the parent agent and the current agent and do not include other items of other hierarchies. A parent for the other hierarchies may be included several times, e.g. to document several employments but in will be shown in the tree only once for every parent (see image above).

The other hierarchies are NOT visible outside the current agent. So in the example above, the parent defined in the other hierarchy will NOT show this entry in the hierarchy of the parent (see image below).

Use the button to set a selected entry in the other hierarchies as the main hierarchical entry. If a parent for main hierarchy is defined, it will be transferred into the other hierarchies. The selected entry from the other hierarchies will be removed unless there are entries in the details, e.g. Notes.

Use the button to change to an agent selected in the tree. The hierachies will display entries from projects where you have no access as well. If you want to change to a dataset using the button where you have no access you will get the message You have not the proper rights to access this dataset.  

All hierarchies

A summary of all hierarchies is shown in the "All" section where the items shown in the tree are restricted to the current agent and superior data as shown below. Other hierarchies defined outside the current agent will NOT be shown here.

After changes in the main hierarchy or the other hierachies click on the button for an update of the tree. Use the button to change to an agent selected in the tree. If you want to change to a dataset using the button where you have no access you will get the message You have not the proper rights to access this dataset.

The data of the agent hierarchy are stored in the tables Agent and AgentHierarchyOther

Identifier

The agent may be linked to several identifiers as shown below. Use the and buttons to add resp. remove identifiers for an agent.

To administrate the types of the identifier, choose Administration - Identifier types … from the menu. A window as shown below will open, where you can add, edit and remove types for the identifier.

The data of the agent identifier are stored in the table AgentIdentifier.

Images

Each agent may be documented with several images.

To enter a new image, click on the  button. A window will open where you can enter the path and file name of the image. The selected image will be shown in the preview.

To delete an image, select it from the list and click on the  button. To see the image in a separate form, click on the button. The path of the image is shown under the image list. Click on it to open a browser with the image. you may as well click on the link below the image. By default a new image gets the entry "Withhold by default" as data withholding reason and is therefore blocked from publication. To change this, click on the button and either enter your own reason or remove the entry to enable the publication of the image. If an image should be published (with an empty datawithholding reason) the button will change to . To return to the unpublished state just click on the button and enter any text in the window that will open. The button will change to to indicate that the image will not be published. You may select a Type and specify a sequence e.g. to enable a selective publication of images. In the interface the images will be sorted accoring to their sequence.

Data are stored in the table AgentImage.

Keywords

To add a new keyword to the list click on the  Button. To delete an selected keyword from the list click on the  Button.

The data of the agent keywords are stored in the table AgentKeyword.

Module connections

The DiversityWorkbench is a set of components for building and managing biodiversity information, each of which focuses on a particular domain. DiversityAgents is referred by several modules. To scan for references from these modules on data in DiversityAgents choose Data - Scan modules - from the menu (see image below).

With these options the program will scan all sources of the selected module as listed in the connections for references to the current agent. After selecting an agent in the tree, the sources of the selected modules together with the linked data will be listed as shown below.

Select a link to see a summary of the linked data (see below).

To get further information about an item click on the button. If so far the path to the respective application has not been set, you will get a corresponding message (see below).

Click on the button to set the path to the application (see below).

By default the path to the application is C:\Program Files (x86)\DiversityWorkbench\Diversity...\Diversity.…exe as shown.

Projects

Every agent can be assigned to any number of projects. To assign a agents to a project click on the  button. To remove it from a project, select the project from the list and click on the  button.

There are 4 states of accessibility for projects Video starten

  •     Full access: The user can edit the data
  •      Read only access: The user can only read the data
  •      Locked: The project is locked. Nobody can change the data
  •     No access: The user has no access via a project

If there are projects, to which you have no full access to, these will be listed in a separate lists at the top as shown below.

Below is an example where the user has access via a project with access and a project with read only access. In addition the data are contained in a project where the user has no access.

 

Below is an example where the user has access via one read only project.

 

Below is an example where the dataset is contained in a project that is locked.

 

Data are stored in the table AgentProject.

Details upon the projects within the Diversity Workbench are stored in the database DiversityProjects. To open a project to see further information upon a project click on the   button. 

 

 

 

References

References containing informations about the agent are listed in the References tab. The enter a new reference click on the button, To remove a reference use the button. A link to the module DiversityReferences can be established with the button.

The data of the agent references are stored in the table AgentReference.

Relations

The relations to other agents are shown in the Relations tab. To enter a new relation, click on the button, to remove a relation use the button. If the relations of an agent should not be published e.g. on the web, enter a reason in the Withholding section. Any text will prevent a publication. To change to an related agent, select it and click on the button.

The data of the agent relations are stored in the table AgentRelation.

Resources

The resources directory is set via the menu (Administration - Resources).

There are 3 possibilities for the resources directory:

  • Select any directory you have read/write access (User defined)
  • Select the "Home" directory of the user
  • Select the "My Documents" directory of the user

The default is set to Home. This directory will contain all files the user need access to (see image below).

Certain directories are hidden (Query) and are handled by the software i.e. the content should not be changed by the user. The other folders are generated by the software if missing, e.g. Export for any exports (see below).

 

Synonymy

The synonymy to other agents is shown in the Synonymy tab. Every agent can be a synonym to another agent. To make an agent to a synonym click on the button. For agents that are declared a synonym, you can specify the type of the synonymisation. If the type is "replaced by" than this agent will no longer be visible for external modules but will be replaced by the agent it is a synonym of. To change to a synonym of the agent just click on the button.

If the hierarchy for the synomyms contains a loop, a corresponding message will be shown and the tree will contain the current dataset twice (see below). To remove the loop, click on the button in the header for the dataset where the relation to the upper dataset should be removed.

 

Data withholding

If an agent should not be published e.g. on the web, enter a data withholding reason. Click on the   button to open a window where you can enter the reason why the data should not be published. Any entry will prevent the data from being published. For datasets with a data withholding reason the image will change to . To remove the restriction just click on the button and delete the reason. Besides whole datasets, the relations, adresses and images can be blocked from publication. See e.g. Relations for more details.