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
-
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
-
query(required): string
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 TopResponse
Supported Media Types
- application/sparql-results+xml
- application/sparql-results+json
- application/n-triples
200 Response
Successful query execution.
Root Schema : sparql
Type:
Show Source
object
-
boolean: boolean
Example:
true
-
head: object
head
-
results: object
results
-
xmlns: string
Example:
http://www.w3.org/2005/sparql-results#
Nested Schema : binding
Type:
Show Source
object
-
bnode: string
Example:
bn1
-
literal: object
literal
-
name: string
Example:
s
-
uri: string
Example:
http://www.example.oracle.com/john
Nested Schema : literal
Type:
Show Source
object
-
datatype: string
Example:
http://www.w3.org/2001/XMLSchema#integer
-
xml:lang: string
Example:
en
Example:
John