Execute a saved query by name

The endpoint triggers the execution of a registered named query based on its name.
Optional we support parameterized queries.

Parameterized queries

A parameterized query contains placeholder variables in the form of $VARNAME which can be replaced using the query parameters in the HTTP GET call

Example

Given the query with name test which returns the first 10 instances of a given type:

PREFIX 
SELECT ?id 
WHERE{ 
  ?id a schema:$TYPE .
} LIMIT 10

A parameterized call for all instnaces of type Event would be GET /ts/v1/kg/sparql/test?type=Event

Accepted result formats

The endpoint supports most SPARQL 1.1. Mime-Types for the supported SELECT, CONSTRUCT and ASK queries (see SPARQL1.1 Protocol 2.1.6).

SELECT Queries

CONSTRUCT Queries

ASK Queries

Language
Click Try It! to start a request and see the response here!