Onedata API Reference

REST API references for Onezone, Oneprovider, and Onepanel.

Get file rdf metadata

GET /data/{id}/metadata/rdf

This method returns the rdf metadata for a file specified by $FILE_ID.

Example cURL requests

Get complete RDF metadata document for file

curl -H "X-Auth-Token: $TOKEN" -X GET \
https://$HOST/api/v3/oneprovider/data/$FILE_ID/metadata/rdf

<RDF><homepage>https://www.onedata.org</homepage></RDF>

Path parameters

Parameter Type & Description
id required
string

Id of the file.

Request Examples

Shell
oneprovider-rest-cli getRdfMetadata id=$FILE_ID

Responses

application/json
200

Rdf metadata returned successfully.

No schema provided.

Example

application/json
"<RDF><homepage>https://www.onedata.org</homepage></RDF>"
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."
}