public function OBOImporter::postRun

3.x OBOImporter.inc public OBOImporter::postRun()

Overrides TripalImporter::postRun

See also

TripalImporter::postRun()

File

tripal_chado/includes/TripalImporter/OBOImporter.inc, line 408

Class

OBOImporter

Code

public function postRun() {

  // Update the cv_root_mview materiailzed view.
  $this->logMessage("Updating the cv_root_mview materialized view...");
  $mview_id = chado_get_mview_id('cv_root_mview');
  chado_populate_mview($mview_id);

  $this->logMessage("Updating the db2cv_mview materialized view...");
  $mview_id = chado_get_mview_id('db2cv_mview');
  chado_populate_mview($mview_id);

  // Upate the cvtermpath table for each newly added CV.
  $this->logMessage("Updating cvtermpath table.  This may take a while...");
  foreach ($this->newcvs as $namespace => $cvid) {
    $this->logMessage("- Loading paths for @vocab", array('@vocab' => $namespace));
    chado_update_cvtermpath($cvid);
  }
}