Authoring at the Start of the Chain: RDF-First Models with la-gram
Until now, the Linked.Archi toolbox has centred on converters. They lift models out of the tools that made them into one RDF graph. That graph answers questions across silos. It also shows what is wrong with the models.
Showing a problem is not fixing it. A converter shows it late: after export, conversion and merge. The fix still happens in the original tool, often days later.
This article argues for moving the checks to the start of the chain, where the model is made. It then describes la-gram, the Linked.Archi modeller built for this, as it stands in December 2026. It shows how each part of la-gram uses the semantic assets published on meta.linked.archi.
What the converters showed
The Linked.Archi converters read ArchiMate exchange files, BPMN, PlantUML, Structurizr workspaces, Backstage catalogues and LeanIX exports. Each writes RDF against the published ontologies. Teams keep their tools. The graph joins their work.
This works. One SPARQL query can follow a capability to the applications that support it and the decisions that changed them. An AI agent can query the graph instead of guessing from documents. The answers are repeatable.
The graph also works as a mirror. Once the models sit in one graph, next to their metamodels' shapes, the gaps show:
- elements with no definition;
- services that nothing realizes;
- relationships the metamodel does not allow;
- one application under three names in three tools.
The Capture Wall called converters the first move: do not ask people to capture again what already exists. That still holds. But a first move is not yet a process.
Where late checks break down
The convert-after chain runs one way. Findings travel back by hand.
Left: the checks run on the merged graph, and their findings go back to the modelling tool by hand. Right: the same checks run while the model is drawn, again in CI, and again on the graph.
A finding raised after the merge has a long way to go:
- Someone reads the report.
- They work out which source and which tool it came from.
- They ask the owner to fix it.
- The owner fixes it at the next edit, if they remember.
- The next conversion shows whether the fix worked.
Dashboards help to plan this work. They do not make it continuous. The lifecycle guide names the result: validation without consequence, a dashboard of warnings that nobody addresses.
The rules are not the problem. They already exist as SHACL shapes and SPARQL queries. The problem is where they run. Most modelling tools cannot run SHACL or SPARQL. The person drawing the model never meets the rules while drawing.
Keeping models in Git helps. CI can validate every merge request, as Sealing the Knowledge-Leaking Pipes describes. The loop gets shorter. It is still a loop: commit, wait for the pipeline, read the log, go back and fix.
Check the model where it is made
Three things follow:
- The rules run before the commit. The modeller sees a finding on the element while the context is fresh.
- There is one set of rules. The same shapes run in the editor, in CI and on the merged graph. Nothing is translated, so nothing drifts.
- The source is RDF. No conversion stands between the model and the graph. Nothing is lost or guessed on the way.
Early checks do not replace review. SHACL checks structure. It cannot check that a model matches reality, or that a decision was agreed. The lifecycle guide separates automated from human validation. Early checks leave people more time for the second kind.
la-gram today
la-gram is the Linked.Archi modeller. Version 0.5.0 was released on 1 December 2026. It runs in the browser and as a desktop app for macOS, Windows and Linux. It is open source, under the Apache License 2.0. The la-gram documentation covers each part in detail. This article gives the outline.

la-gram with its example model, Acme's online shop, in ArchiMate 4.0.
The model is RDF
The model lives in an RDF store. Diagrams, the model tree, saved files and shared rooms are all views of that store. A diagram holds nothing that the store does not.
A model saves as TriG by default, or in another RDF format. Every resource gets an IRI in the model's own namespace. la-gram, its command line and the converters all mint IRIs in the shared IRI layout.

The RDF panel shows the open view as Turtle, as the file holds it.
How la-gram uses the semantic assets
la-gram has no code for any one modelling language. What it knows about ArchiMate comes from the semantic assets published on meta.linked.archi. A metamodel's manifest names its parts. la-gram reads each part and gives it a job. The examples use ArchiMate 4.0. Any other Linked.Archi metamodel works the same way.
| Semantic asset | ArchiMate 4.0 | What la-gram does with it |
|---|---|---|
| Manifest | archimate4/metamodel | names the other parts, so they can be loaded |
| Ontology | archimate4/onto | element and relationship types, with names, definitions and guidance |
| Taxonomy | archimate4/tax | palette groups, relationship categories, and the order relationships are proposed in |
| Notation | archimate4/notation | each type's figure, colours and icon |
| Relationship shapes and tables | archimate4/shapes, archimate4/relationship-tables | which relationships two elements may have |
| Element, principle and viewpoint shapes | archimate4/element-shapes, archimate4/principle-shapes, archimate4/viewpoint-shapes | validation while you draw |
| Viewpoints | archimate4/viewpoints | what a view may show, for whom, and why |
| Questions | archimate4/questions | the Questions menu and the model checks |
| Presentation contexts | archimate4/presentation-contexts | names, pictures and notation for each audience |
| Reference data | archimate4/reference-data | values a property can point to, such as an environment or a criticality level |
The ArchiMate 4.0 guide explains each part in The manifest is your map. The sections below show them at work.
Manifest and catalogue
Assets used: archimate4/metamodel · catalog
ArchiMate 4.0 and 3.2 are bundled, with Basic and the Architecture Decisions and Architecture Processes extensions. They work offline. Any other metamodel in the catalogue loads on demand. Your own loads from an address or a file; Build Your Own Metamodel shows how to make one.

