Simeon Warner > SemanticWeb-OAI-ORE-1.00 > SemanticWeb::OAI::ORE::Agent

Download:
SemanticWeb-OAI-ORE-1.00.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

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

syntax highlighting: