How I do validate UPIA Models in RDM?
When developing in RSA natively, I can use the RSA model validation to check whether my UPIA models are well-formed UPIA-wise. In RDM, I have tried running validations on my models and nothing comes up. The appropriate domains have been associated with the project area. The help seems focused on how I would write additional constraints, but doesn't explain how validation against the base domains works. Unless it's supposed to be working and we have something broken. Any thoughts? |
One answer
Although you can show the results of validation using the Validation view in Rational Software Architect, not all constraints from Rational Software Architect are available when using the web client. This is because not all of the UML constraints can be properly mapped to the constraints for RDF models due to fundamental differences between the underlying model storage format (ECore vs RDF).
Custom constraints are specified by defining range constraints (easy), regular expression constraints (easy), and SPARQL constraints (advanced). In addition to what is available in the help documentation, for more information on writing constrants, please see:
Comments
Ricky Fielding
commented Oct 10 '13, 5:53 p.m.
Thanks for the quick response. You say that not all RSA constraints are available using the web client. Do you mean to differentiate between the Thick Client and the Web Client? It looks to me like the validation icon is grayed out and unavailable. My models don't meet all of the UPIA constraints, and I've never seen a message or error saying I had not met a constraint. When you say, "not all of the UML constraints can be properly mapped to the constraints for RDF models." Do you know anything specifcally about the UPIA Domain? I don't suppose there's any documentation specifically on what constraints may or may not have made it across from ECORE to RDF, is there? Also, I looked into constraints in the UPIA Ontology on our DM. For example, the capability realization model has a "RealizationRule" constraint (must realize a usage). It's set to batch mode. It seems like it should work, but when I run the validation, I get no violations (though I should). Would a constraint still show up in the ontology model and yet not be available to RDF projects? Ricky
W Diu
commented Oct 15 '13, 11:19 a.m.
Yes, there is a difference between validation in the Rational Software Architect Eclipse-based application and the web client. I seem to recall being able to validate model elements using the Eclipse-based application and seeing the expected Rational Software Architect validation results, although it's possible this functionality has been changed.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.