NAME

CGI::Auth::FOAF_SSL::CertifiedThing - a resource (in the RDFS sense)

SYNOPSIS

my $auth = CGI::Auth::FOAF_SSL->new_from_cgi;
if ($auth->is_secure)
{
  my $thing = $auth->certified_thing;
  if ($thing)
  {
    my $webid = $thing->identity;
  }
}

DESCRIPTION

Constructor

$thing = CGI::Auth::FOAF_SSL::CertifiedThing->new($id, $model, $ep)

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

Public Methods

$thing->identity

Returns the URI identifying the thing.

$thing->model

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

$thing->endpoint

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

BUGS

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

SEE ALSO

CGI::Auth::FOAF_SSL.

Subclasses

AUTHOR

Toby Inkster, <tobyink@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2009-2010 by Toby Inkster

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8 or, at your option, any later version of Perl 5 you may have available.