← 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).

TRY IT

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

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

and this into the Target graph

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