The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SemanticWeb::OAI::ORE::Agent - Module to represent http://purl.org/dc/terms/Agent

SYNPOSIS

  my $agent=SemanticWeb::OAI::ORE::Agent->new;
  $agent->name("A Person");
  $agent->mbox("person\@example.org");
  print "Agent = ".$agent->name." <".$agent->mbox.">\n";

DESCRIPTION

Within OAI-ORE an agent, typically but not necessarily a person, may have a name, an email address and a URI.

METHODS

Creator

new()

Create SemanticWeb::OAI::ORE::Agent, may set uri, name and mbox via hash arguments.

Accessors

uri

URI of the Agent. This may be a blank node id. Use instead real_uri if you want only globally meaningful URI.

real_uri

Wrapper around uri which returns either a globally meaningful URI or undef if not set or a blank node. Cannot be used to set uriXX.

name

Accessor for foaf:name of this Agent

mbox

Accessor for foaf:mbox of this Agent