rdmenezes / ontowiz

Automatically exported from code.google.com/p/ontowiz
0 stars 0 forks source link

Store relations-list as cocO(n) input #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Initiate ontoWiz using settings provided below
2. Launch the Perl code
3. Launch the cocO(n) exec.

Below is the code which is expected to be enough to launch "it":
-----------------------------------------------------
my $ontology_name = "sample_data/teleost_taxonomy.obo";
my %settings = (
    "static_cpp" => "static_teleost_taxonomy.h", # which is the file-name                                                                    
    "pre_processing" => "discard", # discards the pre-processing                                                                             
);
# ------------------------------------------------------                        

my $my_parser = OBO::Parser::OBOParser->new();
my $onto = $my_parser->work($ontology_name, %settings);
#! (2) Fill the OP-datastructure into the Cxx-set:                              

my $obj = OntoWiz::Ontology->new($onto);

Original issue reported on code.google.com by oeks...@gmail.com on 14 Jun 2013 at 12:59