Robert Barta > TM > TM::Literal

Download:
TM-1.56.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.1   Source  

NAME ^

TM::Literal - 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.

Constants

  XSD      http://www.w3.org/2001/XMLSchema#
  INTEGER  http://www.w3.org/2001/XMLSchema#integer
  DECIMAL  http://www.w3.org/2001/XMLSchema#decimal
  FLOAT    http://www.w3.org/2001/XMLSchema#float
  DOUBLE   http://www.w3.org/2001/XMLSchema#double
  STRING   http://www.w3.org/2001/XMLSchema#string
  URI      http://www.w3.org/2001/XMLSchema#anyURI
  ANY      http://www.w3.org/2001/XMLSchema#anyType

Grammar

TODO

Operations

TODO

SEE ALSO ^

TM

COPYRIGHT AND LICENSE ^

Copyright 200[6] 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.

syntax highlighting: