GET

dbpedia.org:dbpedia-sparql-api

Summary: Execute SPARQL query
Operation ID: executeSparqlQuery
Auth: none

Execute SPARQL queries against the DBpedia knowledge graph via the root endpoint. This is the primary way to extract structured data from Wikipedia articles. The endpoint supports SELECT queries for tabular data, ASK for boolean results, DESCRIBE for resource descriptions, and CONSTRUCT for building new RDF graphs. Results are returned in SPARQL JSON format by default. Use this when you need to find specific facts across DBpedia's millions of entities - for example, finding all scientists born in a particular city, or retrieving labels and abstracts for a specific resource. The query parameter is URL-encoded and required.

Original spec description

Execute a SPARQL query against the DBpedia knowledge graph. Supports SELECT, ASK, DESCRIBE, and CONSTRUCT queries. Returns results in various formats including JSON, XML, CSV, and Turtle.

Usage Tips

- Always URL-encode your SPARQL query before sending - Use FILTER with langMatches() to get results in specific languages (e.g., FILTER (langMatches(lang(?label), "EN"))) - Include LIMIT clauses for large result sets to avoid timeouts - The default-graph-uri defaults to http://dbpedia.org if not specified

Parameters (3)

default-graph-uri (string, query, optional)

Default graph URI for the query

named-graph-uri (string, query, optional)

Named graph URI for the query

query (string, query, required)

SPARQL query string to execute

Examples (5)

TitleTypeURLAction
SELECT query for resource details curl http://dbpedia.org/sparql?query=SELECT%20%3Flabel%20%3Fabstract%20WHERE%20%7B%20%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FBarack_Obama%3E%20rdfs%3Alabel%20%3Flabel%20%3B%20dbo%3Aabstract%20%3Fabstract%20.%20FILTER%20%28langMatches%28lang%28%3Flabel%29%2C%20%22en%22%29%20%26%26%20langMatches%28lang%28%3Fabstract%29%2C%20%22en%22%29%29%20%7D&format=application%2Fsparql-results%2Bjson
ASK query to verify resource type curl http://dbpedia.org/sparql?query=ASK%20WHERE%20%7B%20%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FPython_%28programming_language%29%3E%20a%20dbo%3AProgrammingLanguage%20%7D&format=application%2Fsparql-results%2Bjson
DESCRIBE query for resource metadata curl http://dbpedia.org/sparql?query=DESCRIBE%20%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FAlbert_Einstein%3E&format=text%2Fturtle
Execute SPARQL query openapi-spec https://dbpedia.org/sparql/?query=SELECT * WHERE {?s a ?o} LIMIT 10
Execute SPARQL query probe-gate https://dbpedia.org/sparql/?query=SELECT+%2A+WHERE+%7B%3Fs+a+%3Fo%7D+LIMIT+10

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-03-23 10:37:10.968270 200 215ms
2026-03-23 10:33:31.923519 200 104ms
2026-03-23 10:13:27.642566 200 138ms
2026-03-23 09:48:58.208269 200 758ms
2026-03-23 09:13:35.215376 200 91ms

Response Changes

WhenOldNew
2026-03-23 09:48:58.208269 73821f82405e 81b79aca85cf
2026-03-23 10:13:27.642566 81b79aca85cf f7d6c56fd9fd
2026-03-23 10:33:31.923519 f7d6c56fd9fd 73821f82405e
2026-03-23 10:37:10.968270 73821f82405e d4336fae2684