Project

General

Profile

« Previous | Next » 

Revision 6381

Added inputs/.herbaria/

View differences:

inputs/.herbaria/_MySQL/geoscrub.schema.sql.make
1
#!/bin/sh
2
env server=nimoy schema=1 my2pg_export geoscrub herbaria
0 3

  
inputs/.herbaria/_MySQL/geoscrub.schema.sql
1
-- MySQL dump 10.13  Distrib 5.5.28, for debian-linux-gnu (x86_64)
2
--
3
-- Host: localhost    Database: geoscrub
4
-- ------------------------------------------------------
5
-- Server version	5.5.28-0ubuntu0.12.04.2
6

  
7
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10
/*!40101 SET NAMES latin1 */;
11
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12
/*!40103 SET TIME_ZONE='+00:00' */;
13
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,POSTGRESQL' */;
16
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17

  
18
--
19
-- Table structure for table "herbaria"
20
--
21

  
22
DROP TABLE IF EXISTS "herbaria";
23
/*!40101 SET @saved_cs_client     = @@character_set_client */;
24
/*!40101 SET character_set_client = utf8 */;
25
CREATE TABLE "herbaria" (
26
  "herbariumAcronym" varchar(255) DEFAULT NULL,
27
  "City" varchar(255) DEFAULT NULL,
28
  "State" varchar(255) DEFAULT NULL,
29
  "Country" varchar(255) DEFAULT NULL,
30
  "CoordinatesVerbatim" varchar(255) DEFAULT NULL,
31
  "latitude" decimal(11,7) DEFAULT NULL,
32
  "longitude" decimal(11,7) DEFAULT NULL,
33
  "ID" int(10) unsigned NOT NULL,
34
  "countryStd" varchar(255) DEFAULT NULL,
35
  "countryID" int(10) unsigned DEFAULT NULL,
36
  PRIMARY KEY ("ID"),
37
  KEY "Index_2" ("latitude"),
38
  KEY "Index_3" ("longitude"),
39
  KEY "Index_4" ("herbariumAcronym"),
40
  KEY "Index_5" ("Country"),
41
  KEY "Index_countryStd" ("countryStd"),
42
  KEY "Index_countryID" ("countryID")
43
);
44
/*!40101 SET character_set_client = @saved_cs_client */;
45
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
46

  
47
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
48
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
49
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
50
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
51
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
52
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
53
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
54

  
55
-- Dump completed on 2012-11-24  0:23:40
inputs/.herbaria/_MySQL/geoscrub.data.sql.make
1
#!/bin/sh
2
env server=nimoy data=1 my2pg_export geoscrub herbaria
0 3

  
inputs/.herbaria/geoscrub.schema.sql
1
SET standard_conforming_strings = off;
2
SET escape_string_warning = off;
3
-- MySQL dump 10.13  Distrib 5.5.28, for debian-linux-gnu (x86_64)
4
--
5
-- Host: localhost    Database: geoscrub
6
-- ------------------------------------------------------
7
-- Server version	5.5.28-0ubuntu0.12.04.2
8

  
9
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
10
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
11
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
12
SET NAMES 'latin1';
13
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
14
/*!40103 SET TIME_ZONE='+00:00' */;
15
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
16
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
17
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,POSTGRESQL' */;
18
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
19

  
20
--
21
-- Table structure for table "herbaria"
22
--
23

  
24
DROP TABLE IF EXISTS "herbaria";
25
/*!40101 SET @saved_cs_client     = @@character_set_client */;
26
/*!40101 SET character_set_client = utf8 */;
27
CREATE TABLE "herbaria" (
28
  "herbariumAcronym" varchar(255) DEFAULT NULL,
29
  "City" varchar(255) DEFAULT NULL,
30
  "State" varchar(255) DEFAULT NULL,
31
  "Country" varchar(255) DEFAULT NULL,
32
  "CoordinatesVerbatim" varchar(255) DEFAULT NULL,
33
  "latitude" decimal(11,7) DEFAULT NULL,
34
  "longitude" decimal(11,7) DEFAULT NULL,
35
  "ID" integer NOT NULL,
36
  "countryStd" varchar(255) DEFAULT NULL,
37
  "countryID" integer DEFAULT NULL,
38
  PRIMARY KEY ("ID"),
39
  "Index_2_index" boolean,
40
  "Index_3_index" boolean,
41
  "Index_4_index" boolean,
42
  "Index_5_index" boolean,
43
  "Index_countryStd_index" boolean,
44
  "Index_countryID_index" boolean
45
);
46
/*!40101 SET character_set_client = @saved_cs_client */;
47
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
48

  
49
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
50
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
51
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
52
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
53
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
54
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
55
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
56

  
57
-- Dump completed on 2012-11-24  0:23:40
inputs/.herbaria/herbaria/header.csv
1
herbariumAcronym,City,State,Country,CoordinatesVerbatim,latitude,longitude,ID,countryStd,countryID,Index_2_index,Index_3_index,Index_4_index,Index_5_index,Index_countryStd_index,Index_countryID_index
inputs/.herbaria/herbaria/map.csv
1
herbaria,VegCore,Filter,Comments
2
herbariumAcronym,institutionCode,,
3
City,OMIT,,"Just importing whether a datasource is a herbarium, for now"
4
State,OMIT,,"Just importing whether a datasource is a herbarium, for now"
5
Country,OMIT,,"Just importing whether a datasource is a herbarium, for now"
6
CoordinatesVerbatim,OMIT,,"Just importing whether a datasource is a herbarium, for now"
7
latitude,OMIT,,"Just importing whether a datasource is a herbarium, for now"
8
longitude,OMIT,,"Just importing whether a datasource is a herbarium, for now"
9
ID,OMIT,,"Just importing whether a datasource is a herbarium, for now"
10
countryStd,OMIT,,"Just importing whether a datasource is a herbarium, for now"
11
countryID,OMIT,,"Just importing whether a datasource is a herbarium, for now"
12
Index_2_index,OMIT,,Placeholder column created by MySQL to PostgreSQL translation
13
Index_3_index,OMIT,,Placeholder column created by MySQL to PostgreSQL translation
14
Index_4_index,OMIT,,Placeholder column created by MySQL to PostgreSQL translation
15
Index_5_index,OMIT,,Placeholder column created by MySQL to PostgreSQL translation
16
Index_countryStd_index,OMIT,,Placeholder column created by MySQL to PostgreSQL translation
17
Index_countryID_index,OMIT,,Placeholder column created by MySQL to PostgreSQL translation
18
:herbarium,referenceType,,
inputs/.herbaria/herbaria/VegBIEN.csv
1
herbaria,VegBIEN:/_simplifyPath:[next=parent_id]/path,Comments
2
herbariumAcronym,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/then/_join/1/_if[@name=""if specimen""]/then",
3
herbariumAcronym,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/sourcename/name/_if[@name=""if specimen""]/then",
4
herbariumAcronym,"/source/shortname/_if[@name=""if specimen""]/else",
5
:herbarium,/source/sourcetype,
6
City,,"** No non-empty join mapping for OMIT ** Just importing whether a datasource is a herbarium, for now"
7
CoordinatesVerbatim,,"** No non-empty join mapping for OMIT ** Just importing whether a datasource is a herbarium, for now"
8
Country,,"** No non-empty join mapping for OMIT ** Just importing whether a datasource is a herbarium, for now"
9
ID,,"** No non-empty join mapping for OMIT ** Just importing whether a datasource is a herbarium, for now"
10
Index_2_index,,** No non-empty join mapping for OMIT ** Placeholder column created by MySQL to PostgreSQL translation
11
Index_3_index,,** No non-empty join mapping for OMIT ** Placeholder column created by MySQL to PostgreSQL translation
12
Index_4_index,,** No non-empty join mapping for OMIT ** Placeholder column created by MySQL to PostgreSQL translation
13
Index_5_index,,** No non-empty join mapping for OMIT ** Placeholder column created by MySQL to PostgreSQL translation
14
Index_countryID_index,,** No non-empty join mapping for OMIT ** Placeholder column created by MySQL to PostgreSQL translation
15
Index_countryStd_index,,** No non-empty join mapping for OMIT ** Placeholder column created by MySQL to PostgreSQL translation
16
State,,"** No non-empty join mapping for OMIT ** Just importing whether a datasource is a herbarium, for now"
17
countryID,,"** No non-empty join mapping for OMIT ** Just importing whether a datasource is a herbarium, for now"
18
countryStd,,"** No non-empty join mapping for OMIT ** Just importing whether a datasource is a herbarium, for now"
19
latitude,,"** No non-empty join mapping for OMIT ** Just importing whether a datasource is a herbarium, for now"
20
longitude,,"** No non-empty join mapping for OMIT ** Just importing whether a datasource is a herbarium, for now"
inputs/.herbaria/herbaria/test.xml.ref
1
Put template:
2
<VegBIEN>
3
    <_simplifyPath id="-1">
