Closed mereolog closed 1 year ago
If we have decided that 'Amlodipine' is an instance of substance, then it makes sense to require a name.
By the definition of substance is a subclass of matter, Amlodipine is can only be interpreted as the universal set of all matter with a defined composition, if we want to avoid punning.
I am still thinking that it is likely to be broken. If we make Amlodipine a subclass of Substance, then requiring a name is wrong.
This substance in this bottle is an acid. => true, because acid is a subclass This substance in this bottle is Amlodipine => true if Amlodipine is a class, false if instance.
I require some Amlodipine for treatment => ok, if subclass, incorrect otherwise I require matter that is some subset of Amlodipine for treatment => ok, if instance, but very strange
Have we made a decision on this topic? If not we should wait with this constraint.
At the moment amlodipine is an instance of substance - and my remark applies to such kind of modelling.
A second-thought is that perhaps we should have a min 0 constraint instead:
hasName min 0 SubstanceName.
@merelog, @tw-osthus To resolve this, Thomas and I agreed to the following:
And then hopefully that is enough. There is no hasName some values from ... constraint on substance saying that it has to have a name at the moment, but there is discussion of this in the Annex L to ISO 19844 document, so I'm happy to add that.
The current ontology of substances allows for nameless substances, i.e., it does not require that an instance of Substance must have a name.
As a result, one can add the following triple to the IDMP ontology and the ontology will remain consistent:
In a nutshell the above restriction defines the class of all resources without names, so when we add it, https://gsrs.ncats.nih.gov/api/v1/substances/e67c9314-1e17-4876-a745-47f27c2169e6 will be required to have no name.
IMHO this shows the need for the following restriction added to Substance:
hasName some SubstanceName
.Having such constraints in place may help with defining informative SHACL shapes.