SCB Web

The bundle SCB Web allows access to SCB graphs over HTTP with JAX-RS.

Upload Triples with a POST Request

To upload triples with a POST request, a client can use the URI path "/graph" and place the triples and other required information into the body as multipart/form-data which consists of
  • a file labeled "graph" containing the triples and specifying the mime-type.
  • a text field labeled "name" specifying the name of the MGraph. If an MGraph with this name does not already exist, a new one will be created.
  • an optional text field labeled "mode" specifying the mode. If the mode is "replace", existing triples of the MGraph will be deleted before new triples are added. If the mode is not specified or is "append", posted triples will be added to the MGraph.
  • an optional text field labeled "redirection" specifying an URI which the client should be redirected to in case of success.
A response with the status code BAD REQUEST (400) is returned if the required data are missing. If the request can be satisfied, one of the following responses is returned:
  • SEE OTHER (303), if redirection is specified.
  • CREATED (201), if redirection is not specified and a new MGraph is created.
  • NO CONTENT (204), if redirection is not specified and no new MGraph is created.

For your convenience you may access a web-form at the Uri-Path /graph/upload-form.

Backup of Triple Collections

The platform allows the current user to download all triple collections that he has access to through the URI path "/admin/backup/download". The resulted file is a compressed archive in zip format. All triple collections in this file are serialized in N-Triples format. Furthermore, a file called "triplecollections.nt" is contained in backup.zip, which describes the mapping of file names to triple collection names.