lutaml 0.11.9 → 0.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/docs.yml +87 -0
- data/.github/workflows/links.yml +113 -0
- data/.github/workflows/rake.yml +52 -0
- data/.github/workflows/release.yml +83 -0
- data/.gitignore +29 -0
- data/CLAUDE.md +27 -0
- data/Gemfile +2 -2
- data/docs/.github/workflows/docs.yml +66 -0
- data/docs/.github/workflows/links.yml +78 -0
- data/docs/CONTINUATION_PLAN.md +168 -0
- data/docs/Gemfile +13 -0
- data/docs/MIGRATION_GUIDE.md +202 -0
- data/docs/README.md +252 -0
- data/docs/REFACTOR_PLAN.md +214 -0
- data/docs/_config.yml +144 -0
- data/docs/_guides/cli-usage.adoc +43 -0
- data/docs/_guides/diagram-generation.adoc +316 -0
- data/docs/_guides/index.adoc +136 -0
- data/docs/_guides/parsing/express-parsing.adoc +42 -0
- data/docs/_guides/parsing/index.adoc +78 -0
- data/docs/_guides/parsing/qea-parsing.adoc +47 -0
- data/docs/_guides/parsing/xmi-parsing.adoc +40 -0
- data/docs/_guides/repository-management.adoc +44 -0
- data/docs/_guides/sysml-modeling.adoc +37 -0
- data/docs/_guides/uml-modeling.adoc +115 -0
- data/docs/_pages/concepts/diagram-generation.adoc +337 -0
- data/docs/_pages/concepts/lur-format.adoc +711 -0
- data/docs/_pages/concepts/qea-parsing.adoc +418 -0
- data/docs/_pages/concepts/uml-models.adoc +43 -0
- data/docs/_pages/core/architecture.adoc +329 -0
- data/docs/_pages/core/installation.adoc +321 -0
- data/docs/_pages/core/overview.adoc +197 -0
- data/docs/_pages/index.adoc +49 -0
- data/docs/_pages/uml-syntax.adoc +1011 -0
- data/docs/_references/api/parsers.adoc +61 -0
- data/docs/_references/api/presenters.adoc +43 -0
- data/docs/_references/api/repository.adoc +67 -0
- data/docs/_references/cli/commands.adoc +72 -0
- data/docs/_references/configuration/diagram-styles.adoc +716 -0
- data/docs/_references/configuration/index.adoc +53 -0
- data/docs/_references/configuration/package-metadata.adoc +416 -0
- data/docs/_references/formats/index.adoc +43 -0
- data/docs/_references/formats/lur-format.adoc +39 -0
- data/docs/_references/formats/lutaml-syntax.adoc +379 -0
- data/docs/_references/formats/qea-structure.adoc +1364 -0
- data/docs/_references/index.adoc +198 -0
- data/docs/_tutorials/documentation-site.adoc +47 -0
- data/docs/_tutorials/first-lur-package.adoc +45 -0
- data/docs/_tutorials/generating-diagrams.adoc +42 -0
- data/docs/_tutorials/getting-started.adoc +45 -0
- data/docs/_tutorials/index.adoc +100 -0
- data/docs/_tutorials/querying-models.adoc +44 -0
- data/docs/examples/build_package.rb +12 -0
- data/docs/examples/build_site.rb +12 -0
- data/docs/examples/city_model.rb +21 -0
- data/docs/examples/present_class.rb +10 -0
- data/docs/examples/query_model.rb +12 -0
- data/docs/examples/render_diagram.rb +11 -0
- data/docs/index.adoc +64 -0
- data/docs/lml-models-and-instances-syntax.adoc +931 -0
- data/docs/lml.adoc +210 -0
- data/docs/lychee.toml +50 -0
- data/lib/lutaml/version.rb +1 -1
- data/lib/lutaml.rb +6 -1
- data/lutaml.gemspec +8 -6
- metadata +75 -131
- data/exe/lutaml-lml +0 -6
- data/exe/lutaml-lml-lsp +0 -11
- data/lib/lutaml/lml/association_label_resolver.rb +0 -52
- data/lib/lutaml/lml/cli.rb +0 -506
- data/lib/lutaml/lml/data_processor/attribute_processing.rb +0 -133
- data/lib/lutaml/lml/data_processor/collection_processing.rb +0 -37
- data/lib/lutaml/lml/data_processor/instance_processing.rb +0 -77
- data/lib/lutaml/lml/data_processor/value_declaration_processing.rb +0 -70
- data/lib/lutaml/lml/data_processor/value_processing.rb +0 -103
- data/lib/lutaml/lml/data_processor/view_processing.rb +0 -26
- data/lib/lutaml/lml/data_processor.rb +0 -59
- data/lib/lutaml/lml/diagnostic.rb +0 -149
- data/lib/lutaml/lml/document_builder.rb +0 -481
- data/lib/lutaml/lml/entity_types.rb +0 -30
- data/lib/lutaml/lml/executor/adapter_helpers.rb +0 -45
- data/lib/lutaml/lml/executor/condition_evaluator.rb +0 -169
- data/lib/lutaml/lml/executor/csv_adapter.rb +0 -88
- data/lib/lutaml/lml/executor/format_adapter.rb +0 -54
- data/lib/lutaml/lml/executor/xml_adapter.rb +0 -102
- data/lib/lutaml/lml/executor.rb +0 -96
- data/lib/lutaml/lml/format/adapter/document.rb +0 -11
- data/lib/lutaml/lml/format/adapter/mapping.rb +0 -31
- data/lib/lutaml/lml/format/adapter/standard_adapter.rb +0 -162
- data/lib/lutaml/lml/format/adapter/transform.rb +0 -11
- data/lib/lutaml/lml/format.rb +0 -29
- data/lib/lutaml/lml/formatter/base.rb +0 -79
- data/lib/lutaml/lml/formatter/canonical.rb +0 -736
- data/lib/lutaml/lml/formatter/elk.rb +0 -45
- data/lib/lutaml/lml/formatter/svg_pdf/path_parser.rb +0 -134
- data/lib/lutaml/lml/formatter/svg_pdf.rb +0 -285
- data/lib/lutaml/lml/formatter.rb +0 -11
- data/lib/lutaml/lml/grammar/lml.artifact.json +0 -14993
- data/lib/lutaml/lml/grammar/lml.parg +0 -389
- data/lib/lutaml/lml/grammar.rb +0 -60
- data/lib/lutaml/lml/has_attributes.rb +0 -14
- data/lib/lutaml/lml/import_resolver.rb +0 -96
- data/lib/lutaml/lml/layout/elk_engine.rb +0 -15
- data/lib/lutaml/lml/layout/elk_graph_builder.rb +0 -129
- data/lib/lutaml/lml/layout/elk_svg_markers.rb +0 -45
- data/lib/lutaml/lml/layout/elk_svg_renderer.rb +0 -119
- data/lib/lutaml/lml/layout/engine.rb +0 -17
- data/lib/lutaml/lml/layout.rb +0 -12
- data/lib/lutaml/lml/literal_value.rb +0 -32
- data/lib/lutaml/lml/lsp/conversions.rb +0 -78
- data/lib/lutaml/lml/lsp/keywords.rb +0 -43
- data/lib/lutaml/lml/lsp/server.rb +0 -378
- data/lib/lutaml/lml/lsp/store.rb +0 -68
- data/lib/lutaml/lml/lsp/transport.rb +0 -53
- data/lib/lutaml/lml/lsp.rb +0 -16
- data/lib/lutaml/lml/model_compiler/enums.rb +0 -172
- data/lib/lutaml/lml/model_compiler/hydration.rb +0 -123
- data/lib/lutaml/lml/model_compiler/serialization_mappings.rb +0 -188
- data/lib/lutaml/lml/model_compiler/string_formats.rb +0 -42
- data/lib/lutaml/lml/model_compiler/validation.rb +0 -65
- data/lib/lutaml/lml/model_compiler.rb +0 -323
- data/lib/lutaml/lml/models/action.rb +0 -10
- data/lib/lutaml/lml/models/association.rb +0 -29
- data/lib/lutaml/lml/models/cardinality.rb +0 -10
- data/lib/lutaml/lml/models/collection.rb +0 -11
- data/lib/lutaml/lml/models/constraint.rb +0 -23
- data/lib/lutaml/lml/models/data_type.rb +0 -41
- data/lib/lutaml/lml/models/derived_field.rb +0 -14
- data/lib/lutaml/lml/models/diagram.rb +0 -20
- data/lib/lutaml/lml/models/document.rb +0 -84
- data/lib/lutaml/lml/models/enum.rb +0 -38
- data/lib/lutaml/lml/models/fidelity.rb +0 -10
- data/lib/lutaml/lml/models/group.rb +0 -11
- data/lib/lutaml/lml/models/instance.rb +0 -26
- data/lib/lutaml/lml/models/instance_collection.rb +0 -16
- data/lib/lutaml/lml/models/instances_export.rb +0 -10
- data/lib/lutaml/lml/models/instances_import.rb +0 -11
- data/lib/lutaml/lml/models/mapping.rb +0 -15
- data/lib/lutaml/lml/models/mapping_rule.rb +0 -16
- data/lib/lutaml/lml/models/member_field.rb +0 -14
- data/lib/lutaml/lml/models/namespace.rb +0 -16
- data/lib/lutaml/lml/models/operation.rb +0 -26
- data/lib/lutaml/lml/models/operation_parameter.rb +0 -12
- data/lib/lutaml/lml/models/package.rb +0 -26
- data/lib/lutaml/lml/models/primitive_type.rb +0 -33
- data/lib/lutaml/lml/models/reference.rb +0 -23
- data/lib/lutaml/lml/models/serialization_mapping.rb +0 -19
- data/lib/lutaml/lml/models/string_format.rb +0 -16
- data/lib/lutaml/lml/models/top_element_attribute.rb +0 -116
- data/lib/lutaml/lml/models/uml_class.rb +0 -85
- data/lib/lutaml/lml/models/value.rb +0 -15
- data/lib/lutaml/lml/models/view_filter.rb +0 -11
- data/lib/lutaml/lml/models/view_import.rb +0 -11
- data/lib/lutaml/lml/parser.rb +0 -19
- data/lib/lutaml/lml/pipeline.rb +0 -73
- data/lib/lutaml/lml/positioned.rb +0 -13
- data/lib/lutaml/lml/preprocessor.rb +0 -130
- data/lib/lutaml/lml/quoting.rb +0 -60
- data/lib/lutaml/lml/source.rb +0 -49
- data/lib/lutaml/lml/source_position.rb +0 -20
- data/lib/lutaml/lml/symbol_index.rb +0 -200
- data/lib/lutaml/lml/transform.rb +0 -119
- data/lib/lutaml/lml/types/text_type.rb +0 -28
- data/lib/lutaml/lml/types.rb +0 -10
- data/lib/lutaml/lml/validator.rb +0 -458
- data/lib/lutaml/lml/version.rb +0 -10
- data/lib/lutaml/lml/view_resolution.rb +0 -32
- data/lib/lutaml/lml/view_resolver.rb +0 -48
- data/lib/lutaml/lml/yaml_parser.rb +0 -17
- data/lib/lutaml/lml.rb +0 -130
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
= Guides
|
|
2
|
+
:page-permalink: /guides/
|
|
3
|
+
:nav_order: 3
|
|
4
|
+
:has_children: true
|
|
5
|
+
|
|
6
|
+
== Overview
|
|
7
|
+
|
|
8
|
+
This section provides task-oriented how-to documentation for common workflows and operations with LutaML. Each guide focuses on accomplishing a specific goal.
|
|
9
|
+
|
|
10
|
+
== Command-Line Usage
|
|
11
|
+
|
|
12
|
+
=== link:{site-baseurl}/guides/cli-usage/[Complete CLI Guide]
|
|
13
|
+
|
|
14
|
+
Run the supported Ruby scripts, inspect your bundle, and understand the current executable compatibility boundary.
|
|
15
|
+
|
|
16
|
+
== Diagram Generation
|
|
17
|
+
|
|
18
|
+
=== link:{site-baseurl}/guides/diagram-generation/[Generating EA-Style Diagrams]
|
|
19
|
+
|
|
20
|
+
Learn how to generate pixel-perfect SVG diagrams from Enterprise Architect models with full styling support.
|
|
21
|
+
|
|
22
|
+
**Topics covered:**
|
|
23
|
+
|
|
24
|
+
* EA-style colors and fonts
|
|
25
|
+
* Configurable styling system
|
|
26
|
+
* Multiple connector types
|
|
27
|
+
* Lazy-loading in SPA mode
|
|
28
|
+
|
|
29
|
+
== Modeling Languages
|
|
30
|
+
|
|
31
|
+
=== link:{site-baseurl}/guides/uml-modeling/[UML Modeling with LutaML]
|
|
32
|
+
|
|
33
|
+
Work with UML class diagrams using LutaML's native syntax and conversion tools.
|
|
34
|
+
|
|
35
|
+
=== link:{site-baseurl}/guides/sysml-modeling/[SysML Modeling with LutaML]
|
|
36
|
+
|
|
37
|
+
Extend UML with SysML concepts for systems engineering and MBSE workflows.
|
|
38
|
+
|
|
39
|
+
== Configuration & Customization
|
|
40
|
+
|
|
41
|
+
=== link:{site-baseurl}/references/configuration/diagram-styles/[Configuring Diagram Styles]
|
|
42
|
+
|
|
43
|
+
Learn how to customize diagram colors, fonts, and styling using YAML configuration files.
|
|
44
|
+
|
|
45
|
+
=== link:{site-baseurl}/references/configuration/package-metadata/[Setting Up Package Metadata]
|
|
46
|
+
|
|
47
|
+
Configure XML namespaces, schema locations, and other metadata for UML packages.
|
|
48
|
+
|
|
49
|
+
=== link:{site-baseurl}/guides/repository-management/[Managing Repositories]
|
|
50
|
+
|
|
51
|
+
Build, cache, and verify LUR repositories while preserving source models.
|
|
52
|
+
|
|
53
|
+
== Parsing Guides
|
|
54
|
+
|
|
55
|
+
=== link:{site-baseurl}/guides/parsing/qea-parsing/[Parsing QEA Files]
|
|
56
|
+
|
|
57
|
+
Connect a separate QEA importer to the typed UML repository and verify its output.
|
|
58
|
+
|
|
59
|
+
**Topics covered:**
|
|
60
|
+
|
|
61
|
+
* Importer and repository boundaries
|
|
62
|
+
* Checking the returned document type
|
|
63
|
+
* Preserving source IDs
|
|
64
|
+
* Verifying imported results
|
|
65
|
+
|
|
66
|
+
=== link:{site-baseurl}/guides/parsing/xmi-parsing/[Parsing XMI Files]
|
|
67
|
+
|
|
68
|
+
Working with OMG XMI format exports from various UML tools.
|
|
69
|
+
|
|
70
|
+
**Topics covered:**
|
|
71
|
+
|
|
72
|
+
* XMI format detection
|
|
73
|
+
* Namespace handling
|
|
74
|
+
* Profile support
|
|
75
|
+
* Validation
|
|
76
|
+
|
|
77
|
+
=== link:{site-baseurl}/guides/parsing/express-parsing/[Parsing EXPRESS Schemas]
|
|
78
|
+
|
|
79
|
+
Handle ISO 10303-11 EXPRESS schemas used in industrial standards.
|
|
80
|
+
|
|
81
|
+
**Topics covered:**
|
|
82
|
+
|
|
83
|
+
* Schema file parsing
|
|
84
|
+
* Cache files
|
|
85
|
+
* Model transformation
|
|
86
|
+
* Integration with Expressir
|
|
87
|
+
|
|
88
|
+
== Working with Models
|
|
89
|
+
|
|
90
|
+
=== Querying and Search
|
|
91
|
+
|
|
92
|
+
* Full-text search across models
|
|
93
|
+
* Using the query DSL effectively
|
|
94
|
+
* Filtering by properties
|
|
95
|
+
* Pattern matching
|
|
96
|
+
|
|
97
|
+
=== Export and Integration
|
|
98
|
+
|
|
99
|
+
* Exporting to CSV/JSON/YAML
|
|
100
|
+
* Generating documentation
|
|
101
|
+
* Integration with other tools
|
|
102
|
+
* Custom exporters
|
|
103
|
+
|
|
104
|
+
== Advanced Topics
|
|
105
|
+
|
|
106
|
+
=== Performance Optimization
|
|
107
|
+
|
|
108
|
+
* LUR caching strategies
|
|
109
|
+
* Lazy loading
|
|
110
|
+
* Memory management
|
|
111
|
+
* Batch processing
|
|
112
|
+
|
|
113
|
+
=== Extending LutaML
|
|
114
|
+
|
|
115
|
+
* Custom parsers
|
|
116
|
+
* Plugin development
|
|
117
|
+
* Transformer creation
|
|
118
|
+
* Renderer extensions
|
|
119
|
+
|
|
120
|
+
== Guide Format
|
|
121
|
+
|
|
122
|
+
Each guide follows this structure:
|
|
123
|
+
|
|
124
|
+
1. **Purpose** - What this guide helps you accomplish
|
|
125
|
+
2. **Prerequisites** - What you need to know or have installed
|
|
126
|
+
3. **Concepts** - Key concepts for understanding
|
|
127
|
+
4. **Step-by-Step Instructions** - Detailed walkthrough
|
|
128
|
+
5. **Examples** - Real-world examples
|
|
129
|
+
6. **Troubleshooting** - Common issues and solutions
|
|
130
|
+
7. **References** - Related documentation
|
|
131
|
+
|
|
132
|
+
== Related Sections
|
|
133
|
+
|
|
134
|
+
* link:{site-baseurl}/tutorials/[Tutorials] - Step-by-step learning paths
|
|
135
|
+
* link:{site-baseurl}/core/[Core Topics] - Fundamental concepts
|
|
136
|
+
* link:{site-baseurl}/references/[Reference] - Detailed specifications
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: EXPRESS Parsing
|
|
3
|
+
parent: Parsing Guides
|
|
4
|
+
grand_parent: Guides
|
|
5
|
+
nav_order: 1
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
= Lutaml::Express
|
|
9
|
+
|
|
10
|
+
Lutaml::Express provides functionality to parse and manipulate EXPRESS files,
|
|
11
|
+
enabling seamless integration with the Lutaml framework.
|
|
12
|
+
|
|
13
|
+
== Usages
|
|
14
|
+
|
|
15
|
+
The parser `Lutaml::Express::Parsers::Exp` is used to parse EXPRESS schema file
|
|
16
|
+
`.exp` into `Expressir::Model::Repository` model.
|
|
17
|
+
|
|
18
|
+
=== Examples
|
|
19
|
+
|
|
20
|
+
.EXPRESS schema file parsing
|
|
21
|
+
[example]
|
|
22
|
+
====
|
|
23
|
+
|
|
24
|
+
When using the `Lutaml::Express::Parsers::Exp` parser, you can parse an EXPRESS
|
|
25
|
+
schema file as follows:
|
|
26
|
+
|
|
27
|
+
[source,ruby]
|
|
28
|
+
----
|
|
29
|
+
require "lutaml"
|
|
30
|
+
|
|
31
|
+
Lutaml::Express::Parsers::Exp.parse(File.new("path/to/example.exp"))
|
|
32
|
+
# => returns Expressir::Model::Repository model
|
|
33
|
+
----
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
`Expressir::Model::Repository` is a Lutaml model that can be further processed
|
|
37
|
+
or converted to other formats.
|
|
38
|
+
|
|
39
|
+
Please refer to https://github.com/lutaml/expressir[expressir] or
|
|
40
|
+
https://github.com/lutaml/lutaml-model[lutaml-model] for more details.
|
|
41
|
+
|
|
42
|
+
====
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
permalink: /guides/parsing/
|
|
3
|
+
title: Parsing Guides
|
|
4
|
+
parent: Guides
|
|
5
|
+
nav_order: 20
|
|
6
|
+
has_children: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
= Parsing Guides
|
|
10
|
+
|
|
11
|
+
Comprehensive guides for parsing different model formats with LutaML.
|
|
12
|
+
|
|
13
|
+
== Available Parsing Guides
|
|
14
|
+
|
|
15
|
+
=== link:{site-baseurl}/guides/parsing/express-parsing/[EXPRESS Parsing]
|
|
16
|
+
|
|
17
|
+
Guide for parsing ISO 10303-11 EXPRESS schemas used in industrial standards.
|
|
18
|
+
|
|
19
|
+
**Topics covered:**
|
|
20
|
+
|
|
21
|
+
* Schema file parsing with Expressir
|
|
22
|
+
* Cache file handling
|
|
23
|
+
* Model transformation
|
|
24
|
+
* Integration examples
|
|
25
|
+
|
|
26
|
+
=== link:{site-baseurl}/guides/parsing/xmi-parsing/[XMI Parsing]
|
|
27
|
+
|
|
28
|
+
Guide for parsing OMG XMI format exports from UML tools.
|
|
29
|
+
|
|
30
|
+
**Topics covered:**
|
|
31
|
+
|
|
32
|
+
* XMI format detection
|
|
33
|
+
* Namespace handling
|
|
34
|
+
* Profile support
|
|
35
|
+
* Validation techniques
|
|
36
|
+
|
|
37
|
+
=== QEA Parsing
|
|
38
|
+
|
|
39
|
+
Enterprise Architect QEA format parsing is covered in multiple locations:
|
|
40
|
+
|
|
41
|
+
* link:{site-baseurl}/concepts/qea-parsing/[Concept Overview] - Understanding QEA
|
|
42
|
+
* link:{site-baseurl}/references/formats/qea-structure/[Format Specification] - Complete details
|
|
43
|
+
* link:{site-baseurl}/tutorials/getting-started/[Tutorial] - Step-by-step walkthrough
|
|
44
|
+
|
|
45
|
+
== Common Parsing Patterns
|
|
46
|
+
|
|
47
|
+
=== Using the Unified Parser
|
|
48
|
+
|
|
49
|
+
LutaML provides a single entry point for all formats:
|
|
50
|
+
|
|
51
|
+
[source,ruby]
|
|
52
|
+
----
|
|
53
|
+
require "lutaml"
|
|
54
|
+
|
|
55
|
+
# Automatically detects format and parses
|
|
56
|
+
document = Lutaml::Parser.parse([File.new("model.xmi")])
|
|
57
|
+
document = Lutaml::Parser.parse([File.new("model.qea")])
|
|
58
|
+
document = Lutaml::Parser.parse([File.new("schema.exp")])
|
|
59
|
+
----
|
|
60
|
+
|
|
61
|
+
=== Error Handling
|
|
62
|
+
|
|
63
|
+
All parsers follow consistent error handling:
|
|
64
|
+
|
|
65
|
+
[source,ruby]
|
|
66
|
+
----
|
|
67
|
+
begin
|
|
68
|
+
document = Lutaml::Parser.parse([File.new("model.xmi")])
|
|
69
|
+
rescue Lutaml::ParseError => e
|
|
70
|
+
puts "Parse error: #{e.message}"
|
|
71
|
+
end
|
|
72
|
+
----
|
|
73
|
+
|
|
74
|
+
== Related Documentation
|
|
75
|
+
|
|
76
|
+
* link:{site-baseurl}/references/formats/[Format Specifications] - Technical details
|
|
77
|
+
* link:{site-baseurl}/tutorials/getting-started/[Getting Started] - Basic parsing tutorial
|
|
78
|
+
* link:{site-baseurl}/references/api/parsers/[Parser API Reference] - Complete API docs
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
permalink: /guides/parsing/qea-parsing/
|
|
3
|
+
title: Integrating QEA Parsing
|
|
4
|
+
parent: Guides
|
|
5
|
+
---
|
|
6
|
+
= Integrating QEA Parsing
|
|
7
|
+
|
|
8
|
+
QEA is Enterprise Architect's SQLite model format. In the split LutaML family,
|
|
9
|
+
QEA import and UML repository indexing are separate operations.
|
|
10
|
+
`lutaml-uml` 1.0.3 does not ship a QEA parser, and
|
|
11
|
+
`Repository.from_file("model.qea")` deliberately rejects that extension.
|
|
12
|
+
|
|
13
|
+
== Select and verify an importer
|
|
14
|
+
|
|
15
|
+
Use a QEA-capable provider that supports your EA schema version. Follow that
|
|
16
|
+
provider's installation and parsing contract; installing the `lutaml` umbrella
|
|
17
|
+
alone does not add a QEA parser. Work from a consistent saved copy of the EA
|
|
18
|
+
database so that its object and diagram tables describe the same model state.
|
|
19
|
+
|
|
20
|
+
The repository integration requires a `Lutaml::Uml::Document`.
|
|
21
|
+
Check the provider's result type and convert it explicitly if it uses a
|
|
22
|
+
different model family. A similarly named `Document` class is not sufficient.
|
|
23
|
+
|
|
24
|
+
== Build the repository
|
|
25
|
+
|
|
26
|
+
Once your importer has produced `document`:
|
|
27
|
+
|
|
28
|
+
[source,ruby]
|
|
29
|
+
----
|
|
30
|
+
raise TypeError, "Expected a UML document" unless document.is_a?(Lutaml::Uml::Document)
|
|
31
|
+
|
|
32
|
+
repository = Lutaml::UmlRepository::Repository.from_document(document)
|
|
33
|
+
puts repository.statistics
|
|
34
|
+
----
|
|
35
|
+
|
|
36
|
+
Verify a known package path and class, then inspect association and diagram
|
|
37
|
+
counts. Preserve source IDs when converting objects so that relationship and
|
|
38
|
+
diagram references remain meaningful. An empty repository is not proof of a
|
|
39
|
+
successful import merely because no exception occurred.
|
|
40
|
+
|
|
41
|
+
== Preserve and inspect results
|
|
42
|
+
|
|
43
|
+
Export the verified repository as a LUR package, keeping the QEA source and
|
|
44
|
+
importer configuration. See link:{site-baseurl}/tutorials/first-lur-package/[LUR
|
|
45
|
+
package creation] and link:{site-baseurl}/references/formats/qea-structure/[QEA
|
|
46
|
+
database structure]. Stored diagram objects and rendered SVG are different
|
|
47
|
+
outputs; a successful object import alone does not establish rendering support.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: XMI Parsing
|
|
3
|
+
parent: Parsing Guides
|
|
4
|
+
grand_parent: Guides
|
|
5
|
+
nav_order: 2
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
= Lutaml::XMI
|
|
9
|
+
|
|
10
|
+
Lutaml::XMI provides functionality to parse and manipulate
|
|
11
|
+
Enterprise Architecture XMI files.
|
|
12
|
+
|
|
13
|
+
== Usages
|
|
14
|
+
|
|
15
|
+
The parser `Lutaml::XMI::Parsers::XML` is used to parse XMI files into
|
|
16
|
+
`Lutaml::Uml::Document` model.
|
|
17
|
+
|
|
18
|
+
=== Examples
|
|
19
|
+
|
|
20
|
+
.Parsing XMI file
|
|
21
|
+
[example]
|
|
22
|
+
====
|
|
23
|
+
|
|
24
|
+
When using the `Lutaml::XMI::Parsers::XML` parser, you can parse an XMI
|
|
25
|
+
file as follows:
|
|
26
|
+
|
|
27
|
+
[source,ruby]
|
|
28
|
+
----
|
|
29
|
+
require "lutaml"
|
|
30
|
+
|
|
31
|
+
Lutaml::XMI::Parsers::XML.parse(File.new("path/to/example.xmi"))
|
|
32
|
+
# => returns Lutaml::Uml::Document model
|
|
33
|
+
----
|
|
34
|
+
|
|
35
|
+
`Lutaml::Uml::Document` model is a Lutaml model that can be further processed or
|
|
36
|
+
converted to other formats.
|
|
37
|
+
|
|
38
|
+
Please refer to https://github.com/lutaml/lutaml-model[lutaml-model] for more details.
|
|
39
|
+
|
|
40
|
+
====
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
permalink: /guides/repository-management/
|
|
3
|
+
title: Managing Repositories
|
|
4
|
+
parent: Guides
|
|
5
|
+
---
|
|
6
|
+
= Managing Repositories
|
|
7
|
+
|
|
8
|
+
Keep source models, parser configuration, and generated LUR packages distinct.
|
|
9
|
+
A package accelerates repeated access; the original source remains necessary
|
|
10
|
+
for re-importing after model or dependency changes.
|
|
11
|
+
|
|
12
|
+
== Build and name artifacts
|
|
13
|
+
|
|
14
|
+
Create a repository from a UML document and export it to a versioned output path.
|
|
15
|
+
Record the source revision and retain your application's `Gemfile.lock`.
|
|
16
|
+
Package metadata describes the model, while the lockfile records the dependency
|
|
17
|
+
versions used to create it. See
|
|
18
|
+
link:{site-baseurl}/references/configuration/package-metadata/[Package Metadata].
|
|
19
|
+
|
|
20
|
+
== Refresh indexes
|
|
21
|
+
|
|
22
|
+
`Repository.from_document` builds indexes from the document's current contents.
|
|
23
|
+
If your application changes classes, packages, or relationships in memory,
|
|
24
|
+
construct a new repository from the changed document before querying or exporting.
|
|
25
|
+
Do not edit stored index YAML independently of the model.
|
|
26
|
+
|
|
27
|
+
== Cache imported sources
|
|
28
|
+
|
|
29
|
+
`Repository.from_file_cached(source_path, lur_path: cache_path)` takes a block
|
|
30
|
+
that parses the source and returns a UML document. A cache at least as new as
|
|
31
|
+
the source is reused; otherwise the block runs and a new package is written.
|
|
32
|
+
That timestamp check does not detect changed parser options or dependencies.
|
|
33
|
+
Choose a fresh cache path or explicitly regenerate after those changes.
|
|
34
|
+
|
|
35
|
+
== Verify a saved package
|
|
36
|
+
|
|
37
|
+
Load it with `Repository.from_package`, check a known qualified class name,
|
|
38
|
+
and compare expected counts from `statistics`. The
|
|
39
|
+
link:{site-baseurl}/tutorials/first-lur-package/[first package tutorial] performs
|
|
40
|
+
an export/reload check rather than only checking that a file exists.
|
|
41
|
+
|
|
42
|
+
For large packages, `from_package_lazy` defers index construction.
|
|
43
|
+
Choose eager or lazy loading based on your access pattern; neither changes the
|
|
44
|
+
source model's format or provides a QEA importer.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: SysML Modeling with LutaML
|
|
3
|
+
parent: Guides
|
|
4
|
+
nav_order: 12
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
= Lutaml::Sysml
|
|
8
|
+
|
|
9
|
+
Lutaml::Sysml extends Lutaml::Uml by adding concepts relevant to systems
|
|
10
|
+
engineering, supporting a Model-Based Systems Engineering (MBSE) approach
|
|
11
|
+
throughout the entire system lifecycle.
|
|
12
|
+
|
|
13
|
+
== Overview
|
|
14
|
+
|
|
15
|
+
SysML (Systems Modeling Language) is a general-purpose modeling language for systems engineering applications. It supports the specification, analysis, design, verification, and validation of complex systems that may include hardware, software, data, personnel, procedures, and facilities.
|
|
16
|
+
|
|
17
|
+
== Usage
|
|
18
|
+
|
|
19
|
+
Lutaml::Sysml provides specialized diagram types and elements for systems engineering modeling, including:
|
|
20
|
+
|
|
21
|
+
* Requirements diagrams
|
|
22
|
+
* Block definition diagrams
|
|
23
|
+
* Internal block diagrams
|
|
24
|
+
* Parametric diagrams
|
|
25
|
+
* Activity diagrams
|
|
26
|
+
* Sequence diagrams
|
|
27
|
+
* State machine diagrams
|
|
28
|
+
* Use case diagrams
|
|
29
|
+
|
|
30
|
+
== Integration with UML
|
|
31
|
+
|
|
32
|
+
Since SysML extends UML, all UML modeling capabilities are available in SysML models. The extension adds systems engineering-specific stereotypes, properties, and diagram types while maintaining compatibility with the UML foundation.
|
|
33
|
+
|
|
34
|
+
== See Also
|
|
35
|
+
|
|
36
|
+
* link:{site-baseurl}/guides/uml-modeling/[UML Modeling Guide]
|
|
37
|
+
* link:https://github.com/lutaml/lutaml/blob/main/README.md[LutaML Documentation]
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: UML Modeling with LutaML
|
|
3
|
+
parent: Guides
|
|
4
|
+
nav_order: 11
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
= Lutaml::Uml
|
|
8
|
+
|
|
9
|
+
Lutaml::Uml is a language for specifying UML class diagrams and a tool for
|
|
10
|
+
converting it into various different formats.
|
|
11
|
+
|
|
12
|
+
== Language
|
|
13
|
+
|
|
14
|
+
See link:{site-baseurl}/uml-syntax/[LutaML syntax]
|
|
15
|
+
|
|
16
|
+
== Usages
|
|
17
|
+
|
|
18
|
+
Converter executables are available:
|
|
19
|
+
|
|
20
|
+
* PlantUML WSD or PUML to LutaML UML: `lutaml-wsd2uml`
|
|
21
|
+
* LutaML YAML to LutaML UML: `lutaml-yaml2uml`
|
|
22
|
+
|
|
23
|
+
=== Examples
|
|
24
|
+
|
|
25
|
+
.PlantUML to LutaML UML
|
|
26
|
+
[example]
|
|
27
|
+
====
|
|
28
|
+
|
|
29
|
+
Given the following PlantUML PUML file `example.puml`:
|
|
30
|
+
|
|
31
|
+
[source,plantuml]
|
|
32
|
+
----
|
|
33
|
+
@startuml
|
|
34
|
+
Alice -> Bob: Authentication Request
|
|
35
|
+
Bob --> Alice: Authentication Response
|
|
36
|
+
@enduml
|
|
37
|
+
----
|
|
38
|
+
|
|
39
|
+
Running the command:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
lutaml-wsd2uml example.puml
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The following results will be produced:
|
|
46
|
+
|
|
47
|
+
[source,lutaml]
|
|
48
|
+
----
|
|
49
|
+
diagram plantuml-simple.puml {
|
|
50
|
+
association {
|
|
51
|
+
owner Alice
|
|
52
|
+
member Request
|
|
53
|
+
member_type direct
|
|
54
|
+
}
|
|
55
|
+
association {
|
|
56
|
+
owner Bob
|
|
57
|
+
member Response
|
|
58
|
+
member_type direct
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
----
|
|
62
|
+
====
|
|
63
|
+
|
|
64
|
+
.LutaML YAML to LutaML UML
|
|
65
|
+
[example]
|
|
66
|
+
====
|
|
67
|
+
|
|
68
|
+
Given the following LutaML YAML file `Address.yml`:
|
|
69
|
+
|
|
70
|
+
[source,yaml]
|
|
71
|
+
----
|
|
72
|
+
name: Address
|
|
73
|
+
modelType: class
|
|
74
|
+
relations:
|
|
75
|
+
- target: AddressComponent
|
|
76
|
+
relationship:
|
|
77
|
+
source:
|
|
78
|
+
type: aggregation
|
|
79
|
+
attributes:
|
|
80
|
+
address:
|
|
81
|
+
cardinality:
|
|
82
|
+
min: 1
|
|
83
|
+
max: "*"
|
|
84
|
+
target:
|
|
85
|
+
type: direct
|
|
86
|
+
attributes:
|
|
87
|
+
addressComponent:
|
|
88
|
+
cardinality:
|
|
89
|
+
min: 1
|
|
90
|
+
max: "*"
|
|
91
|
+
action:
|
|
92
|
+
verb: comprises
|
|
93
|
+
direction: target
|
|
94
|
+
----
|
|
95
|
+
|
|
96
|
+
Running the command:
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
lutaml-yaml2uml Address.yml
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
The following results will be produced:
|
|
103
|
+
|
|
104
|
+
[source,lutaml]
|
|
105
|
+
----
|
|
106
|
+
diagram Address {
|
|
107
|
+
association {
|
|
108
|
+
owner_type aggregation
|
|
109
|
+
owner Address
|
|
110
|
+
member_type association
|
|
111
|
+
member AddressComponent
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
----
|
|
115
|
+
====
|