4
        <next>parent_id</next>
5
        <path>
6
            <source>
7
                <shortname>$herbariumAcronym</shortname>
8
                <sourcetype>herbarium</sourcetype>
9
            </source>
10
        </path>
11
    </_simplifyPath>
12
</VegBIEN>
13
Inserted 3 new rows into database
inputs/.herbaria/herbaria/new_terms.csv
1
herbariumAcronym,institutionCode,,
2
City,OMIT,,"Just importing whether a datasource is a herbarium, for now"
3
CoordinatesVerbatim,OMIT,,"Just importing whether a datasource is a herbarium, for now"
4
countryStd,OMIT,,"Just importing whether a datasource is a herbarium, for now"
5
countryID,OMIT,,"Just importing whether a datasource is a herbarium, for now"
6
Index_2_index,OMIT,,Placeholder column created by MySQL to PostgreSQL translation
7
Index_3_index,OMIT,,Placeholder column created by MySQL to PostgreSQL translation
8
Index_4_index,OMIT,,Placeholder column created by MySQL to PostgreSQL translation
9
Index_5_index,OMIT,,Placeholder column created by MySQL to PostgreSQL translation
10
Index_countryStd_index,OMIT,,Placeholder column created by MySQL to PostgreSQL translation
11
Index_countryID_index,OMIT,,Placeholder column created by MySQL to PostgreSQL translation

Also available in: Unified diff