RegisterObject


NAME

RegisterObject.pl - Script to register a new BioMOBY Object

Top


SYNOPSIS

RegisterObject.pl --central_conf=``list_of_central_config_files'' --object_conf=``list_of_object_config_files''

Top


DESCRIPTION

 This script permit to register a new BioMOBY object 
 using 2 types of configuration files:

 * central_conf:
    This file contains where to register your object,
    which mobycentral
    You can give a list of config files to register
    many centrals in one shot !

 * object_conf:
    This file contains information on the object,
    like, type, description, URI, relationships
    You can give a list of config files: in that case,
    if a key is duplicated, the last value (in the 
    same order as your file list) overwrite the previous.

Top


SUBROUTINES

function GetRelationShips

 Title        : GetRelationShips
 Usage        : &GetRelationShips()
 Prerequisite : none
 Function     : Parse config file to get Relationships descriptions
 Returns      : $rh_relationships
 Args         : none
 Globals      : $RH_PARAM

procedure executeRegistering

 Title        : executeRegistering
 Usage        : &executeRegistering($rh_relationships)
 Prerequisite : none
 Function     : Execute object registering on each mobycentral given as parameters
 Returns      : undef if OK 
 Args         : $rh_relationships Hash ref for relationships definitions
 Globals      : $RH_PARAM

procedure ControlUsage

 Title        : ControlUsage
 Usage        : &ControlUsage()
 Prerequisite : none
 Function     : Control usage of program
 Returns      : undef if OK 
 Args         : $param_name Param to control
 Globals      : $RH_PARAM

procedure PrintUsage

 Title        : PrintUsage
 Usage        : &PrintUsage()
 Prerequisite : none
 Function     : print usage of the program
 Returns      : none 
 Args         : none
 Globals      : none

Top

 RegisterObject