Author image Benjamin Trott
and 1 contributors

NAME

XML::FOAF::Person - A Person class in a FOAF file

SYNOPSIS

    my $foaf = XML::FOAF->new(URI->new('http://foo.com/my.foaf'));
    my $person = $foaf->person;
    print $person->mbox, "\n";
    my $people = $foaf->knows;

DESCRIPTION

XML::FOAF::Person represents a Person class in a FOAF file.

USAGE

You can use any property as a method name and call it on a XML::FOAF::Person object. For example:

    my $email = $person->mbox;
    my $name = $person->name;

In addition to this, some methods with special beheavior are defined below:

$person->knows

Returns a reference to an array of XML::FOAF::Person objects representing the people that $person knows.

AUTHOR & COPYRIGHT

Please see the XML::FOAF manpage for author, copyright, and license information.