Toby Inkster > CGI-Auth-FOAF_SSL > CGI::Auth::FOAF_SSL::Agent

Download:
CGI-Auth-FOAF_SSL-1.002.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.001   Source  

NAME ^

CGI::Auth::FOAF_SSL::Agent - an agent (in the FOAF sense)

SYNOPSIS ^

  my $auth = CGI::Auth::FOAF_SSL->new_from_cgi;
  if ($auth->is_secure)
  {
    my $person = $auth->agent;
    if ($person)
    {
      my $name = $person->name;
      my $link = $person->homepage;
    }
  }

DESCRIPTION ^

Constructor

new($webid, $model, $endpoint)

Create a new object representing an agent. $webid is an identfying URI, and is required. $model is an RDF::Trine::Model containing data about the agent, or may be undef. $endpoint is a SPARQL endpoint URL, or may be undef.

Public Methods

identity

Returns the URI identifying the agent.

model

Returns an RDF::Trine::Model which may contain data about the agent.

endpoint

Returns a URL for a SPARQL Protocol endpoint that may be able to provide data about the agent.

name

The name of an agent (e.g. a person's name).

homepage

Gets the URL of the agent's homepage.

img

Gets the URL of an image or depiction of the agent.

mbox

Gets an e-mail address (including "mailto:") to communicate with the agent.

BUGS ^

Please report any bugs to http://rt.cpan.org/.

SEE ALSO ^

CGI::Auth::FOAF_SSL.

AUTHOR ^

Toby Inkster, <tobyink@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2009-2011 by Toby Inkster

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: