It's all about the answers!

Ask a question

How I do validate UPIA Models in RDM?


Ricky Fielding (38712) | asked Oct 10 '13, 1:44 p.m.

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



permanent link
W Diu (58026) | answered Oct 10 '13, 5:11 p.m.
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:
  • Design Management 4.0 Model Validation Part 1: http://www.youtube.com/watch?v=OtWH_r74v2M
  • Design Management 4.0 Model Validation Part 2: http://www.youtube.com/watch?v=k6ZUwxsbHxE
  • Design Management 4.0 Model Validation Part 3: http://www.youtube.com/watch?v=hCOZiyd9VCo
  • Design Management 4.0 M7 Model Validation Part 1: http://www.youtube.com/watch?v=PJOPndcmW8g
  • Design Management 4.0 M7 Model Validation Part 2: http://www.youtube.com/watch?v=58vOkUGD1mE

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.

Although I'm not familiar with constraints in the UPIA domain, as you point out, you can browse the constraints.  In addition to the UPIA constraints, if you navigate to the [System Defined] Domains project area, you can click on [System Defined] Domains and in the Model Constraints section, you can click on DM Domain Constraints to see some more general constraints.  Apart from examining the constraints, I'm not aware of any documentation on the available constraints.

If the constraint is not working, it is possible that it is not properly included in the defined domain.  Please go to the Domains project area, followed by Designs, Explorer, and locate your domain.  Is the constraint present in the Model Constraints section?

Your answer


Register or to post 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.