Difference between revisions of "Data preparation"

From reBiND Documentation
Jump to: navigation, search
m
m
Line 23: Line 23:
  
 
* Example 1 conversion of numbers
 
* Example 1 conversion of numbers
 +
Numbers in original data were completed with the meaning of the numbers (1 – vom Aussterben bedroht =  critically endangered, 2. – stark gefährded = endangered, 3 – gefährdet = vulnerable 4- potentiell gefährdet = near threatended)
  
 +
[[File:TranslateNumbersintoText.jpg]]
  
Figure 2: Numbers in original data were completed with the meaning of the numbers (1 – vom Aussterben bedroht =  critically endangered, 2. – stark gefährded = endangered, 3 – gefährdet = vulnerable 4- potentiell gefährdet = near threatended)
 
  
  
  
 
* Example 2 conversion of characters
 
* Example 2 conversion of characters
 +
Characters in original data are turned into text (different ecological types)
  
 
+
[[File:TranslateCharacterssintoText.jpg]]
Figure 3: characters in original data are turned into text (different ecological types)
 
  
  
Line 38: Line 39:
  
 
==3. Convert Values into the ABCD essential form. ==
 
==3. Convert Values into the ABCD essential form. ==
* Example: Transform lat/lon coordinates into decimal form (required for ABCD)
+
* Example: Transform lat/lon coordinates into decimal form (required for ABCD).
 
+
Latitude in degree, minute and seconds is transformed into decimal degree
  
  
  
Figure 4: latitude in degree, minute and seconds is transformed into decimal degree
+
[[File:ConvertValues.jpg]]
  
  

Revision as of 16:03, 4 November 2014


Prepare Data for XML transfer and ABCD Mapping

Before you start with data preparation as described in BioCASE documentation (See http://wiki.bgbm.org/bps/index.php/Preparation ) it is required to prepare the content of the data set for following reasons:

  • Make content information comprehensible
  • Add fields mandatory to ABCD Mapping

Following preparation steps are recommended:

1. Convert abbreviations into complete words.

In the screenshot below abbreviations in original data on the left were transferred to complete words in the right: RLB - Rote Liste Berlin (= Red Lists Berlin), RLBb - Rote Liste Brandenburg (= Red Lists Brandenburg) ResolveAbbreviations.jpg

2. Translate numbers or characters into text.

In some cases numbers or characters don’t represent a value but qualitative statements. To make this information comprehensible it is recommended to convert it into written text. You can use “if functions” in Excel for conversion of numbers and characters.

e.g. =IF(A3="3";"3-gefährdet";IF(A3="1";"1- vom Aussterben bedroht";A3;""))
  • Example 1 conversion of numbers

Numbers in original data were completed with the meaning of the numbers (1 – vom Aussterben bedroht = critically endangered, 2. – stark gefährded = endangered, 3 – gefährdet = vulnerable 4- potentiell gefährdet = near threatended)

File:TranslateNumbersintoText.jpg



  • Example 2 conversion of characters

Characters in original data are turned into text (different ecological types)

File:TranslateCharacterssintoText.jpg



3. Convert Values into the ABCD essential form.

  • Example: Transform lat/lon coordinates into decimal form (required for ABCD).

Latitude in degree, minute and seconds is transformed into decimal degree


File:ConvertValues.jpg



4. Add columns with ‘unit of measurement’

Add columns with ‘unit of measurement’, if missing, according to the measurement. Otherwise in ABCD the units cannot be allocated to the values correctly. Example: header of a column in Excel: tarsus (mm) – length, width, height. Add columns with header ‘Unit’ and enter ‘mm’ in every row.

You can add columns with equal content by using following SQL statement:  SELECT  [unit_tarsus_length] AS mm


AddUnitOfMeasurement.JPG



5. Add core information from metadata to every unit, if missing in the unit table.

You can add this information by using the SQL statement above.


6. In case of repeatable elements in ABCD you need to denormalise information.

More information see: BioCASE documention Wiki: http://wiki.bgbm.org/bps/index.php/Preparation Here: “controlled denormalisation”