Not everyone has Enterprise Architect, or uses Windows.
While LutaML allows for fetching objects out of a UML-XMI file, it is a trial-and-error process in order to get the address right (like how XPaths are composed).
For example, I typically:
Open Enterprise Architect
Navigate to a diagram or class, write down where that is
Then use a Metanorma file to use a LutaML line to get that address
Find out whether the output exists
Rinse and repeat
Which is a horrendous process.
The alternative solution is to provide a command-line shell, open an XMI file, and accept commands in navigating.
Once I find a diagram, I can write path and the path to the object is given.
$> open "my-file.xmi"
file> prop
file-type: XMI (http://www.omg.org/spec/XMI/20131001)
content-format: UML 2.0 (http://www.omg.org/spec/UML/20131001)
documentation-exporter: exporter="Enterprise Architect" exporterVersion="6.5"
file> path
/
file> list
packages (10)
diagrams (20)
file> ls packages
"CityGML"
"Construction"
...
file> open CityGML
file package:CityGML> ls objects
"AbstractConstruction"
"AbstractConstructionSurface"
"AbstractConstructiveElement"
..
file CityGML[package]> open "AbstractConstruction"
file CityGML[package]:AbstractConstruction[class]> property description
"AbstractConstructiveElement is the abstract superclass for the representation of volumetric elements of a construction. Examples are walls, beams, slabs."
file CityGML[package]:AbstractConstruction[class]> property stereotype
"FeatureType"
...
Not everyone has Enterprise Architect, or uses Windows.
While LutaML allows for fetching objects out of a UML-XMI file, it is a trial-and-error process in order to get the address right (like how XPaths are composed).
For example, I typically:
Which is a horrendous process.
The alternative solution is to provide a command-line shell, open an XMI file, and accept commands in navigating.
Once I find a diagram, I can write
path
and the path to the object is given.Corresponding XML: