Tara Andrews > Text-Tradition-1.2_clean > Text::Tradition::Parser::GraphML

Download:
Text-Tradition-1.2_clean.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Text::Tradition::Parser::GraphML

SYNOPSIS ^

  use Text::Tradition;
  
  my $t_from_file = Text::Tradition->new( 
    'name' => 'my text',
    'input' => 'Self',
    'file' => '/path/to/tradition.xml'
    );
    
  my $t_from_string = Text::Tradition->new( 
    'name' => 'my text',
    'input' => 'Self',
    'string' => $tradition_xml,
    );

DESCRIPTION ^

Parser module for Text::Tradition to read in its own GraphML output format. GraphML is a relatively simple graph description language; a 'graph' element can have 'node' and 'edge' elements, and each of these can have simple 'data' elements for attributes to be saved.

The graph itself has attributes as in the Collation object:

The node objects have the following attributes:

The edge objects have the following attributes:

METHODS ^

parse

parse( $graph, $opts );

Takes an initialized Text::Tradition object and a set of options; creates the appropriate nodes and edges on the graph. The options hash should include either a 'file' argument or a 'string' argument, depending on the source of the XML to be parsed.

BUGS / TODO ^

LICENSE ^

This package is free software and is provided "as is" without express or implied warranty. You can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR ^

Tara L Andrews <aurum@cpan.org>

syntax highlighting: