
Net::Calais - Interface to OpenCalais web service

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

Net::Calais->new(PARAM => ...);
Acceptable parameters:
The API key used for authentication with the service.
$calais->enlighten($data, PARAM => ...);
Submits text to the OpenCalais web service.
Optional parameters:
Format of the input content (may be text/raw, text/txt/, text/html, text/xml). Unless specified, text/txt is assumed.
Format of the server response. Unless specified, XML/RDF is assumed.
This should be a RDF representation of your additional metadata (see OpenCalais docs).
See http://opencalais.com/APIcalls#inputparameters for description of such parameters.
$calais->semanticproxy($url, PARAM => ...);
Submits text to the SemanticProxy web service.
Optional parameters:
Format of the requested output (may be html, rdf or microformat).

By modifying the $Net::Calais::CALAIS_URL variable you can set a custom URL for REST requests. The default value is http://api.opencalais.com/enlighten/rest/. This may be useful to use the beta service which is usually located at beta.opencalais.com.
By modifying the $Net::Calais::SEMANTICPROXY_URL variable you can set a custom base URL for SemanticProxy REST requests. The default value is http://service.semanticproxy.com/processurl/.


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

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

Alessandro Ranellucci <aar@cpan.org>