mapping-commons / sssom-api

Apache License 2.0
7 stars 0 forks source link

Add `mapping_set_id` to JSON response #39

Open anitacaron opened 1 year ago

anitacaron commented 1 year ago

Do it the same way as in #34.

Make sure that the other field is already in JSON format.

Need to change this in the mapping_set:

{
      "object_source": "http://purl.obolibrary.org/obo/hp",
      "uuid": "0025bf7bc8d551c4b4f2c34d6e89d58f",
      "subject_source": "http://purl.obolibrary.org/obo/mp",
      "other": "PMID:32585259",
      "mapping_date": "2022-02-01",
      "comment": "KidsFirst; see ticket https://github.com/mgijax/mammalian-phenotype-ontology/issues/3497",
      ...
      "mappings": {
        "href": "http://localhost:8008/mapping_sets/0025bf7bc8d551c4b4f2c34d6e89d58f/mappings"
      }
    }
anitacaron commented 1 year ago

A possible solution, in case the field other has something:

anitacaron commented 1 year ago

After some meetings, it was decided not to change the SSSOM model. The solution is to have endpoints only for the UI; we can add any field important for the UI and one that is SSSOM conform.