Translate SPARQL to SQL
post
/database/rdf/networks/{network_owner},{network_name}/models/{model_name}/sparql2sql/1.1
Returns the SQL translation for a SPARQL query. A client requires SQL Developer or RDF Developer role to invoke this servce.
Request
Path Parameters
-
model_name(required): string
The name of the RDF model.Example:
M1
-
network_name(required): string
The name of the RDF network.Example:
NET1
-
network_owner(required): string
The owner of the RDF network.Example:
RDFUSER
Query Parameters
-
default-graph-uri: string
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
-
named-graph-uri: string
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
-
options: string
A URL-encoded options string.Example:
ALLOW_DUP=T ALL_LINK_HASH
Supported Media Types
- application/sparql-query
- application/x-www-form-urlencoded
Root Schema : schema
Type:
string
An unencoded SPARQL query string
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)
Response
Supported Media Types
- text/plain
200 Response
Success
Root Schema : schema
Type:
string
The SQL translation of the submitted SPARQL query against the input RDF network and model.