Execute a SPARQL query or update

post

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

Executes a SPARQL update or 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 or RDF Developer 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
  • The name of the model to evaluate the WHERE portion of a SPARQL update against. The default is the value of the modelName path parameter.
    Example:
    M2
  • The options string to use when evaluating the WHERE portion of a SPARQL update.
    Example:
    ALLOW_DUP=T
  • 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 IRI identifying a named graph that should be included in the DEFAULT graph of the update 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 update dataset.
    Example:
    http%3A%2F%2Fwww.example.oracle.com%2Fg1
Supported Media Types
Request Body - application/sparql-update ()
Root Schema : schema
Type: string
An unencoded SPARQL update string
Request Body - application/sparql-query ()
Root Schema : schema
Type: string
An unencoded SPARQL query string
Request Body - application/x-www-form-urlencoded ()
Root Schema : schema
Type: string
A POST request with URL-encoded, ampersand-separated query parameters for SPARQL query (exactly one query parameter, zero or more named-graph-uri parameters, and zero or more default-graph-uri parameters) or SPARQL update (exactly one update parameter, zero or more using-graph-uri parameters, and zero or more using-named-graph-uri parameters)
Back to Top

Response

Supported Media Types

200 Response

Successful query or update 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