RubyGems Navigation menu

calais 0.0.3

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.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 0.0.13 - April 20, 2012 (22.5 KB)
  2. 0.0.12 - April 20, 2012 (22.5 KB)
  3. 0.0.11 - August 03, 2010 (12.5 KB)
  4. 0.0.10 - July 21, 2010 (12.0 KB)
  5. 0.0.9 - April 14, 2010 (12.0 KB)
  6. 0.0.3 - February 07, 2008* (14.0 KB)
顯示所有版本(共 12)

Runtime 相依性套件 (1):

hoe >= 1.5.0

擁有者:

作者:

  • Abhay Kumar

SHA 256 checksum:

7b58ac699ef214d8f68f6a3cc8dc2530a11672ae61632537cfe298c677801177

總下載次數 68,550

這個版本 4,388

License:

Ruby 版本需求:

相關連結: