GET /sparql

dbpedia.org:dbpedia-sparql-api

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

Execute SPARQL queries against DBpedia via the /sparql path. This is functionally equivalent to the root endpoint but uses an explicit /sparql path. Supports all SPARQL query types: SELECT, ASK, DESCRIBE, and CONSTRUCT. Returns SPARQL JSON results format. This endpoint is useful when you want to be explicit about the SPARQL endpoint location in your code. The format parameter allows requesting different response formats like application/sparql-results+json or text/csv.

Original spec description

Execute a SPARQL query against the DBpedia knowledge base. Supports SELECT, ASK, DESCRIBE, and CONSTRUCT query types.

Usage Tips

- Use the format parameter to request different output formats (json, csv, xml) - Set timeout parameter (in milliseconds) to prevent long-running queries from hanging - The named-graph-uri parameter allows querying specific named graphs within DBpedia - Content negotiation via Accept header also works: application/sparql-results+json

Parameters (5)

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

Default graph URI for the query

format (string, query, optional)

Response format. Defaults based on Accept header.

Constraints: {'enum': ['application/sparql-results+json', 'application/sparql-results+xml', 'text/csv', 'text/tab-separated-values', 'application/rdf+xml', 'text/turtle', 'application/n-triples', 'application/ld+json']}

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

Named graph URI for the query

query (string, query, required)

SPARQL query string (URL-encoded). Example: SELECT * WHERE { ?s a dbo:Politician } LIMIT 10

timeout (integer, query, optional, default: 30000)

Query timeout in milliseconds

Examples (1)

TitleTypeURLAction
Execute SPARQL query openapi-spec https://dbpedia.org/sparql?query=SELECT * WHERE { ?s a dbo:Politician } LIMIT 10&default-graph-uri=http://dbpedia.org

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-03-23 10:51:16.274921 200 98ms