Onedata API Reference

REST API references for Onezone, Oneprovider, and Onepanel.

Get file rdf metadata (deprecated) Deprecated

GET /metadata/rdf/{path}

This enpoint is deprecated, please use this one.

This method returns the rdf metadata associated with specified file, directory or space.

Example cURL requests

Get complete RDF metadata document for File2.txt

curl -H "X-Auth-Token: $TOKEN" -X GET \
https://$HOST/api/v3/oneprovider/metadata/rdf/MySpace1/File2.txt

Path parameters

Parameter Type & Description
path required
string

File or directory path or space name (e.g. '/MySpace/testfiles/file1.txt')

Request Examples

Shell
oneprovider-rest-cli getFileRdfMetadata path='/MySpace/testfiles/file1.txt'

Responses

application/json
200

Rdf metadata returned successfully.

No schema provided.

400

Invalid request.

PropertyType & Description
error
string

Identifier representing internal error code.

error_description
string

Detailed error message.

Example

application/json
{
  "error": "invalid_token",
  "error_description": "Provided token could not be validated."
}
403

Forbidden request.

PropertyType & Description
error
string

Identifier representing internal error code.

error_description
string

Detailed error message.

Example

application/json
{
  "error": "invalid_token",
  "error_description": "Provided token could not be validated."
}
404

File not found.

PropertyType & Description
error
string

Identifier representing internal error code.

error_description
string

Detailed error message.

Example

application/json
{
  "error": "invalid_token",
  "error_description": "Provided token could not be validated."
}
500

Internal server error.

PropertyType & Description
error
string

Identifier representing internal error code.

error_description
string

Detailed error message.

Example

application/json
{
  "error": "invalid_token",
  "error_description": "Provided token could not be validated."
}