Notes on Tools
NIST XMI Validator Validation Criteria
The validator currently checks the following conformance criteria:
- UML/XMI anomalies: Many processors may function OK despite these
(including the Validator) but interoperability may be impaired:
- An object referenced was not found in the file. Details
- The XMI uses a URI the Validator cannot resolve Details
- An XMI href dereferences to a primitive type or element in a version of UML other than that of the model. Details
- The members of a Set are not unique. Details
- A property of the object doesn't specify a value where one is required. Details
- No class with the name specified exists in the metamodel. Details
- The class of the object does not define the property specified. Details
- The processor cannot infer the type implied. Details
- The value of a property violates the multiplicity constraint
of the property. Details
- The value of a property is incompatible with its declared type. Details
- The object to be extended by the stereotype, referenced by its xmi:id, could not be found. Details
- The object to be extended by the stereotype is not of a type that can be
extended by the stereotype. Details
- The same type of stereotype is applied multiply to the object. Details
- The file contains XMI elements from a stereotype inside the uml:Model XML element. Details
- Direct creation of an instance of an abstract class is implied. Details
- The evaluation of an OCL constraint against the object returned ocl:False. Details
- There was an error while executing OCL code. Details
- There is an error in the metamodel causing a type exception. Details
- There was an error while executing OCL that provides the value of a derived attribute. Details
- OCL code tried to evaluate a declared derived attribute for which derivation is absent. Details
- The file contains two or more XML elements with identical xmi:id. Details
- A PrimitiveType was expected; what was found is not that. Details
- A list of references specified by XMI encoding rule 2j uses
more than one space between references. Details
- The file serializes a default value. Details
- The file serializes a derived value. Details
- The file serializes values for the opposite of a property declared composite. Details
- A cycle exists in the uml:OwnedElement property of the reported elements. Details
- The xmi:type attribute was specified with an XML element that uses href. Details
- Major errors: It is unlikely that a processor will function when faced with these.
(The valiadator will report the error and stop.):
- An error that is not classified. See the error text for details.
- Either an XMI namespace was not provided or what was provided is not known to be associated with XMI.
- No uml:Model element can be found in the XMI file.
- XML errors.
- Validator Limitations: These are things that are not problems with the
exchange file, but rather current limitations of the validation tool. The
Validator sometimes sets properties in the model to an enumeration value
'TOOL-LIMITATION' to express the occurrence of the limitation. Instances of these
are reported too.
Additional notes about the Validator
Here are some things to keep in mind when using the Validator:
- Objects are represented as:
- < 'className' 'instanceName', id='someNumber'> if it is a NamedElement with a name;
- < 'className' <<'stereotypeName'>> 'instanceName', id='someNumber'>
if it is stereotyped object with a name;
- < 'className' [unnamed], id='someNumber'> if it is an unnamed NamedElement, and;
- < 'className' id='someNumber'> otherwise.
The 'id' has no meaning outside of the Validator. - Enumerations are represented as the enumeration value preceded by a '#'.
- Collections are represented by < Set|Bag|Sequence|OrderedSet of 'elementCount' 'type' >
- The value of a Collection is represented by ['value' , 'value'....].
- Unset values are represented by 'null'
- The errors are listed in an order suggested for their resolution
(resolve the earlier ones first). The reason we suggest this ordering
is that some of the earlier errors have repercusions (they produce subsequent errors).
There is little point in investigating a 'missing mandatory' value error,
for example, when the source of the error is reported more specifically
as use of an xmi:idref where the referent is not in the file.
- When the Model attempts to define a Set, but the members supplied
contain duplicates, the Validator reports the error and creates a Bag
with all the members. Using a Bag might have repercusions in later
processing, but removing the duplicates and creating a Set is
simplistic and can also lead to downstream problems. Note: The error
message, but not the Model, describes the object as a Set. The corresponding
Bag in the Model has an id one greater than the offending Set object
reported in the error message.
- Validator results are available for 30 minutes after the file is run.
After 30 minutes, the information associated with the run (information
attached to the session cookie) is garbage collected.
If 30 minutes seems too short, let me know.
Model Diff
The Model Diff capability is used to compar an uploaded user model of a MIWG test case
against a reference model of that test case. It reports where one of the two models
has an element that the other does not, and where values of properties of elements
differ.
Models Pre-loaded into the Validator
The models listed below are loaded into the Validator and can be referenced as a whole
through the 'XML namespace URI' shown. Elements of the model can be referenced through
the 'XMI href URI' shown.
CMOF 2.0 (cmof)
XML namespace URI: http://schema.omg.org/spec/MOF/2.0/
XMI href URI: http://schema.omg.org/spec/MOF/2.0/cmof.xml
Documentation: Generated from infralib/10-08-15-cleanup.xmi (which is a metamodel specified in UML).
updated with OCL from uml23 only where appropriate. (I hope!)
ODM1.1 (ODM)
XML namespace URI: http://www.omg.org/spec/ODM/20131101/ODM-metamodels.xmi
XMI href URI: http://www.omg.org/spec/ODM/20131101/ODM-metamodels.xmi
Documentation: Compiled 2016-01-06 using ptc/13-08-04 sans Example_1, Example_2 (not investigated).
owl-profile (OWL-PROFILE)
XML namespace URI: http://modelegator.nist.gov/OWL-PROFILE
XMI href URI: http://www.omg.org/spec/ODM/20131101/OWLProfile.xmi
Documentation: Compiled 2016-01-08 from ptc/13-08-05 OWLProfile
PrimitiveTypes.xmi (primitive-types)
XML namespace URI: PrimitiveTypes.cmof
XMI href URI: http://www.omg.org/spec/PrimitiveTypes.xmi
Documentation: rdf-profile (RDFProfile)
XML namespace URI: http://www.omg.org/spec/ODM/20131101/RDFProfile.xmi
XMI href URI: http://www.omg.org/spec/ODM/20131101/RDFProfile.xmi
Documentation: Compiled 2016-01-08 from ptc/13-08-05 RDFProfile
SoaML (SoaMLProfile)
XML namespace URI: http://www.omg.org/spec/SoaML/20120501
XMI href URI: http://www.omg.org/spec/SoaML/20120501/SoaMLProfile.xmi
Documentation: Created 2012-04-23 from http://www.omg.org/spec/SoaML/20120201/SoaMLProfile.xmi.
StandardProfile-20131001 (StandardProfile)
XML namespace URI: NIL
XMI href URI: http://www.omg.org/spec/UML/20131001/StandardProfile.xmi
Documentation: Generated from http://www.omg.org/spec/UML/20131001/StandardProfile.xmi on 2012-08-31
StandardProfileL2-20110701 (StandardProfileL2)
XML namespace URI: http://www.omg.org/spec/UML/20110701/StandardProfileL2
XMI href URI: http://www.omg.org/spec/UML/20110701/StandardProfileL2.xmi
Documentation: Generated from http://www.omg.org/spec/UML/20110701/StandardProfileL2.xmi on 2012-08-31
StandardProfileL2-20090901 (StandardProfileL2)
XML namespace URI: http://www.omg.org/spec/UML/20090901/StandardProfileL2
XMI href URI: http://www.omg.org/spec/UML/20090901/StandardProfileL2.xmi
Documentation: Generated from ptc/10-08-22.xmi for UML 2.4
SysML (sysml)
XML namespace URI: http://www.omg.org/spec/SysML/20100301/SysML-profile
XMI href URI: http://www.omg.org/spec/SysML/20100301/SysML-profile.uml
Documentation: Created from sysml1-2-ptc20100301-v5/sysml-profile.xmi.
SysML1.3 (sysml)
XML namespace URI: http://www.omg.org/spec/SysML/20110919/SysML-profile
XMI href URI: http://www.omg.org/spec/SysML/20120401/SysML.xmi
Documentation: Created from http://www.omg.org/spec/SysML/20110801/SysML.xmi.
SysML1.4 (SysML)
XML namespace URI: NIL
XMI href URI: http://www.omg.org/spec/SysML/20131001/SysML.xmi
Documentation: Created from http://www.omg.org/spec/SysML/20131001/SysML.xmi.
UML 2.5 (uml)
XML namespace URI: http://www.omg.org/spec/UML/2.5
XMI href URI: http://www.omg.org/spec/UML/2.5/UML.xmi
Documentation: Compiled from UML/20131001 on 2013-12-12.
UML 2.4.1 (uml)
XML namespace URI: http://www.omg.org/spec/UML/20110701
XMI href URI: http://www.omg.org/spec/UML/20110701/UML.xmi
Documentation: Retrieved from http://www.omg.org/spec/UML/2.4.1/ Validator-generated version
created 2012-01-22, back-filling edits from 2.3.
UML 2.3 (uml)
XML namespace URI: http://www.omg.org/spec/UML/20090901
XMI href URI: http://www.omg.org/spec/UML/20090901/UML.xmi
Documentation: Produced from http://www.omg.org/cgi-bin/doc?ptc/09-09-23 (Updated UML 2.3 L3.merged.xmi)
CMOF_file (1194956 bytes)
UPDM2.1 (updm)
XML namespace URI: http://www.omg.org/spec/UPDM/20121004
XMI href URI: http://www.omg.org/spec/UPDM/20121004/UPDM-Profile.xmi
Documentation: Compiled from not-yet-AB-reviewed 20121004 document.
UPDM2.0.1 (UPDM)
XML namespace URI: http://www.omg.org/spec/UPDM/20120301
XMI href URI: http://www.omg.org/spec/UPDM/20120301/UPDM-Profile.xmi
Documentation: Compiled 2013-04-11 using dtc/2012-09-10 XMI with hrefs to SoaML updated.
UPR (UPR)
XML namespace URI: http://modelegator.nist.gov/UPR
XMI href URI: http://www.omg.org/spec/ROSETTA/20170805/Profile.xmi
Documentation: Compiled from 'December XMI'.
UPRA (UPRA)
XML namespace URI: http://modelegator.nist.gov/UPRA
XMI href URI: http://www.omg.org/spec/MARS/20170805/ROSETTA/Profile.xmi
Documentation: Compiled from 'August XMI'.
Send questions or comments to
[email protected].