This file shows the common remote interaction with the RDF store.
How to submit SPARQL queries, SPARQL/Update and upload graph into RDF store.

This sample file suppose that the Apache httpd.conf has set the strix-db-handler to the (virtual) /strixdb location.

<Location /strixdb>
	SetHandler strix-db-handler
</Location>

 Some remarks:


connection test Use this command to test connection or to get the software version.


strixdb?graphs returns a HTML page with a table listing all graphs stored in the RDF store (default graph and named graphs).

strixdb?graphs&format=rdf Same command as below but in XML/RDF triples instead of HTML table.


How to get (download) a graph

To get a graph, use command ?graph=<desired URI> . It could be done with form (action="get") or
also with direct link (without form) as in this link : strixdb?graph=  (remark:  without given URI,
you will get the default graph of the store).
Allowed format are RDF/XML , Turtle or N-triples (not mandatory field, default format is XML).

Format:   


How to upload a graph

Next Form upload a graph without using SPARQL with application/x-www-form-urlencoded
Not to use with huge XML datas (use the upload from file solution).
Allowed format are RDF/XML , Turtle or N-triples (not mandatory field, default format is XML).

Graph URI:

Format:    

XML:



How to upload a graph (from file)

Next Form upload a graph without using SPARQL with multipart/form-data.
Allowed format are RDF/XML , Turtle or N-triples (not mandatory field, default format is XML).

Graph URI:

Format:   

File:


How to append triples to an RDF graph

Works as graph upload. You just have to replace upload keyword with append keyword.


SPARQL query



SPARQL query (CONSTRUCT)

SPARQL CONSTRUCT query return a graph. By default, the format of returned graph is RDF/XML. The other recognized formats (HTML content negotiation) are turtle and triples.
(see W3C SPARQL protocol).

For HTML forms without using <input type="file" ... it is not possible to change the accepted MIME types (they are specified by the browser). So, no content negotiation could be done. For this reason, we  add a request field format (not W3C SPARQL compliant) to specify the desired format of the graph.

Format:   



 SPARQL/Update

This example uses application/x-www-form-urlencoded field.



SPARQL/Update from a file

This SPARQL/update example uses  multipart/form-data.
Prefer using this instead previous for big updates.

File: