| 1 | # makes objects from parser events |
| 2 | |
| 3 | package GO::Handlers::rdfscip-perl cpan go-perl 0.15 GO/Handlers/rdf/; |
| 4 | use basescip-perl cpan go-perl 0.15 base/ qw(GO::Handlers::obj); |
| 5 | use FileHandlescip-perl cpan go-perl 0.15 FileHandle/; |
| 6 | use GO::IO::XMLscip-perl cpan go-perl 0.15 GO/IO/XML/; |
| 7 | use strictscip-perl cpan go-perl 0.15 strict/; |
| 8 | |
| 9 | sub _valid_paramsscip-perl cpan go-perl 0.15 GO/Handlers/rdf/_valid_params(). { qw(w fh strictorder) } |
| 10 | #sub init { |
| 11 | # my $self = shift; |
| 12 | # $self->SUPER::init(@_); |
| 13 | # my $fh = FileHandle->new; |
| 14 | # my $fh = \*STDOUT; |
| 15 | # $self->fh($fh); |
| 16 | # return; |
| 17 | #} |
| 18 | |
| 19 | sub e_oboscip-perl cpan go-perl 0.15 GO/Handlers/rdf/e_obo(). { |
| 20 | my $self = shiftscip-perl cpan go-perl 0.15 GO/Handlers/rdf/shift().; |
| 21 | my $g = $self->gscip-perl cpan go-perl 0.15 GO/Handlers/rdf/g().; |
| 22 | my $xml_out = GO::IO::XML->newscip-perl cpan go-perl 0.15 GO/IO/XML/new().(-output=>$self->safe_fhscip-perl cpan go-perl 0.15 GO/Handlers/rdf/safe_fh().); |
| 23 | $xml_out->start_documentscip-perl cpan go-perl 0.15 GO/IO/XML/start_document().(); |
| 24 | $xml_out->draw_node_graphscip-perl cpan go-perl 0.15 GO/IO/XML/draw_node_graph().(-graph=>$g); |
| 25 | $xml_out->end_documentscip-perl cpan go-perl 0.15 GO/IO/XML/end_document().(); |
| 26 | return; |
| 27 | } |
| 28 | |
| 29 | 1; |