Legacy Issue Number: 15853
Source: Benchmark Consulting ( Alain Picard)
Source: OMG AB
This issue deals with the fact that XQuery is not defined and it’s mapping to XMI is also not well defined.
The architecture board as recommended that we clarify the mapping of XQuery to XMI and identify the versions in use.
Summary of change:
In section 3, “Normative References”, add the following:
o OCL 2.2 Specification
o XQuery 1.0, XPath 2.0 (W3C Recommendation)
In section 7, “SMM” at the end of the section add the following:
In a number of places, SMM supports querying or constraining data of interest by specifying some queries. Such queries can be expressed either with OCL version 2.2 as published by the OMG, or with XQuery 1.0 as published by the W3C. For XQuery, SMM uses a variant of XPath 2.0 (part of XQuery 1.0) and maps it to XMI using the following rules:
XPath uses a path expression where each path is a series of steps separated by forward slashes .
The steps are evaluated from left to right, and generally decend the model's tree as they do so
Each step identifies tree nodes by their classifier name and attributes are specified, just as in XPath with a leading @.
SMM implementations are encouraged to implement OCL and XQuery by providing a wrapper that exposes their models to 3rd party query engines that implement all of the complexities of those languages.
Reported: SMM 1.0 — Wed, 1 Dec 2010 05:00 GMT
Disposition: Resolved — SMM 1.1
Resolution given in issue statement
Updated: Wed, 8 Jul 2015 11:44 GMT