<?php
/* connector for SPIRE
estimated execution time: 10 mins

Connector accesses the OWL (XML) files from remote server for most of the data and uses a spreadsheet for taxonomy info.
*/

include_once(dirname(__FILE__) . "/../../config/environment.php");
require_library('connectors/SpireAPI');
$GLOBALS['ENV_DEBUG'] = false;

$timestart = time_elapsed();

$taxa = SpireAPI::get_all_taxa();
$xml = SchemaDocument::get_taxon_xml($taxa);

$resource_path = CONTENT_RESOURCE_LOCAL_PATH . "219.xml";
$OUT = fopen($resource_path, "w");
fwrite($OUT, $xml);
fclose($OUT);

$elapsed_time_sec = time_elapsed() - $timestart;
echo "\n";
echo "elapsed time = $elapsed_time_sec sec              \n";
echo "elapsed time = " . $elapsed_time_sec/60 . " min   \n";
echo "elapsed time = " . $elapsed_time_sec/60/60 . " hr \n";
exit("\n\n Done processing.");
?>
<?php
/* connector for SPIRE
estimated execution time: 10 mins
Connector accesses the OWL (XML) files from remote server for most of the data and uses a spreadsheet for taxonomy info.
*/

include_once(dirname(__FILE__) . "/../../config/environment.php");
require_library('connectors/SpireAPI');
$GLOBALS['ENV_DEBUG'] = false;

$timestart = time_elapsed();

$taxa = SpireAPI::get_all_taxa();
$xml = SchemaDocument::get_taxon_xml($taxa);

$resource_path = CONTENT_RESOURCE_LOCAL_PATH . "219.xml";
$OUT = fopen($resource_path, "w");
fwrite($OUT, $xml);
fclose($OUT);

$elapsed_time_sec = time_elapsed() - $timestart;
echo "\n";
echo "elapsed time = $elapsed_time_sec sec              \n";
echo "elapsed time = " . $elapsed_time_sec/60 . " min   \n";
echo "elapsed time = " . $elapsed_time_sec/60/60 . " hr \n";
exit("\n\n Done processing.");
?>
Exclude list of taxa as suggested by SPG.
Exclude list of taxa as suggested by SPG.

git-svn-id: d46fe582d22b46b457d3ac1c55a88da2fbe913a1@1719 baf6b65b-9124-4dc3-b1c0-01155b4af546
