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

2 calls to tripal_cv_add_obo_defaults()

File

tripal_cv/tripal_cv.install, line 121
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('Chado Feature Properties', drupal_get_path('module', 'tripal_cv') . '/feature_property.obo'),
    array('Relationship Ontology', 'http://www.obofoundry.org/ro/ro.obo'),
    array('Sequence Ontology', 'http://song.cvs.sourceforge.net/*checkout*/song/ontology/so.obo'),
    array('Gene Ontology', 'http://www.geneontology.org/ontology/gene_ontology.obo'),
    array('Cell Ontology', 'http://obo.cvs.sourceforge.net/obo/obo/ontology/anatomy/cell_type/cell.obo?rev=HEAD'),
    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 ('%s','%s')", 
    $o[0], 
    $o[1]
    );
  }

}