4.11.2 "Direction" of Data-Object References
|For Standard||CTA v2.1|
In RESQML, the feature/interpretation/representation/properties knowledge hierarchy creates some special considerations for which data object specifies (or "holds") the reference. During the reservoir lifecycle, a feature can have many interpretations, an interpretation can have many representations, and a representation may have many properties. However, an interpretation cannot "know" how many future representations will be created, or their UUIDs. In contrast, when a user creates a representation, the user must know and specify which interpretation it "represents." For this reason, the child data object must specify (or hold) the relationship.
Here are the general rules on direction in data-object references:
- In a one-to-one parent-child relationship, the data-object reference is from the parent to the child.
- In a one-to-many parent-child relationship, the data-object reference is from the child to the parent.
- isbasedOn, where one data object is based on another data object defined at the same level. The data object reference goes from one class to another to express that the source object which is BasedOn a target object needed to collect all the information gathered by the target object.