XML::APML::Concept - concept markup
my $explicit_concept = XML::APML::Concept->new( key => 'sport', value => 0.9, ); # change value $explicit_concept->value(0.1); $profile->explicit->add_concept($explicit_concept); my $implicit_concept = XML::APML::Concept->new( key => 'television', value => 0.77, from => 'GatheringTool.com', updated => '2007-03-11T01:55:00Z', ); print $implicit_concept->key; print $implicit_concept->value; print $implicit_concept->from; $dt = DateTime::Format::W3CDTF->new->parse_datetime($implicit_concept->updated); print $dt->year; print $dt->month; $implicit_concept->updated( DateTime::Format::W3CDTF->new->format_datetime( DateTime->now ) ); $profile->implicit->add_concept($implicit_concept);
Class that represents Concept mark-up for APML.
Constructor
key accessor
value accessor
from accessor
updated accessor get/set W3CDTF(iso8601) formatted string.
To install XML::APML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::APML
CPAN shell
perl -MCPAN -e shell install XML::APML
For more information on module installation, please visit the detailed CPAN module installation guide.