POST /sparql

dbpedia.org:dbpedia-sparql-api

Summary: Execute SPARQL query (POST)
Operation ID: executeSparqlQueryPost
Auth: none

Execute SPARQL queries using HTTP POST method. Use this when your queries are too long to fit in a URL (typically over 2000 characters) or when you want to avoid having the query appear in server logs. The query is sent in the request body as application/x-www-form-urlencoded data. Supports all the same query types as the GET endpoint. Essential for complex queries with multiple UNION clauses, complex FILTERs, or large VALUES blocks.

Original spec description

Execute a SPARQL query using POST method. Useful for very long queries that exceed URL length limits.

Usage Tips

- Send query in POST body as: query=SELECT%20*%20WHERE%20%7B%3Fs%20a%20dbo%3APerson%7D - Use POST for queries longer than 2000 characters to avoid URL length limits - The Content-Type header should be application/x-www-form-urlencoded - Same response formats supported as GET /sparql

Examples (1)

TitleTypeURLAction
Execute SPARQL SELECT query via POST doc_extracted http://dbpedia.org/sparql

No probe data for this endpoint yet.