Hi James,
In the context of SDMX 2.0, Constraints were only part of the RegistryInterface messages and not the Structure messages. Thus, there was no direct access to the Constraints through the Dataflow structure. Moreover, in terms of SDMX messages, two different messages were required in order to acquire this information.
In the context of SDMX 2.1, Constraints have become maintainable artefacts and can be included in an SDMX structure message, thus the referencing mechanism should allow for having both Dataflows and their Constraints within a single SDMX message.
Unfortunately, I do not know how OpenSDMX deals with this issue. What I know is that Eurostat's SDMX Registry deals with it programmatically and stores this relation in the database. When it comes to the presentation of a Dataflow including its Constraints (in the GUI of the SDMX Registry), the application has to perform two calls to the Registry Web Service (one for the Dataflow and one for the corresponding Constraint(s)) in order to combine them into a single set of information.
I hope I have shed some light.
Kind regards,
Stratos