function tripal_submit_obo_job

2.x tripal_cv.api.inc tripal_submit_obo_job($obo)
3.x tripal_chado.module.DEPRECATED.api.inc tripal_submit_obo_job($obo)

TODO: deprecate this function

Avoid using this function as it will be deprecated in future releases.

This function allows other modules to programatically submit an ontology for loading into Chado.

This function will add a job to the Jobs subsystem for parsing the ontology. You can either pass a known OBO ID to the function or the URL or full path the the ontology file. If a URL or file name is passed then the $obo_name argument must also be provided. If this is the first time the ontology has been provided to Tripal then it will be added to the database and will be assigned a unique OBO ID.

Parameters

$obo_id: If the ontology is already loaded into the Tripal tables then use this argument to specify the unique ID for the ontology that will be loaded.

$obo_name: If the OBO has not been added before then use this argument to specify the human readable name of the ontology.

$obo_url: If the OBO to be loaded is located on a remote server then use this argument to provide the URL.

$obo_file: If the OBO is housed on the local file system of the server then use this argument to specify the full path.

Return value

returns the job_id of the submitted job or FALSE if the job was not added

3 calls to tripal_submit_obo_job()
tripal_contact_install in legacy/tripal_contact/tripal_contact.install
Implementation of hook_install().
tripal_cv_submit_obo_job in legacy/tripal_cv/api/tripal_cv.DEPRECATED.inc
tripal_pub_install in legacy/tripal_pub/tripal_pub.install
Implementation of hook_install().
1 string reference to 'tripal_submit_obo_job'

File

tripal_chado/api/modules/tripal_chado.module.DEPRECATED.api.inc, line 327
These api functions are deprecated, if your site is currently using them please update your code with the newer tripal_chado functions.

Code

function tripal_submit_obo_job($obo) {
  chado_submit_obo_job($obo);
}