I want to be able to run the BBC SPARQL examples given on dbtune.org blog but the endpoint that they provide is down. I have tried using http://dbpedia.org/sparql but the query always returns 0 results. The example I am trying to test is (Should return all programmes related to James Bond):

PREFIX po: <http://purl.org/ontology/po/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?uri ?label
   WHERE {
     ?uri po:category 
       <http://www.bbc.co.uk/programmes/people/bmFtZS9ib25kLCBqYW1lcyAobm8gcXVhbGlmaWVyKQ#person> ; rdfs:label ?label

Note that when I run the query in dbpedia.org/sparql I set the Default Graph URI to http://www.bbc.co.uk/programmes/

asked 10 Nov '10, 05:00

Darren's gravatar image

accept rate: 0%

edited 10 Nov '10, 12:50

Rob%20Vesse's gravatar image

Rob Vesse ♦

Update: I have found an endpoint provided by BBC that works (http://api.talis.com/stores/bbc-backstage/services/sparql) but still am wondering how to run this query from somewhere else. Thinking basically I need to put the graph in a FROM clause?

(10 Nov '10, 05:10) Darren Darren's gravatar image

Yes the Virtuoso endpoint no longer seems to have the BBC data

(10 Nov '10, 08:53) Rob Vesse ♦ Rob%20Vesse's gravatar image

In order to run the Query from somewhere else you'd need to have access to a client program or web form that passes the Query to an arbitrary remote endpoint.

Some example include (there are others out there if you search around):

You'd have to read the documentation for a specific client to find out how to configure a remote endpoint.

For my client you'd go File > New Generic Store Manager' and then either selectSPARQL Endpoint` and enter the URL of the endpoint or as the store you're interested in is a Talis Store you can select 'Talis' and enter bbc-backstage as the Store.

permanent link

answered 10 Nov '10, 08:57

Rob%20Vesse's gravatar image

Rob Vesse ♦
accept rate: 29%

edited 10 Nov '10, 12:49

SPARQL 1.1 has a SERVICE keyword that is useful for defining queries that get data from one or more SPARQL endpoints. Jena ARQ has this already. Also see How to: get data from SPARQL endpoints and save data in a spreadsheet, which provides some examples of using SPARQL SERVICE queries.

See Querying Multiple Repositories for an example.

permanent link

answered 10 Nov '10, 21:54

scotthenninger's gravatar image

scotthenninger ♦
accept rate: 17%

edited 11 Nov '10, 17:32

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 10 Nov '10, 05:00

question was seen: 2,735 times

last updated: 11 Nov '10, 17:32