Export

All Annotations in an Annotation Collection can be exported from the database via the following endpoint:

GET /export/<collection_id>/

The Annotations are streamed back to the client as a JSON list. This endpoint is intended for programmatic use only. It is not recommended to access it via a web browser as, depending on the number of Annotations to be exported, it is likely the browser would run out of memory before the request finishes. However, you can add the URL parameter zip=1 to download the Annotations as a ZIP file.

Curl example

curl https://example.org/annotations/my-container/ > out.json

Python pandas example

import pandas

iri = 'https://example.org/annotations/my-container/'
df = pandas.read_json(iri, orient='records')