A small utility to lookup URIs in DBpeida
Ruby
Pull request Compare This branch is 5 commits ahead of moustaki:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
README
dbpediafinder.gemspec

README

dbpediafinder by Yves Raimond

A very small Ruby gems for finding URIs in DBpedia, given a label and an optional disambiguation string.

Works in two steps:

 1) Uses Google AJAX API to find out possible candidates
 2) Uses DBpedia SPARQL end-point to validate one of those candidates

Example use:

  require 'rubygems'
  require 'dbpediafinder'

  finder = DbpediaFinder::Finder.new
  finder.find('j.s. bach', 'composer')
=> ["Johann Sebastian Bach", "http://dbpedia.org/resource/Johann_Sebastian_Bach"]

  finder.find('david aaronovitch', 'bbc radio presenter')
=> ["David Aaronovitch", "http://dbpedia.org/resource/David_Aaronovitch"]

  finder.find('isle of wight')
=> ["Isle of Wight", "http://dbpedia.org/resource/Isle_of_Wight"]