function chado_format_semweb_term
3.x tripal_chado.semweb.api.inc | chado_format_semweb_term($cvterm) |
Formats a controlled vocabulary term from Chado for use with Tripal.
Parameters
$cvterm: A cvterm object.
Return value
The semantic web name for the term.
Related topics
2 calls to chado_format_semweb_term()
- chado_get_semweb_term in tripal_chado/
api/ tripal_chado.semweb.api.inc - Retrieves the term that maps to the given Chado table and field.
- tripal_format_chado_semweb_term in tripal_chado/
api/ tripal_chado.DEPRECATED.api.inc - Formats a controlled vocabulary term from Chado for use with Tripal.
File
- tripal_chado/
api/ tripal_chado.semweb.api.inc, line 228 - Provides an application programming interface (API) for semantic web support.
Code
function chado_format_semweb_term($cvterm) {
if ($cvterm) {
return $cvterm->dbxref_id->db_id->name . ':' . $cvterm->dbxref_id->accession;
}
return '';
}