Support for Closed World Assumption for type checking and queries is needed
-
Key: SYSML21-386
-
Status: open
-
Source: Aerospace Corporation ( Mr. Ryan Noguchi)
-
Summary:
The ontological underpinning of KerML (and therefore SysML v2) is based on the Open World Assumption. However, most system model practitioners and model users have an expectation that the Closed World Assumption applies to their system models. This manifests in (at least) two ways:
1) The common expectation is that types will be statically checked and enforced. E.g., if one provides an item of type X to a port that expects an input of type Y, it is not expected that this would be a semantically valid model unless X is a specialization of Y.
2) The common expectation is that queries will return results based only on what has been explicitly specified in the model. E.g., if one queries the model for all parts that have an attribute of type Z, it is not expected to return in the query's results parts that do not have attributes of type Z (or specializations of Z) explicitly specified. OWA leaves open the possibility that these parts may have such attributes that have not yet been specified, but users will almost never want these to be included in queries.Recommendations:
1. The specification should explicitly clarify the implications of the KerML ontological foundation on type checking and queries to model builders, model users, and tool vendors will have consistent understanding and expectations.
2. The specification should provide a standard means of enabling model builders and model users to specify that they want to impose Closed World Assumption semantics on type checking and queries. This may include distinguishing between warnings that are based on KerML OWA underpinnings and warnings that are not. Ideally, CWA should be the default.
3. Implications for the System Modeling API & Services specification should be considered, particularly as it relates to the interpretation of queries. Requiring CWA be applied to queries may be a setting that is more appropriate at the query level rather than at the model level.
4. It is possible that model builders or users may want strict type checking and OWA queries, or loose type checking and CWA queries, so it may be necessary to decouple settings for type checking and queries. -
Reported: SysML 2.0b2 — Sat, 18 Oct 2025 16:01 GMT
-
Updated: Sat, 18 Oct 2025 16:02 GMT