The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

XML::APML::Concept - concept markup

SYNOPSIS

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);

DESCRIPTION

Class that represents Concept mark-up for APML.

METHODS

new

Constructor

key

key accessor

value

value accessor

from

from accessor

updated

updated accessor get/set W3CDTF(iso8601) formatted string.