FAIRmat-NFDI / AreaA-data_modeling_and_schemas

The ELN custom schemas from synthesis experiments
https://fairmat-nfdi.github.io/AreaA-Documentation/
10 stars 6 forks source link

ConCat Schemas for Supplier & Chemical #84

Closed PeterKraus closed 7 months ago

PeterKraus commented 7 months ago

Hello all, this is a follow-up from #81 and a few of the questions I had on slack today. I think I got the two main classes to pretty much where I want them. There are a few outstanding issues, e.g. how to reference the Supplier from the Chemical, but I guess that will go away once I convert those to python files and deploy them on my Oasis.

Supplier

supplier_v1

I think this will be able to get me quite far. The only pet-peeve I have is that I didn't figure out how to hide the "person selector" in the contact_person field. This is a consequence of using an Author, and I could in principle just roll-out my own Section. Other than that, it's pretty much there.

Chemical

chemical_v1 I think the most offending issue here is how the link to the supplier is created and shown. Basically, it forces me to search for other files, then select the correct supplier (Crystal GmbH (./data)), but it's shown as the mainfile in the UI. I guess a better linking is in the works?

I wanted the delivery_date (which now that I think about it should be manufacture_date) to be just the date, but when I used DateEditQuantity (as shown here instead of the DateTimeEditQuantity the schema parsing broke.

The link to PubChem seems to work quite well. I've allowed the editing of several fields, and kept some properties visible to indicate if the name or pub_chem_cid or inchi_key get resolved properly. It would be ace if there was a way to combine searching of the CAS as well as PubChem databases, as at the moment I think we have to select only one. I'll have to add the SubstanceIdentifiers section again, so that the elemental_composition gets populated and I can search for these Chemicals using the periodic table widget.

Thanks a lot for help for now!

aalbino2 commented 7 months ago

Hello Peter,

looks very nice, I'm glad you pushed some schemas here.

Some comments on the issues: