A small utility to lookup URIs in DBpeida
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with moustaki:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


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"]