NAME
TM::Literal - Topic Maps, simple values (literals)
SYNOPSIS
use TM::Literal;my $l = new TM::Literal (42, 'xsd:integer');print $l->[0]; # prints 42print $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.
Constants
XSD http://www.w3.org/2001/XMLSchema#INTEGER http://www.w3.org/2001/XMLSchema#integerDECIMAL http://www.w3.org/2001/XMLSchema#decimalFLOAT http://www.w3.org/2001/XMLSchema#floatDOUBLE http://www.w3.org/2001/XMLSchema#doubleSTRING http://www.w3.org/2001/XMLSchema#stringURI http://www.w3.org/2001/XMLSchema#anyURIANY http://www.w3.org/2001/XMLSchema#anyType
Grammar
TODO
Operations
TODO
SEE ALSO
TM
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.