HTTP Example:GET /{BASE}/export/download?context=…&format=…
Accept: …
| API Example: ExportWebService.downloadData({'context': , 'format': , 'Accept': }); |
Download the triple data contained in the (optional) context (named graph) in the format specified by the Accept
header of the request. If the context parameter is not given, all triples contained in this Apache Marmotta installation will
be written to the response. - Output:
- javax.ws.rs.core.Response - the HTTP response
- Query parameters:
- context - URI of the named graph to export; if null, all named graphs will be exported
- format - MIME type for return format, overrides accept header
- Header parameters:
- Accept - list of MIME types the client accepts
- HTTP return codes:
- 200 - in case the triples were written to the output stream correctly
- 404 - in case the context passed as argument could not be found
- 406 - in case the Apache Marmotta could not find any matching serializer for the MIME types in the Accept header
|