W3C home > Mailing lists > Public > public-lod@w3.org > March 2010

Re: RESTful API for accessing DBpedia

From: Bob DuCharme <bob@snee.com>
Date: Thu, 04 Mar 2010 15:52:47 -0500
Message-ID: <4B901D9F.8040205@snee.com>
To: Monika Solanki <m.solanki@mcs.le.ac.uk>
CC: public-lod@w3.org
Monika Solanki wrote:

>I am looking for a REST based API for programmatically accessing
>DBpedia's SPARQL end point. Any pointers much appreciated.

A SPARQL endpoint is by its nature already a REST-based API. You send it 
HTTP GETs, and it returns data laid out in a specific protocol 

To create the URL for the GET for DBpedia, you can escape the SPARQL 
query (most programming languages have a function for this, but 
http://www.xs4all.nl/~jlpoutre/BoT/Javascript/Utils/endecode.html is 
nice for experiments) and append it to the following: 

For example, doing this with this query

  SELECT ?p ?o WHERE { <http://dbpedia.org/resource/IBM> ?p ?o }

gets you this URL, which you can paste into your browser:


Virtuoso provides the dbpedia endpoint, so you'll see more doc on this 
at http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSSparqlProtocol.

Or am I misunderstanding what you're looking for?

Received on Thursday, 4 March 2010 20:53:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:20:57 UTC