Execute SPARQL query (GET)
Executes a SPARQL query against the GC-Core knowledge graph using the SPARQL 1.1 Protocol GET form. Prefer POST for queries longer than approximately 2 KB to stay under URL length limits.
query Parameters
querystring · requiredURL-encoded SPARQL query string.
default-graph-uristring[] · style: form · explode: trueOptional default graph IRI(s). Repeat the parameter to supply multiple values.
named-graph-uristring[] · style: form · explode: trueOptional named graph IRI(s). Repeat the parameter to supply multiple values.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.Acceptstring · enumDesired response format for SPARQL results.
Enum values:application/sparql-results+jsonapplication/sparql-results+xmltext/csvtext/turtle
Responses
SPARQL results
headobjectresultsobject
Execute SPARQL query
Executes a SPARQL query against the GC-Core knowledge graph. Send the query as the request body with Content-Type: application/sparql-query. Recommended for any query that may exceed URL length limits.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.Acceptstring · enumDesired response format for SPARQL results.
Enum values:application/sparql-results+jsonapplication/sparql-results+xmltext/csvtext/turtle
Responses
SPARQL results
headobjectresultsobject
