function tripal_cv_add_obo_defaults

2.x tripal_cv.install tripal_cv_add_obo_defaults()
1.x tripal_cv.install tripal_cv_add_obo_defaults()

Add's defaults to the tripal_cv_obo table

Related topics

1 call to tripal_cv_add_obo_defaults()
tripal_cv_install in tripal_cv/tripal_cv.install
Implementation of hook_install().

File

tripal_cv/tripal_cv.install, line 245
Contains functions executed only on install/uninstall of this module

Code

function tripal_cv_add_obo_defaults() {

  // Insert commonly used ontologies into the tables.
  $ontologies = array(
    //    array('Relationship Ontology', 'http://purl.obolibrary.org/obo/ro.obo'),
    //    array('Relationship Ontology (older deprecated version)', 'http://www.obofoundry.org/ro/ro.obo'),
    array('Sequence Ontology', 'http://purl.obolibrary.org/obo/so.obo'),
    array('Gene Ontology', 'http://purl.obolibrary.org/obo/go.obo'),
    //    array('Cell Ontology', 'https://raw.githubusercontent.com/obophenotype/cell-ontology/master/cl.obo'),
//    array('Plant Structure Ontology', 'http://palea.cgrb.oregonstate.edu/viewsvn/Poc/trunk/ontology/OBO_format/po_anatomy.obo?view=co'),
//    array('Plant Growth and Development Stages Ontology', 'http://palea.cgrb.oregonstate.edu/viewsvn/Poc/trunk/ontology/OBO_format/po_temporal.obo?view=co')
  );
  foreach ($ontologies as $o) {
    db_query("INSERT INTO {tripal_cv_obo} (name,path) VALUES (:name, :path)", array(':name' => $o[0], ':path' => $o[1]));
  }
}