Left: the catalogue. Right: the parts the ArchiMate 4.0 manifest names, as la-gram loaded them.
Ontology, taxonomy and notation
Assets used: archimate4/onto (Application Component) · archimate4/tax (palette grouping) · archimate4/notation
The palette lists the ontology's types in the taxonomy's groups. Relationship types come in their categories, strongest first. Element types come by domain, in the taxonomy's order; Group by switches them to aspects. Each type shows the icon its notation publishes. The canvas draws each element in the same notation.

The palette: relationships by category, elements by domain, each with its notation's icon.
About ‹type› reads the ontology and the taxonomy for one type. It shows the definition, the specification's guidance, and where the taxonomy files the type. Point at a palette entry, and About shows that type.

About ‹type› for Application Component: the ontology's definition and the taxonomy's two classifications.
Relationship shapes and tables
Assets used: archimate4/shapes · archimate4/relationship-tables · archimate4/tax (order of proposal) · archimate4/onto (Serving)
Connect two elements, and la-gram offers only the relationships the metamodel permits. The relationship shapes and tables decide what is permitted. The taxonomy's order of proposal decides what comes first.
Each option says why it is allowed. only by derivation means the tables permit it only as a derived relationship. always permitted marks the associations. drawn in the metamodel marks a type that the specification's own figures draw.

The relationships Card payment may have with Web shop, best first, each with its reason.
Validation while you draw
Assets used: archimate4/principle-shapes (ServiceWithoutRealizationShape, CriticalNodeSingleDeploymentShape) · archimate4/element-shapes · archimate4/viewpoint-shapes · core-shapes
la-gram validates the model in a background worker, so editing never waits. It runs 300 ms after the last change and checks only what that change can affect. It checks:
- SHACL shapes, the metamodel's and the core's: types, cardinalities, values;
- the relationship tables: which types may join which;
- SPARQL-based rules in the shapes, such as ArchiMate's principles and the viewpoint rules;
- references to anything the model does not contain.
Findings appear in a Validation tab and on the canvas. A rule reports a violation and cannot be switched off. Advice reports a warning or an info, such as a single point of failure. A team can switch off advice that does not fit its practice, one shape at a time.
The example model shows this. Its service "Gift wrapping" has nothing that realizes it. la-gram reports a warning from ArchiMate 4.0's ServiceWithoutRealizationShape. Draw a realization from an application component to the service, and the warning goes.

The planted warning on Gift wrapping, with the shape that raised it.
Viewpoints
Assets used: archimate4/viewpoints (Organization Viewpoint) · archimate4/viewpoint-shapes
A view can conform to a viewpoint. Choose one in the toolbar's Viewpoint. The palette then offers only the viewpoint's element types. Elements outside it are greyed. The viewpoint shapes check the view against it.
About ‹viewpoint› shows what the viewpoint shows, the stakeholders it is for, their concerns and its purpose. All of it comes from the viewpoints asset.

A viewpoint narrows the palette and says who the view is for.
Model questions
Assets used: archimate4/questions (Which services does nothing realise?) · core-questions
Each metamodel publishes the questions its stakeholders ask of a model, as SPARQL. The Questions menu lists them by stage. A Concern filter keeps those that address one concern. The questions that fit the open view's viewpoint come first.
A question whose answers are problems is marked finding. Model checks, in the Validation tab, asks all of them at once: orphans, unrealized services and requirements, elements with no definition. Each answer says what a row means, and what it does not prove.

The model questions, the ones that fit the view first.
Presentation contexts
Assets used: archimate4/presentation-contexts · archimate4/notation
A presentation context is an audience: executives, architects, developers, operations, governance. Choose one in the toolbar's Presentation. la-gram then draws the view for that audience, in its notation set. The model does not change.
An element can have its own name and picture for each audience. Both are model data, shown in every view. A picture is an https:// address, or a file kept in the model. It is drawn inside the element's figure, in place of its glyph, or as the figure itself. Names, Labels and Pictures per Presentation Context explains how they are written.
In the example, Web shop is "Online shop" for executives, drawn as a storefront picture. Every other audience sees the application component.

