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,197 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: What is LutaML?
|
|
3
|
+
parent: Core Topics
|
|
4
|
+
nav_order: 1
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
= What is LutaML?
|
|
8
|
+
|
|
9
|
+
== Purpose
|
|
10
|
+
|
|
11
|
+
LutaML is a universal Ruby library and CLI for accessing, parsing, and
|
|
12
|
+
manipulating data models across multiple modeling languages.
|
|
13
|
+
|
|
14
|
+
== What LutaML Does
|
|
15
|
+
|
|
16
|
+
The LutaML library provides a unified interface for working with the following
|
|
17
|
+
modelling languages:
|
|
18
|
+
|
|
19
|
+
* EXPRESS (ISO 10303-11)
|
|
20
|
+
* UML (UML 2.x)
|
|
21
|
+
* XSD (XML Schema Definition)
|
|
22
|
+
* LML (LutaML Modeling Language)
|
|
23
|
+
|
|
24
|
+
In particular:
|
|
25
|
+
|
|
26
|
+
* Parse *Enterprise Architect (EA)* models from QEA and XMI formats
|
|
27
|
+
* Parse *ISO 10303-11 EXPRESS* schemas
|
|
28
|
+
* Generate SVG diagrams from EA models (QEA) with full styling
|
|
29
|
+
* Store and query models in compressed LUR (LutaML UML Repository) format
|
|
30
|
+
* Create browsable SPA (Single Page Application) sites from models
|
|
31
|
+
* Provide full access of models via Ruby API, CLI tools and Liquid templates
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
== Problems LutaML solves
|
|
35
|
+
|
|
36
|
+
=== Access multiple modeling languages
|
|
37
|
+
|
|
38
|
+
Different UML tools use different formats (XMI, QEA, EXPRESS). LutaML provides a single interface to work with all of them.
|
|
39
|
+
|
|
40
|
+
=== Diagram Rendering
|
|
41
|
+
|
|
42
|
+
LutaML generates **SVG diagrams** matching EA's visual output.
|
|
43
|
+
|
|
44
|
+
=== Model querying
|
|
45
|
+
|
|
46
|
+
LutaML supports querying UML models through a powerful DSL.
|
|
47
|
+
|
|
48
|
+
=== Documentation
|
|
49
|
+
|
|
50
|
+
LutaML **auto-generates complete documentation sites** from your models.
|
|
51
|
+
|
|
52
|
+
== Key features
|
|
53
|
+
|
|
54
|
+
=== Unified parser interface
|
|
55
|
+
|
|
56
|
+
Single entry point for all formats:
|
|
57
|
+
|
|
58
|
+
[source,ruby]
|
|
59
|
+
----
|
|
60
|
+
require "lutaml"
|
|
61
|
+
|
|
62
|
+
# Automatically detects format
|
|
63
|
+
Lutaml::Parser.parse([File.new("model.xmi")]) # XMI
|
|
64
|
+
Lutaml::Parser.parse([File.new("model.qea")]) # QEA
|
|
65
|
+
Lutaml::Parser.parse([File.new("schema.exp")]) # EXPRESS
|
|
66
|
+
----
|
|
67
|
+
|
|
68
|
+
=== Enterprise Architect (QEA/XMI) parsing
|
|
69
|
+
|
|
70
|
+
Direct access using native QEA or exported XMI for parsing, with full EA
|
|
71
|
+
metadata preserved.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
=== Enterprise Architect diagram generation
|
|
75
|
+
|
|
76
|
+
Generate SVG diagrams with:
|
|
77
|
+
|
|
78
|
+
* EA-style colors and fonts
|
|
79
|
+
* Full stereotype support
|
|
80
|
+
* Multiple connector types
|
|
81
|
+
* YAML-based styling
|
|
82
|
+
* PNG/PDF export (optional)
|
|
83
|
+
|
|
84
|
+
=== LUR Package Format
|
|
85
|
+
|
|
86
|
+
Compressed binary format for:
|
|
87
|
+
|
|
88
|
+
* **Fast loading**: <100ms vs 5-8s for XMI
|
|
89
|
+
* **Efficient storage**: 15-30MB for large models
|
|
90
|
+
* **Built-in indexing**: O(1) lookups
|
|
91
|
+
* **Versioning**: Track model changes
|
|
92
|
+
|
|
93
|
+
=== Rich Query Capabilities
|
|
94
|
+
|
|
95
|
+
Find elements with:
|
|
96
|
+
|
|
97
|
+
* Full-text search
|
|
98
|
+
* Stereotype filtering
|
|
99
|
+
* Package navigation
|
|
100
|
+
* Query DSL
|
|
101
|
+
* Pattern matching
|
|
102
|
+
|
|
103
|
+
=== Complete CLI
|
|
104
|
+
|
|
105
|
+
Command-line tools for:
|
|
106
|
+
|
|
107
|
+
* Building repositories
|
|
108
|
+
* Searching models
|
|
109
|
+
* Generating diagrams
|
|
110
|
+
* Exporting data
|
|
111
|
+
* Creating documentation
|
|
112
|
+
|
|
113
|
+
== Use Cases
|
|
114
|
+
|
|
115
|
+
=== Standards Organizations
|
|
116
|
+
|
|
117
|
+
ISO, OGC, OMG working with UML and EXPRESS models for international standards.
|
|
118
|
+
|
|
119
|
+
=== Software Architects
|
|
120
|
+
|
|
121
|
+
Teams using Enterprise Architect for system design and documentation.
|
|
122
|
+
|
|
123
|
+
=== Tool Developers
|
|
124
|
+
|
|
125
|
+
Building analysis or transformation tools on top of modeling data.
|
|
126
|
+
|
|
127
|
+
=== Researchers
|
|
128
|
+
|
|
129
|
+
Analyzing model structures, patterns, and evolution.
|
|
130
|
+
|
|
131
|
+
== Target Users
|
|
132
|
+
|
|
133
|
+
* Standards developers and maintainers
|
|
134
|
+
* Enterprise architects and modelers
|
|
135
|
+
* Software development teams
|
|
136
|
+
* UML tool integrators
|
|
137
|
+
* Model-driven engineering practitioners
|
|
138
|
+
|
|
139
|
+
== Supported Formats
|
|
140
|
+
|
|
141
|
+
=== Input Formats
|
|
142
|
+
|
|
143
|
+
* **QEA**: Enterprise Architect SQLite databases
|
|
144
|
+
* **XMI**: OMG XML Metadata Interchange (v2.1+)
|
|
145
|
+
* **EXPRESS**: ISO 10303-11 schemas
|
|
146
|
+
* **LutaML**: Native modeling DSL
|
|
147
|
+
|
|
148
|
+
=== Output Formats
|
|
149
|
+
|
|
150
|
+
* **LUR**: LutaML UML Repository packages
|
|
151
|
+
* **SVG**: Scalable Vector Graphics diagrams
|
|
152
|
+
* **JSON**: Model data export
|
|
153
|
+
* **YAML**: Model data export
|
|
154
|
+
* **CSV**: Tabular data export
|
|
155
|
+
* **Markdown**: Documentation
|
|
156
|
+
* **HTML**: Static documentation sites
|
|
157
|
+
|
|
158
|
+
== Architecture
|
|
159
|
+
|
|
160
|
+
LutaML uses a **two-layer architecture**:
|
|
161
|
+
|
|
162
|
+
1. **Parse Layer**: Direct 1:1 mapping of source formats to Ruby objects
|
|
163
|
+
2. **Domain Layer**: Rich UML metamodel with hierarchical relationships
|
|
164
|
+
|
|
165
|
+
This design ensures:
|
|
166
|
+
|
|
167
|
+
* **Clean separation** between formats and models
|
|
168
|
+
* **Extensibility** for new formats
|
|
169
|
+
* **Type safety** and validation
|
|
170
|
+
* **Performance** through optimized transformations
|
|
171
|
+
|
|
172
|
+
See link:{site-baseurl}/core/architecture/[System Architecture] for details.
|
|
173
|
+
|
|
174
|
+
== Getting Started
|
|
175
|
+
|
|
176
|
+
Ready to start using LutaML?
|
|
177
|
+
|
|
178
|
+
1. link:{site-baseurl}/core/installation/[Install LutaML] - Get set up
|
|
179
|
+
2. link:{site-baseurl}/tutorials/getting-started/[Quick Start Tutorial] - Your first steps
|
|
180
|
+
3. link:{site-baseurl}/guides/[Guides] - Task-oriented documentation
|
|
181
|
+
4. link:{site-baseurl}/references/[Reference] - Complete API documentation
|
|
182
|
+
|
|
183
|
+
== License and Community
|
|
184
|
+
|
|
185
|
+
LutaML is open source and maintained by https://www.ribose.com[Ribose].
|
|
186
|
+
|
|
187
|
+
* **License**: https://opensource.org/licenses/MIT[MIT]
|
|
188
|
+
* **Source**: https://github.com/lutaml/lutaml[GitHub Repository]
|
|
189
|
+
* **Package**: https://rubygems.org/gems/lutaml[RubyGems]
|
|
190
|
+
* **Issues**: https://github.com/lutaml/lutaml/issues[Issue Tracker]
|
|
191
|
+
|
|
192
|
+
== See Also
|
|
193
|
+
|
|
194
|
+
* link:{site-baseurl}/core/installation/[Installation Guide]
|
|
195
|
+
* link:{site-baseurl}/core/architecture/[System Architecture]
|
|
196
|
+
* link:{site-baseurl}/concepts/qea-parsing/[QEA Parsing Concept]
|
|
197
|
+
* link:{site-baseurl}/concepts/lur-format/[LUR Package Format]
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
permalink: /core/
|
|
3
|
+
title: Core Topics
|
|
4
|
+
nav_order: 1
|
|
5
|
+
has_children: true
|
|
6
|
+
---
|
|
7
|
+
= Core Topics
|
|
8
|
+
|
|
9
|
+
== Overview
|
|
10
|
+
|
|
11
|
+
This section covers fundamental concepts and essential information about LutaML's architecture, components, and capabilities.
|
|
12
|
+
|
|
13
|
+
== What You'll Find Here
|
|
14
|
+
|
|
15
|
+
=== link:{site-baseurl}/core/overview/[What is LutaML?]
|
|
16
|
+
|
|
17
|
+
Introduction to LutaML, its purpose, and the problems it solves. Learn about the unified interface for accessing multiple modeling languages.
|
|
18
|
+
|
|
19
|
+
=== link:{site-baseurl}/core/installation/[Installation]
|
|
20
|
+
|
|
21
|
+
Get LutaML installed and configured on your system. Covers installation via RubyGems, bundler, and from source.
|
|
22
|
+
|
|
23
|
+
=== link:{site-baseurl}/core/architecture/[System Architecture]
|
|
24
|
+
|
|
25
|
+
Understanding LutaML's two-layer architecture: the QEA parse layer and the UML domain layer. Learn how data flows through the system.
|
|
26
|
+
|
|
27
|
+
=== Core Concepts
|
|
28
|
+
|
|
29
|
+
==== link:{site-baseurl}/concepts/qea-parsing/[QEA Direct Parsing]
|
|
30
|
+
|
|
31
|
+
Learn about Enterprise Architect's QEA format and why direct SQLite parsing is 10-20x faster than XMI export.
|
|
32
|
+
|
|
33
|
+
==== link:{site-baseurl}/concepts/lur-format/[LUR Package Format]
|
|
34
|
+
|
|
35
|
+
Understanding LutaML's compressed binary format for fast loading and efficient querying of UML models.
|
|
36
|
+
|
|
37
|
+
==== link:{site-baseurl}/concepts/uml-models/[UML Model Structure]
|
|
38
|
+
|
|
39
|
+
How LutaML represents UML models internally, including packages, classes, attributes, and relationships.
|
|
40
|
+
|
|
41
|
+
==== link:{site-baseurl}/concepts/diagram-generation/[Diagram Generation]
|
|
42
|
+
|
|
43
|
+
Overview of LutaML's production-ready diagram generation system with EA-style rendering.
|
|
44
|
+
|
|
45
|
+
== Related Sections
|
|
46
|
+
|
|
47
|
+
* link:{site-baseurl}/tutorials/[Tutorials] - Step-by-step learning paths
|
|
48
|
+
* link:{site-baseurl}/guides/[Guides] - Task-oriented how-to documentation
|
|
49
|
+
* link:{site-baseurl}/references/[Reference] - Detailed technical specifications
|