function tripal_associate_chado_semweb_term
3.x tripal_chado.DEPRECATED.api.inc | tripal_associate_chado_semweb_term($chado_table, $chado_column, $term,
$update = false) |
Associates a controlled vocabulary term with a field in a Chado table.
For sharing of data via the semantic web we need to associate a term from a controlled vocabulary with every column of every table in Chado.
Temporary tables (e.g. Tripal tables that begin with 'tripal_' and end with '_temp', are not supported.
Parameters
$chado_table: The name of the table in Chado. This argument is optional. If left empty or set to NULL then all fields in all Chado tables with that have the $column_name will be associated with the provided $term.
$chado_column: The column name in the Chado table to which the term should be associated.
$term: A cvterm object as returned by chado_generate_var().
$update: Set to TRUE if the association should be updated to use the new term if a term is already associated with the table and column. Default is FALSE. If not TRUE and a term is already associated, then no change occurs.
Return value
boolean Returns TRUE if the association was made successfully and FALSE otherwise.
File
- tripal_chado/
api/ tripal_chado.DEPRECATED.api.inc, line 332 - 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_associate_chado_semweb_term($chado_table, $chado_column, $term,
$update = false) {
chado_associate_semweb_term($chado_table, $chado_column, $term, $update);
}