trompamusic / trompace-client

A python library to read from and write to the Trompa CE
Apache License 2.0
1 stars 0 forks source link

Modelling Issue: Audio/Media Objects vs Digital Document #60

Open aggelosgkiokas opened 3 years ago

aggelosgkiokas commented 3 years ago

In the DigitalDocument the source of the object (e.g. the XML file) is on the "source" field, while on the AudioObject (or MediaObject) is on the "contentURL".

There is a missmatch issue

alastair commented 3 years ago

The digital document methods were written before we finalised the schema. We'll work on improving the documentation that describes how to add DigitalDocuments.

alastair commented 3 years ago

specifically for DigitalDocuments created by an algorithm (and uploaded somewhere), we should set both the url and source field to the same value (source is required, so we need to set it to something). we should set encodingFormat and format to the same value (the mimetype of the item pointed to by url/source)