Auriga is a suite of dotnet libraries and tools for reading, manipulating and writing Eclipse Capella™ models. Capella is an open-source Model-Based Systems Engineering (MBSE) tool implementing the Arcadia method; its models are Ecore-based XMI. Auriga makes the Capella semantic model available as an in-memory .NET object graph, and builds on ECoreNetto — it is a sibling of uml4net and SysML2.NET, and a part of modeltopia.
The core library: shared base types (Auriga.Core) plus two generated object models — the Capella semantic metamodel (Auriga.Model.*, the five Arcadia layers and common packages) and the Sirius/GMF diagramming metamodel (Auriga.Diagram.*). Combined with Auriga.Xmi, it reads and writes Capella models as an in-memory object graph.
XMI readers for Capella semantic files (.capella / .melodymodeller) and Sirius diagram files (.aird), resolving intra-file and cross-file (.capellafragment) references into one graph, plus a writer that serializes back to Capella-faithful XMI. See XMI Writer.
LINQ-style query extensions over the object graph — containment navigation, component/function allocation, ports, exchanges, and cross-layer realization. See Query Extension Methods.
Renders a model's diagrams and tables to SVG, PNG/JPEG and Excel, over an intermediate Diagram model whose layout comes from the persisted Sirius/GMF geometry — never computed. Rendering degrades rather than throws; enable Debug logging to see what an export couldn't resolve. See Sirius .aird Diagrams.
The aurigatools command-line application exports the diagrams of a Capella model without writing any code, published as a dotnet tool:
dotnet tool install --global mbse.Auriga.Tools
aurigatools list "In-Flight Entertainment System.aird"
aurigatools export "In-Flight Entertainment System.aird" -o out --format svg,png --scale 2
list shows the representations a model holds; export writes them (--format svg|png|jpeg|xlsx, --scale/--dpi, --name to filter by wildcard). Every release also attaches a standalone executable per platform (aurigatools-<version>-win-x64.zip etc.) — download, unzip, run, no .NET required. Each zip also holds THIRD-PARTY-NOTICES.txt, the license notices of everything the executable bundles. Each comes with a signed build provenance attestation, see Build Provenance.
A development-time tool, published as no package, that generates both object models above from the vendored .ecore files via ECoreNetto and Handlebars templates. The generated code is committed and a CI drift guard regenerates it on every build. See Auriga.CodeGenerator Design and Capella Metamodel HTML Report.
Install the packages from NuGet:
dotnet add package mbse.Auriga
dotnet add package mbse.Auriga.Xmi
dotnet add package mbse.Auriga.Extensions
dotnet add package mbse.Auriga.Reporting
Load a Capella project, navigate the Arcadia layers, query it, and write it back:
using System.Linq;
using Auriga.Extensions;
using Auriga.Xmi;
// 1) Load a project — pass the .capella / .melodymodeller file or the project directory.
// Referenced .capellafragment files are discovered and resolved into one object graph.
var project = CapellaProject.Load("In-Flight Entertainment System/In-Flight Entertainment System.capella");
// 2) Navigate the Arcadia layers as first-class properties (null when a layer is absent).
var logical = project.LogicalArchitecture;
var physical = project.PhysicalArchitecture;
// 3) Query with LINQ and the Auriga.Extensions methods.
foreach (var component in logical!.QueryAllComponents())
{
foreach (var function in component.QueryAllocatedFunctions())
{
// function.IsAllocatedTo(component) == true
}
}
// Any element can walk its own subtree; combine with LINQ for ad-hoc queries.
var exchanges = project.Project!
.QueryAllContainedElements()
.OfType<Auriga.Model.Fa.IFunctionalExchange>();
// 4) Write the (possibly modified) model back to disk — the fragment layout is preserved.
var writer = XmiWriterBuilder.Create().Build();
writer.Write(project.Project!, "out/In-Flight Entertainment System.capella");Render the diagrams of a Sirius .aird session to SVG, PNG and Excel:
using System.Linq;
using Auriga.Reporting;
using Auriga.Reporting.Drawing;
using Auriga.Xmi;
using var reporting = ReportingBuilder.Create();
using var reader = XmiReaderBuilder.Create();
var session = reader.BuildAirdModelLoader().Load("In-Flight Entertainment System/In-Flight Entertainment System.aird");
var svgExporter = reporting.BuildSvgExporter();
var rasterExporter = reporting.BuildRasterExporter();
foreach (var diagram in reporting.BuildDiagramBuilder().BuildAll(session.Elements.Values))
{
svgExporter.ExportToFile(diagram, $"out/{diagram.Name}.svg");
rasterExporter.ExportToFile(diagram, $"out/{diagram.Name}.png", new RasterOptions { Scale = 2 });
}
// Tables export to Excel the same way, one worksheet per table.
var xlsxExporter = reporting.BuildXlsxTableExporter();
foreach (var table in session.Elements.Values.OfType<Auriga.Diagram.Table.IDTable>())
{
xlsxExporter.Export(table, $"out/{table.Uid}.xlsx");
}See Sirius .aird Diagrams, ContainerList Design, Query Extension Methods
and XMI Writer for these APIs in depth.
The packages are available on NuGet under the mbse.Auriga prefix; the assembly names and namespaces are available as Auriga.*:
mbse.Auriga— the Capella object model (Auriga.Model.*) and the Sirius/GMF diagram object model (Auriga.Diagram.*)mbse.Auriga.Xmi— the.capella/.melodymodeller/.airdreaders and writersmbse.Auriga.Extensions— query extension methodsmbse.Auriga.Reporting— the intermediate diagram model built from the persisted.airdlayout, with SVG, PNG/JPEG and Excel exportsmbse.Auriga.Tools— theaurigatoolscommand-line application, installed withdotnet tool install -g mbse.Auriga.Tools
GitHub Actions are used to build and test the Auriga libraries.
| Branch | Build Status |
|---|---|
| Master | |
| Development |
Background and design documentation lives in the Auriga wiki:
- Capella Metamodel Inventory — the
.ecorefiles, the inter-package dependency graph, and the v1 code-generation scope - Sirius Metamodel Inventory — the same inventory for the Sirius/GMF diagramming
.ecorefiles behind the.airdrepresentation model - Arcadia Notes — the layer, allocation, realization, and containment conventions the public API must respect
- ECoreNetto Validation — proof that ECoreNetto loads the full Capella metamodel with fully resolved references
- Sirius ECoreNetto Validation — the same proof for the Sirius/GMF metamodel
- Auriga.CodeGenerator Design — how the vendored
.ecorefiles become the committed C# object model: the pipeline, the Handlebars templates, and the naming rules - Fragment Loading — how a model split across
.capellafragmentfiles is loaded and its cross-fragmenthrefs resolved - Sirius
.airdDiagrams — the two parallel trees an.airdcarries, how they pair into the intermediate diagram model, and what the rendering does and does not promise - Capella Metamodel HTML Report — building and hosting the browsable metamodel report (
Auriga.CodeGenerator, with Docker build scripts) - Query Extension Methods — the
Auriga.ExtensionsLINQ query set for functions, components, ports, exchanges, and cross-layer allocation/realization - ContainerList Design — the non-bypassable
Collection<T>-based containment collection and its exclusive-ownership (reject-not-steal) semantics - XMI Writer — serializing the object graph back to Capella-faithful XMI (
Auriga.Xmi), fragment layout, and the fidelity model - Validation Against Real Capella Models — the round-trip validation harness, per-model results, and exactly how out-of-scope content (other versions, add-on viewpoints, diagrams) is handled
Eclipse Capella™ is an open-source MBSE tool hosted by the Eclipse Foundation. It implements the Arcadia method, a structured engineering method for the definition and validation of complex systems architecture. Learn more at https://mbse-capella.org and https://eclipse.dev/capella/.
As part of our commitment to security and transparency, this project includes a Software Bill of Materials (SBOM) in the associated NuGet packages. The SBOM provides a detailed inventory of the components and dependencies included in the package, allowing you to track and verify the software components, their licenses, and versions.
Why SBOM?
- Improved Transparency: Gain insight into the open-source and third-party components included in this package.
- Security Assurance: By providing an SBOM, we enable users to more easily track vulnerabilities associated with the included components.
- Compliance: SBOMs help ensure compliance with licensing requirements and make it easier to audit the project's dependencies.
You can find the SBOM in the NuGet package itself, which is automatically generated and embedded during the build process.
Starting with release 2.0.0, the standalone aurigatools executables attached to each GitHub release come with a signed SLSA build provenance attestation. The attestation proves that the zip you downloaded, and the executable inside it, were built by the release workflow of this repository from the tagged commit, and that they haven't been modified since. It is signed through Sigstore and stored with this repository's attestations.
Verify a downloaded zip, or the executable unzipped from it, with the GitHub CLI:
gh attestation verify aurigatools-2.0.0-win-x64.zip --repo STARIONGROUP/Auriga
The command fails if the file doesn't match an attestation created by this repository. The SHA256 of each zip is also listed in the release notes.
The NuGet packages are not attested: nuget.org adds its own repository signature to every package it receives, which changes the file. Their integrity is covered by that NuGet signature, and they are built deterministically with Source Link, so the sources in the debug symbols map to the exact commit on GitHub.
The Auriga libraries are provided to the community under the Apache License 2.0.
Eclipse Capella™ is a trademark of the Eclipse Foundation. Auriga is an independent project and is not affiliated with or endorsed by the Eclipse Foundation.
Notable changes are recorded in CHANGELOG.md, under ## [Unreleased], in the ### <PackageId> subsection of the package they affect, as a - [ADD] (new capability), - [FIX] (corrected behaviour) or - [CHG] (changed or removed API) bullet. A change confined to the development-time tools (Auriga.CodeGenerator, Auriga.Samples), to tests or to documentation needs no entry.
The <PackageReleaseNotes> in each .csproj is generated, not written: the Nuget-Release workflow moves the [Unreleased] section under the version being released, writes each package's bullets into that package's .csproj, and builds the GitHub release body from the same section — so a published package carries exactly the notes of the release it belongs to. Editing those elements by hand has no lasting effect, since the next release overwrites them. The workflow takes a dry_run input that renders the release notes and stops, without committing, packing or publishing anything.
That rendering is done by tools/SyncReleaseNotes.cs, which the workflow invokes and which runs anywhere the .NET SDK does, so what a release will say can be checked before dispatching one:
dotnet run tools/SyncReleaseNotes.cs -- --version 1.1.0It rewrites CHANGELOG.md, the five packable .csproj files and RELEASE_NOTES.md in the working tree and commits nothing, so git diff shows the whole of what a release would change, and git checkout . undoes it.
Contributions to the code-base are welcome. However, before we can accept your contributions we ask any contributor to sign the Contributor License Agreement (CLA) and send this digitally signed to s.gerene@stariongroup.eu. You can find the CLA's in the CLA folder.
