private function get_uris() { /* $fields["sex"] = "sex_uri"; $fields["length_type"] = "length_type_uri"; $fields["habitat"] = "habitat_uri"; */ $fields["value"] = "value_uri"; //a generic spreadsheet $params["fields"] = $fields; $params["dataset"] = "FishBase"; /* you can specify spreadsheet_options here, if not it will use default spreadsheet options in GBIFCountryTypeRecordAPI */ require_library('connectors/GBIFCountryTypeRecordAPI'); $func = new GBIFCountryTypeRecordAPI("x"); return $func->get_uris($params, $this->uri_mappings_spreadsheet); }
occurrence [9075] 212746 212746 taxon [4291] 95625 95625 classification resource: */ include_once dirname(__FILE__) . "/../../config/environment.php"; require_library('connectors/GBIFCountryTypeRecordAPI'); $timestart = time_elapsed(); // /*// local $params["citation_file"] = "http://localhost/cp/GBIF_dwca/countries/France/Citation Mapping France.xlsx"; $params["dwca_file"] = "http://localhost/cp/GBIF_dwca/countries/France/France.zip"; $params["uri_file"] = "http://localhost/cp/GBIF_dwca/countries/France/french GBIF mapping.xlsx"; // */ // remote // $params["citation_file"] = "https://dl.dropboxusercontent.com/u/7597512/GBIF_dwca/countries/France/Citation Mapping France.xlsx"; // $params["dwca_file"] = "https://dl.dropboxusercontent.com/u/7597512/GBIF_dwca/countries/France/France.zip"; // $params["uri_file"] = "https://dl.dropboxusercontent.com/u/7597512/GBIF_dwca/countries/France/french GBIF mapping.xlsx"; $params["dataset"] = "GBIF"; $params["country"] = "France"; $params["type"] = "structured data"; $params["resource_id"] = 886; // $params["type"] = "classification resource"; // $params["resource_id"] = 1; $resource_id = $params["resource_id"]; $func = new GBIFCountryTypeRecordAPI($resource_id); $func->export_gbif_to_eol($params); Functions::finalize_dwca_resource($resource_id); $elapsed_time_sec = time_elapsed() - $timestart; echo "\n\n"; echo "elapsed time = " . $elapsed_time_sec / 60 . " minutes \n"; echo "elapsed time = " . $elapsed_time_sec / 60 / 60 . " hours \n"; echo "\nDone processing.\n";
private function get_uris() { $params["dataset"] = "GBIF"; require_library('connectors/GBIFCountryTypeRecordAPI'); $func = new GBIFCountryTypeRecordAPI("x"); $uris = $func->get_uris($params, $this->uri_mappings_spreadsheet); return $uris; }
private function get_uris() { $spreadsheet = "http://localhost/cp/NMNH/type_specimen_resource/nmnh mappings.xlsx"; //a good source of typeStatus URI's $spreadsheet = "https://dl.dropboxusercontent.com/u/7597512/NMNH/type_specimen_resource/nmnh mappings.xlsx"; $params["uri_file"] = $spreadsheet; $params["dataset"] = "GBIF"; require_library('connectors/GBIFCountryTypeRecordAPI'); $func = new GBIFCountryTypeRecordAPI("x"); $uris = $func->get_uris($params, $spreadsheet); return $uris; }