A simple ruby interface for DBpedia Spotlight
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/dbpedia
.gitignore
Gemfile
README.md
Rakefile
dbpedia-spotlight.gemspec

README.md

DBpedia::Spotlight

A simple ruby inteface for [DBpedia Spotlight](https://github.com/dbpedia-spotlight/dbpedia-spotlight">DBpedia Spotlight)

Installation

Add this line to your application's Gemfile:

gem 'dbpedia-spotlight'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dbpedia-spotlight

Usage

#!/usr/bin/env ruby
require 'dbpedia/spotlight'

spotlight = DBpedia::Spotlight("http://spotlight.dbpedia.org/rest/")
entities = spotlight.annotate("President Obama ....")
entities.each do |entity|
  puts entity.inspect
end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Authors