[sdw] How should we handle associations to specialized Procedure classes? (#1409)

alexrobin has just created a new issue for https://github.com/w3c/sdw:

== How should we handle associations to specialized Procedure classes? ==
More specific procedure types are introduced by OMS: `SamplingProcedure`, `PreparationProcedure` and `ObservingProcedure`. I also went ahead and add `ActuationProcedure` for consistency.

There are no problems induced by adding the new classes per se. However, there are existing relationships/properties in many places that currently target the generic `Procedure` class while OMS uses the specialized class instead (e.g. an `Observation` or an `Observer` expects an `ObservingProcedure` and not any `Procedure`).

In PR #1042 I made the choice of reinforcing the constraints on the existing properties to reflect this, but this is a breaking change compared to the existing version.

So we may prefer to keep the existing looser constraint, and create a separate sub-property with a stricter constraint (e.g. `usedObservingProcedure` as a sub-property of `usedProcedure` could be used on `Observation` and `Observer` instead of the existing, more generic, `usedProcedure` property, etc.).

Please view or discuss this issue at https://github.com/w3c/sdw/issues/1409 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 4 May 2023 15:29:45 UTC