Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A small utility to lookup URIs in DBpeida
branch: master

This branch is 5 commits ahead of moustaki:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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"]
Something went wrong with that request. Please try again.