NAME

Net::Calais - Interface to OpenCalais web service

SYNOPSIS

use Net::Calais;

my $calais = Net::Calais->new(apikey => 'akljelkjde3jlkj2i2l2');
print $calais->enlighten($html, contentType => 'text/html');

METHODS

new()
Net::Calais->new(PARAM => ...);

Acceptable parameters:

apikey

The API key used for authentication with the service.

enlighten()
$calais->enlighten($data, PARAM => ...);

Submits text to the OpenCalais web service.

Optional parameters:

contentType

Format of the input content (may be text/raw, text/txt/, text/html, text/xml). Unless specified, text/txt is assumed.

outputFormat
reltagBaseURL
calculateRelevanceScore
enableMetadataType
allowDistribution
allowSearch
externalID
submitter

See http://opencalais.com/APIcalls#inputparameters for description of such parameters.

semanticproxy()
$calais->semanticproxy($url, PARAM => ...);

Submits text to the SemanticProxy web service.

Optional parameters:

output

Format of the requested output (may be html, rdf or microformat).

SEE ALSO

http://opencalais.com/

BUGS AND FEEDBACK

You are very welcome to write mail to the maintainer (aar@cpan.org) with your contributions, comments, suggestions, bug reports or complaints.

COPYRIGHT

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

AUTHOR

Alessandro Ranellucci <aar@cpan.org>