TM::Literal(3) Topic Maps, simple values (literals)

SYNOPSIS


use TM::Literal;
my $l = new TM::Literal (42, 'xsd:integer');
print $l->[0]; # prints 42
print $l->[1]; # prints http://www.w3.org/2001/XMLSchema#integer
$l = new TM::Literal (42); # default is xsd:string

DESCRIPTION

This packages will eventually handle all literal handling, i.e. not only a way to create and retrieve information about simple values used inside topic maps, but also all necessary operations such as integer addition, string manipulation.

This is quite a chore, especially since the data types adopted here are the XML Schema Data Types.

Grammar

TODO

Operations

TODO

COPYRIGHT AND LICENSE

Copyright 200[6] by Robert Barta, <[email protected]>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.