Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide command that renders class definitions using a diagram as filter #120

Open
ronaldtse opened this issue Jul 13, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@ronaldtse
Copy link
Contributor

ronaldtse commented Jul 13, 2024

Right now, the lutaml_uml_datamodel_description command allows specifying package names and rendering its contents recursively. There are ways to skip packages in the config YAML file, however, it is not a granular filter (e.g. it can't skip or specify particular classes/data types).

Code:

[lutaml_uml_datamodel_description,./plateau_uml_20240708_all_packages_export.xmi,lutaml_data_dictionary.yml]
----
[.diagram_include_block,base_path="./xmi-images",format="png"]
....
....
----

In PLATEAU document 01, there are sections that only render classes that appear in a particular diagram.

For example, in "4.2.2 (2) 1)", the classes shown are from two packages. The pink ones are from "i-UR", and the yellow ones are from "CityGML 2.0".

Screenshot 2024-07-13 at 10 31 19 AM

Then the descriptions of these pink classes are enumerated in the corresponding clause in "4.2.3 (2)":

Screenshot 2024-07-13 at 10 33 55 AM

There is no other way to obtain this list of classes to render except for listing them out of the diagram, and then applying a package filter to include only "i-UR" and excluding "CityGML 2.0".

In Enterprise Architect, it is possible to copy out the "Node Path" from a diagram (this is the particular diagram):
Screenshot 2024-07-13 at 10 43 57 AM

Conceptual Models.3D都市モデル.3D 都市モデル.4.2.2_2_1

We need to have these commands:

  1. Command to include a diagram only.
  2. Command to include classes that match a diagram filter.

Command to include a diagram only (see #121)

Posted here as separate task:

// 4.2.2 (2) 1)
lutaml_ea_diagram::file.xmi[address="Conceptual Models.3D都市モデル.3D 都市モデル.4.2.2_2_1",base_path="./xmi-images",format="png"]

Command to include classes that match a diagram filter

The command I am imagining is with some sort of filter:

// 4.2.2 (2) 1)
[lutaml_uml_datamodel_description,file.xmi,filter=diagram:"Conceptual Models.3D都市モデル.3D 都市モデル.4.2.2_2_1",filter=packages:"i-UR"]
----
// no diagrams needed
----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🌋 Urgent
Development

No branches or pull requests

2 participants