labthings / python-labthings

Python implementation of LabThings, based on the Flask microframework
GNU General Public License v3.0
18 stars 2 forks source link

Additional Thing metadata #16

Open jtc42 opened 4 years ago

jtc42 commented 4 years ago

Mozilla Web Things framework allows for additional descriptions of Things, such as device types, using IoT ontology.

We should provide something similar. Ideally using an existing ontology....

ChasNelson1990 commented 4 years ago

So, what you're looking for here is some sort of existing ontology for: all lab equipment? or just imaging? What level of detail do we need? Happy to search for one/if I can't find one try and build one from an existing data source, there are a few projects out there for automatically building ontologies from documents.

ChasNelson1990 commented 4 years ago

Also, this relates to #8

jtc42 commented 4 years ago

So, what you're looking for here is some sort of existing ontology for: all lab equipment? or just imaging? What level of detail do we need? Happy to search for one/if I can't find one try and build one from an existing data source, there are a few projects out there for automatically building ontologies from documents.

So ideally I'd like some beautifully defined ontology for all scientific instrumentation. However, I realise this is completely infeasible. This is mostly an issue thread for discussion on sensible ways forward.

I think we need to be adopting whatever is closest to a common scientific ontology at some point, but I'm very open to suggestions.

Potentially useful starting point: https://jcheminf.biomedcentral.com/articles/10.1186/s13321-016-0168-9

ChasNelson1990 commented 4 years ago

So, SciData seems to be a level too abstract, right? It goes goes down to 'instrument' and all the granularity below that is lost?

And perhaps the OME-XML structure is a level less abstract than we need? And imaging specific... https://docs.openmicroscopy.org/ome-model/6.0.1/developers/model-overview.html

jtc42 commented 4 years ago

AH yeah okay should have been clear that I want to avoid anything thats specific to imaging. One of the first targets I have for demo labs is an automatic photonics lab (rotating polarisers, translation stages etc).

It might be that an existing framework doesn't exist, because it'd be inconceivably broad, in which case rather than strictly define an ontology, it might be a better idea to instead give guidelines on how to describe components in a parsable way?

This is a tricky one though...

ChasNelson1990 commented 4 years ago

Well....... if there's a corpus that we consider the key corpus for 'lab things' (no capitals) we could try automatic ontology extraction as a start... but I think you're right that it will be huge.

P.S. everything in your photonics lab I would also describe as imaging...

jtc42 commented 4 years ago

Well....... if there's a corpus that we consider the key corpus for 'lab things' (no capitals) we could try automatic ontology extraction as a start... but I think you're right that it will be huge.

P.S. everything in your photonics lab I would also describe as imaging...

I'll keep the issue open for feedback and we can just add suggestions as they come up.

Looking through the OME ontology, it hardly covers swathes of microscopy comprehensively, let alone photonics labs that don't obtain any images. I think you'd be hard pushed to describe counting photons as functions of polarisation optic positions using the OME ontology!

ChasNelson1990 commented 4 years ago

True, I don't think the OME data schema has ever really been complete... which may have something to do with why it's never really taken off.

ChasNelson1990 commented 4 years ago

I think perhaps focussing on clear guidelines would be the best solution.

jtc42 commented 4 years ago

Also my suspicion why this is not a rabbit hole to commit to.... It's such an impossibly huge job that yeah, I think clear guidelines and community discussion might be best.

Guidelines for things like describing units of measurement for properties even would go a long way to helping. Something to think about, but I'll try not to lose sleep over...

glyg commented 2 years ago

Hi, I don't know if you are aware of the NGFF initiative to re-define a file format standard for microscopy, but there are very similar discussion going on there. That might also interest you regarding issue #13 to efficiently move are reference possibly big numerical data.