← back to code snippets

Making a SPARQL Query

Posted on October 22nd, 2013

To make a SPARQL Query, you can use

These are both generic endpoints where you can run SPARQL queries. Each endpoint provides a form where we can input a query, and the results are returned (as HTML).


Using sparql.org, paste this into the large box:

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name
?person foaf:name ?name .

and this into the Target graph

URI: http://dig.csail.mit.edu/2008/webdav/timbl/foaf.rdf