| TM documentation | Contained in the TM distribution. |
TM::Materialized::XTM - Topic Maps, Parsing and dumping of XTM instances.
use TM::Materialized::XTM; my $tm = new TM::Materialized::XTM (inline => '....xtm here...'); $tm->sync_in; # ... # or my $tm = new TM::Materialized::XTM (file => 'test.xtm'); # ... $tm->sync; # or my $tm = ... however you arrive at a map my $xml = $tm->sync_out;
This package provides parsing and dumping functionality for XTM 1.0 instances. See TM::Serializable::XTM for details.
The constructor expects a hash as described in TM::Materialized::Stream.
Copyright 200[1-68], Robert Barta <drrho@cpan.org>, All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. http://www.perl.com/perl/misc/Artistic.html
| TM documentation | Contained in the TM distribution. |
package TM::Materialized::XTM; use strict; use warnings; use TM::Materialized::Stream; use base qw (TM::Materialized::Stream); use Class::Trait qw(TM::Serializable::XTM); use Data::Dumper;
sub new { my $class = shift; my %options = @_; $options{psis} = $TM::PSI::topicmaps; # make sure we have what we need return bless $class->SUPER::new (%options), $class; }
our $VERSION = 0.02; 1;