gbv / jskos-server

Web service to access JSKOS data
https://coli-conc.gbv.de/api/
MIT License
6 stars 4 forks source link

Make sure `fromScheme` and `toScheme` for mappings are set #202

Closed stefandesu closed 1 year ago

stefandesu commented 1 year ago

Both JSKOS Server and Cocoda require fields fromScheme and toScheme for mappings. However, the JSKOS spec defines them as optional, meaning that so far, mappings without those fields could be imported before.

We should:

  1. Automatically add the fields from known data (assignment to a concordance or inScheme field of a concept).
  2. Reject mappings without either of those fields (if they could also not be added automatically).