Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tm::materialized::stream(3pm) [debian man page]

TM::Materialized::Stream(3pm)				User Contributed Perl Documentation			     TM::Materialized::Stream(3pm)

NAME
TM::Materialized::Stream - Topic Maps, abstract class for maps with stream based input/output drivers SYNOPSIS
# this class will never be directly used for instantiation # see the description in TM and individual low-level drivers (AsTMa, ...) DESCRIPTION
This class is a subclass of TM, so it implements map objects. It is abstract, though, as it only defined how a stream-based driver package should behave. It may thus be inherited by classes which implement external formats (TM::Materialized::AsTMa, TM::Materialized::XML, ....). INTERFACE
Constructor The constructor of implementations should expect a hash as parameter containing the field(s) from TM and one or more of the following: url: If given, then the instance will be read from this url whenever synced in. file: If given, then the data will be read/written from/to this file. This is just a convenience as it will be mapped to url. inline: If given, then the instance will be read directly from this text provided inline when synced. If several fields ("file", "url", "inline") are specified, it is undefined which one will be taken. Examples (using AsTMa): # opening from an AsTMa= file $atm = new TM::Materialized::AsTMa (file => 'here.atm'); # why need a file? files are evil, anyway $atm = new TM::Materialized::AsTMa (inline => '# this is AsTMa'); SEE ALSO
TM AUTHOR INFORMATION
Copyright 200[2-6], 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 perl v5.10.1 2008-04-10 TM::Materialized::Stream(3pm)

Check Out this Related Man Page

TM::Analysis(3pm)					User Contributed Perl Documentation					 TM::Analysis(3pm)

NAME
TM::Analysis - Topic Maps, analysis functions SYNOPSIS
use TM::Materialized::AsTMa; my $tm = new TM::Materialized::AsTMa (file => 'test.atm'); $tm->sync_in; Class::Trait->apply ($tm, 'TM::Analysis'); print Dumper $tm->statistics; print Dumper $tm->orphanage; DESCRIPTION
This package contains some topic map analysis functionality. INTERFACE
statistics This (currently quite limited) function computes a reference to hash containing the following fields: "nr_toplets" Nr of midlets in the map. This includes ALL midlets for topics and also those for assertions. "nr_asserts" Nr of assertions in the map. "nr_clusters" Nr of clusters according to the "cluster" function elsewhere in this document. orphanage This computes all topics which have either no supertype and also those which have no type. Without further parameters, it returns a hash reference with the following fields: "untyped" Holds a list reference to all topic ids which have no type. "empty" Holds a list reference to all topic ids which have no instance. "unclassified" Holds a list reference to all topic ids which have no superclass. "unspecified" Holds a list reference to all topic ids which have no subclass. Optionally, a list of the identifiers above can be passed in so that only that particular information is actually returned (some speedup): my $o = TM::Analysis::orphanage ($tm, 'untyped'); entropy This method returns a hash (reference) where the keys are the assertion types and the values are the individual entropies of these assertion types. More frequently used (inflationary) types will have a lower value, very seldomly used ones too. Only those in the middle count most. SEE ALSO
TM COPYRIGHT AND LICENSE
Copyright 20(0[3-68]|10) by Robert Barta, <drrho@cpan.org> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-06-06 TM::Analysis(3pm)
Man Page