get https://proxy.opendatagermany.io/api/ts/v1/kg/sparql/
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
- application/sparql-results+json SPARQL Query Results JSON Format
- application/sparql-results+xml - SPARQL Query Results XML Format
- application/x-binary-rdf-results-table - binary RDF results table format
CONSTRUCT Queries
- application/ld+json JSON-LD
- application/rdf+xml - RDF/XML
- text/plain - N-Triples
- text/turtle - Turtle
- text/rdf+n3 - N3
- application/trix - TriX
- application/x-trig - TriG
- application/x-binary-rdf - Sesame Binary
ASK Queries
- application/sparql-results+json - SPARQL Query Results JSON Format
- application/sparql-results+xml - SPARQL Query Results XML Format
- text/boolean