This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit f809d765ece2e8f44bdc145682cf89d9732d119f
tree dac30fd93b98cdb4bafdbdf6a09a24fdfbf5d179
parent af5ccef3804da5100d044c69b379586bf9f2affb
tree dac30fd93b98cdb4bafdbdf6a09a24fdfbf5d179
parent af5ccef3804da5100d044c69b379586bf9f2affb
calais /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
History.txt | ||
| |
MIT-LICENSE | ||
| |
Manifest.txt | ||
| |
README.txt | ||
| |
Rakefile | ||
| |
init.rb | Thu Feb 07 22:34:09 -0800 2008 | |
| |
lib/ | ||
| |
spec/ |
README.txt
== Calais A Ruby interface to the Open Calais Web Service (http://opencalais.com) == Features * Accepts documents in text/plain, text/xml and text/html format. * Basic access to the Open Calais API's Enlighten action. * Output is RDF representation of input document. * Single function ability to tag a document and receive a response in RDF format, names in the document, and their relationships. == Synopsis This is a very basic wrapper to the Open Calais API. It uses the POST endpoint and currently supports the Enlighten action. Here's a simple call: Calais.enlighten(:content => "The government of the United Kingdom has given corporations like fast food chain McDonald's the right to award high school qualifications to employees who complete a company training program.", :content_type => :text, :license_id => LICENSE_ID) This is the easiest way to get the RDF-formated response from the OpenCalais service. If you want to do something more fun like getting all sorts of fun information about a document, you can try this: Calais.process_document(:content => "The government of the United Kingdom has given corporations like fast food chain McDonald's the right to award high school qualifications to employees who complete a company training program.", :content_type => :text, :license_id => LICENSE_ID) This will return an object containing the RDF representation of the text, the names in the text, and any relationships that exist there. == Requirements * Ruby 1.8.5 or better * Uses the following standard libraries: digest/sha1, net/http, yaml, cgi * libxml2 / libxml-ruby == Install You can install the Calais gem via Rubygems (gem install calais) or by building from source. == Authors Abhay Kumar http://opensynapse.net








