Execute a SPARQL query

get

/database/rdf/networks/{network_owner},{network_name}/models/{model_name}/sparql/1.1

Executes a SPARQL query and returns the result in JSON format (application/sparql-results+json) or XML format (application/sparql-results+xml) for SPARQL SELECT and ASK queries, or N-Triples format (application/n-triples) for CONSTRUCT and DESCRIBE queries. A client requires SQL Developer, RDF Developer or RDF Reader role to invoke this servce.

Request

Path Parameters
Query Parameters
  • A URL-encoded IRI identifying a named graph that should be included in the DEFAULT graph of the query dataset.
    Example:
    http%3A%2F%2Fwww.example.oracle.com%2Fg1
  • A URL-encoded IRI identifying a named graph that should be included in the set of named graphs for the query dataset.
    Example:
    http%3A%2F%2Fwww.example.oracle.com%2Fg2
  • A URL-encoded options string.
    Example:
    ALLOW_DUP=T ALL_LINK_HASH
  • A URL-encoded SPARQL query string.
    Example:
    SELECT%20%2A%0AWHERE%20%7B%20%3Fs%20%3Fp%20%3Fo%20%7D%0AORDER%20BY%20%3Fs%20%3Fp%20%3Fo%0ALIMIT%2010

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Successful query execution.
Body ()
Root Schema : sparql
Type: object
Show Source
Nested Schema : head
Type: object
Show Source
Nested Schema : results
Type: object
Show Source
Nested Schema : variable
Type: object
Show Source
Nested Schema : result
Type: object
Show Source
Nested Schema : binding
Type: object
Show Source
Nested Schema : literal
Type: object
Show Source
Example:
John
Back to Top