django-daiquiri / daiquiri

A framework for the publication of scientific databases
https://escience.aip.de/daiquiri
Apache License 2.0
26 stars 8 forks source link

IMPROVEMENT: missing relation between datlink entries and releases #210

Open agy-why opened 1 year ago

agy-why commented 1 year ago

There is no clear way to relate a datalink entry with a given release.

However this relation does exists. Each datalink table (non-generated ones) leaves in a schema (representing the release).

A solution would be to propagate the schema information down to OAI via the oai datalink adapter: https://github.com/django-daiquiri/daiquiri/blob/master/daiquiri/oai/adapter.py#L206

The schema information is stored in the table name. From this one could extract the published and updated dates but also the IsPartOf entry without the necessity of a specific semantic from datalink.

This would only require to put the datalink table in the proper schema (representing the release).

agy-why commented 1 year ago

related to #209

agy-why commented 1 year ago

To get updated and published date for an object with DOI, read published and updated date from metadata of the corresponding datalink table (the one holding the doi).