Left: the view in the default notation and for executives. Right: the name and the picture given for executives.
Reference data
Assets used: archimate4/reference-data · arch-processes (lifecycle stages)
Reference data lists values that a property can point to. ArchiMate 4.0's lists environment types, such as Production, and criticality levels, such as Mission Critical. Lifecycle stages, such as Phase In and Active, come from the Architecture Processes extension, which la-gram bundles. In the Properties tab, a property's value can be a link to one of them.
From the canvas to the graph
Git and CI
la-gram opens and saves models on GitHub and GitLab. It pulls changes and merges them three ways, with a choice on each conflict. It opens merge requests. Auto-commit is optional. For live work, a small collaboration server shares a model in real-time rooms.
la-gram-git is a command line built from la-gram's own engine. It says of a model file what la-gram would.
npx @linked.archi/la-gram-git check --base origin/main # every model file sound, no new violation
npx @linked.archi/la-gram-git diff origin/main --comment # the change by element, on the merge request
npx @linked.archi/la-gram-git init gitlab # or github: the CI template
The CI templates for GitHub Actions and GitLab CI run both commands on every request. A change that adds a SHACL violation fails the job. A comment lists the concepts added, changed and removed. Reviewers read model changes, not lines of TriG.
The same shapes now run three times: while drawing, on the merge request, and on the merged graph.
Provenance on every edit
la-gram records who changed what. Each concept gets a created and a modified date. The edits up to each save form one PROV activity, linked to the person and to la-gram at its version. This sits in its own graph in the saved file. The History tab compares versions element by element.
A converted concept names the source file it was derived from. An authored concept names who made it, with which tool, and when.
Converters stay as the on-ramp
- models that already exist in other tools;
- sources that are collected, not drawn, such as a Backstage catalogue or a LeanIX workspace;
- teams that work in BPMN, C4 or PlantUML and will keep doing so.
For ArchiMate, la-gram joins the two paths. It imports the ArchiMate Model Exchange format (see ArchiMate Exchange Format). It names what it imports as the ArchiMate converter does. The same file, imported or converted, gives the same local names, folders and custom properties. A model can leave the converter pipeline for la-gram and keep its IRIs, as long as it keeps its namespace.
la-gram also exports the exchange format for ArchiMate 3.2 models. Tools that read exchange files can still read the model.
This refines what What is Linked.Archi? says. Existing tools are still not replaced. There is now a second path, for teams that want the checks at the start.
Moving a model across
A practical order for an ArchiMate model:
- Keep converting for now. Use the graph to see what is wrong.
- Export the model as an exchange file and import it into la-gram. It opens as ArchiMate 3.2, with its diagrams, styles and folders.
- Save it as TriG in a Git repository. Add the la-gram-git CI template.
- Work through the findings in la-gram. Each one points at its element.
- Make the la-gram file the master. Export an exchange file only for tools that still need one.
Step 5 matters. A model edited in two tools has two masters, and the late loop comes back. The Capture Wall asks for declared master sources. This is where to declare one.
Current limits
- Exchange means ArchiMate 3.2. The exchange format is written for ArchiMate 3.x. Imports open as 3.2, and only 3.2 models export. la-gram does not convert a 3.2 model to 4.0.
- Other notations still go through converters. Files from BPMN, C4 or PlantUML tools are not imported directly. The RDF their converters write opens in la-gram.
- Some parts of a metamodel are not read yet. la-gram skips the derivation rules, which need a SHACL-AF engine. It also skips the reference models and deliverable templates, which feed document generation. A file that already holds derived relationships shows them.
- Advice switched off stays local. The choice is kept in one browser. la-gram-git and other tools still report it.
- Pre-1.0. la-gram is at 0.x, and features change between releases. Opening a file migrates older vocabulary. The la-gram alpha, published from each change, shows what comes next.
- Structure, not truth. A model can pass every shape and still be wrong. Review stays with people.
Try it
- Open la-gram in the browser, or open the example model.
- Follow Your first model, which takes a few minutes.
- Import an exchange file you already have, and open the Validation tab.
- Add la-gram-git to the CI of a model repository.
Related
- The Capture Wall: converters as the first move against lost knowledge, and declared master sources.
- Sealing the Knowledge-Leaking Pipes: authored Turtle, reviewed in merge requests and validated in CI.
- What is Linked.Archi?: the project's three parts.
- Integrating Archi Tool with Linked.Archi Knowledge Graphs: the convert-after path for Archi models.
- ArchiMate 4.0 Modelling Guide: the manifest and each semantic asset la-gram reads.
- Architecture Knowledge Lifecycle: the validate stage, and where it breaks down.
- Linked.Archi Converters: downloads and documentation for each converter.
- la-gram documentation: every part of the modeller.
Linked.Archi Publications