Difference between revisions of " Nano Sparql Server"

From Blazegraph
Jump to: navigation, search
(Initial pass on an REST API page.)
 
Line 1: Line 1:
= DELETE =
+
= Running the embedded NanoSparqlServer =
== DELETE with Query ==
+
= Deploying a SPARQL servlet endpoint =
 +
= HTTP METHODS =
 +
== Query ==
 +
=== GET or POST ===
 +
<pre>
 +
GET [/namespace/NAMESPACE] ?query=...
 +
 
 +
-OR-
 +
 
 +
POST [/namespace/NAMESPACE] ?query=...
 +
</pre>
 +
 
 +
The response body is the result of the query.
 +
 
 +
== Update ==
 +
 
 +
 
 +
 
 +
=== DELETE with Query ===
 
<pre>
 
<pre>
 
DELETE [/namespace/NAMESPACE] ?query=...
 
DELETE [/namespace/NAMESPACE] ?query=...
Line 20: Line 38:
  
 
BODY contains RDF statements according to the specified Content-Type. Statements parsed from the BODY are deleted from the addressed namespace.
 
BODY contains RDF statements according to the specified Content-Type. Statements parsed from the BODY are deleted from the addressed namespace.
 +
 +
== Status ==
 +
<pre>
 +
GET /status
 +
</pre>
 +
 +
Various information about the SPARQL end point.  Options include:
 +
 +
<pre>
 +
?showQueries=true|false
 +
?showRunningQueries=true|false
 +
?showNamespaces=true|false
 +
?showKBInfo=true|false
 +
</pre>

Revision as of 16:44, 7 April 2011

Running the embedded NanoSparqlServer

Deploying a SPARQL servlet endpoint

HTTP METHODS

Query

GET or POST

GET [/namespace/NAMESPACE] ?query=...

-OR-

POST [/namespace/NAMESPACE] ?query=...

The response body is the result of the query.

Update

DELETE with Query

DELETE [/namespace/NAMESPACE] ?query=...

Where query is a CONSTRUCT or DESCRIBE query. Statements are materialized using the query from the addressed namespace are deleted from that namespace.

Note: To avoid materializing the statements, this runs the query against the last commit time. This is done while it is holding the unisolated connection which prevents concurrent modifications. Therefore the entire QUERY + DELETE operation is ACID.

DELETE with Body

POST [/namespace/NAMESPACE]
 ...
Content-Type
 ...

BODY

BODY contains RDF statements according to the specified Content-Type. Statements parsed from the BODY are deleted from the addressed namespace.

Status

GET /status

Various information about the SPARQL end point. Options include:

?showQueries=true|false
?showRunningQueries=true|false
?showNamespaces=true|false
?showKBInfo=true|false