Integrating Archi Tool with Linked.Archi Knowledge Graphs

Type: Guide
Published: 2025-01-16
Read time: 8 mins read
Licence: CC BY 4.0
How to extract ArchiMate models from Archi tool and integrate them into semantic knowledge graphs for cross-tool architecture management.
archi-toolarchimateintegrationknowledge-graphrdf

About Archi Tool

What is Archi Tool

Archi is a free, open-source, cross-platform tool for creating ArchiMate models. As the world's most popular ArchiMate modeling tool, it's downloaded over 6,000 times monthly by enterprise architects, consultants, universities, and organizations worldwide.

Learn more: Archi website, GitHub repository

Learn more: Archi website, GitHub repository

The Integration Challenge

Organizations using Archi face a common challenge: their ArchiMate models exist in isolation from other architectural artifacts. Architecture decisions live in ADR repositories, API specifications in Swagger files, infrastructure definitions in Terraform, and documentation in Confluence. Each tool serves its purpose, but the connections between them remain implicit.

When an architect asks "Which applications are affected by this security decision?" or "What business capabilities depend on this deprecated API?", answering requires manual correlation across multiple sources. The knowledge exists but isn't queryable.

The Linked.Archi Approach

Rather than replacing Archi, Linked.Archi creates a semantic layer that connects Archi models to other architectural knowledge sources. By extracting ArchiMate models as RDF graphs and aligning them with a common metamodel, organizations can:

  • Query across Archi models and other tools simultaneously
  • Trace business capabilities to implementing systems and their APIs
  • Generate stakeholder-specific views combining data from multiple sources
  • Maintain Archi as the modeling tool while enabling cross-tool intelligence

Archi's Export Capabilities

Archi provides several export formats that enable integration. See Archi documentation for complete details:

ArchiMate Exchange Format (.archimate) - XML-based standard format for ArchiMate models, ideal for parsing and transformation to RDF

What is ArchiMate Exchange Format

The ArchiMate Exchange Format is an XML-based standard for representing ArchiMate models in a tool-independent way. It enables models created in one tool (like Archi) to be imported into another tool or transformed into different formats like RDF for knowledge graph integration.

Learn more: ArchiMate Exchange Format, ArchiMate, Archi tool

CSV Export - Tabular export of elements and relationships, useful for bulk processing and analysis

GRAQL Export - Graph database format that can be transformed to RDF triples

jArchi Scripting - JavaScript-based automation enabling custom export logic and real-time integration

Integration Architecture

Model Extraction

The first step extracts ArchiMate models from Archi's native format:

// jArchi script example - extract model to JSON
var model = $('archimate-model').first();
var elements = $('element').map(e => ({
  id: e.id,
  type: e.type,
  name: e.name,
  documentation: e.documentation,
  properties: e.prop()
}));
var relations = $('relationship').map(r => ({
  id: r.id,
  type: r.type,
  source: r.source.id,
  target: r.target.id
}));

RDF Transformation

Transform ArchiMate elements to RDF using the Linked.Archi core ontology. RDF triples are the fundamental unit of semantic knowledge representation.

Structure

Subject - The resource being described (URI or blank node)

Predicate - The property or relationship type (URI)

Example:

@prefix am4: <https://meta.linked.archi/archimate4/onto#> .
@prefix ex:  <https://model.example.com/acme#> .

ex:CustomerPortal am4:serves ex:CustomerSelfService .

Note on the vocabulary. The kg: terms below are an illustrative vocabulary, not terms of meta.linked.archi. For how Archi/ArchiMate models are lifted onto the published ontologies (am4: for ArchiMate 4, arch: for the core), see the converters documentation and the ArchiMate 4.0 modeling guide.

Example transformation:

@prefix kg: <https://example.org/kg#> .
@prefix archimate: <http://www.opengroup.org/archimate/> .
@prefix : <https://linked.archi/id/> .

:customer-portal
  a archimate:ApplicationComponent ;
  kg:name "Customer Portal" ;
  kg:documentation "Web-based customer self-service portal" ;
  kg:implements :customer-self-service ;
  kg:exposesAPI :customer-api-v2 .

:serving-123
  a archimate:ServingRelationship ;
  kg:source :customer-portal ;
  kg:target :mobile-app .

Cross-Tool Linking

# Link to architecture decision
:customer-portal
  kg:implementsDecision :adr-2024-03-use-react-framework .

# Link to API specification
:customer-api-v2
  kg:specifiedIn <https://github.com/org/apis/blob/main/customer-api.yaml> ;
  kg:usedBy :customer-portal .

# Link to infrastructure
:customer-portal
  kg:deployedOn :eks-cluster-prod .

Practical Use Cases

Impact Analysis Across Tools

Query: "What business capabilities are affected if we deprecate the legacy authentication service?"

PREFIX : <https://linked.archi/id/>
SELECT ?capability ?app ?decision
WHERE {
  :legacy-auth kg:supports ?app .
  ?app kg:realizes ?capability .
  ?capability a archimate:BusinessCapability .
  OPTIONAL { ?decision kg:affects ?app }
}

Results combine ArchiMate capability mappings with ADR decisions and deployment information - a view impossible within Archi alone.

Compliance Reporting

Generate GDPR compliance reports showing which ArchiMate application components process personal data, what security controls apply, and which decisions document the rationale:

PREFIX : <https://linked.archi/id/>
SELECT ?app ?dataObject ?control ?decision
WHERE {
  ?app a archimate:ApplicationComponent ;
       archimate:accesses ?dataObject .
  ?dataObject kg:containsPII true .
  ?app kg:protectedBy ?control .
  ?control kg:addressesRegulation :gdpr .
  OPTIONAL { ?decision kg:justifies ?control }
}

Architecture Review Automation

Before architecture reviews, automatically check if new applications:

  • Align with reference architectures defined in Archi
  • Follow patterns documented in ADRs
  • Use approved technology components
  • Implement required security controls

Violations are flagged with specific references to Archi elements and related decisions.

Multi-Model Federation

Large organizations often have multiple Archi models - one per business unit or domain. By extracting all models to a federated knowledge graph:

  • Identify duplicate or overlapping capabilities across domains
  • Find shared services that could be consolidated
  • Trace end-to-end value streams spanning multiple models
  • Generate enterprise-wide views while maintaining domain autonomy

Living Documentation

Generate always-current documentation by querying the knowledge graph:

For Developers: "Show me all APIs exposed by applications in the Customer domain" - combines Archi application components with OpenAPI specs

For Executives: "What business capabilities are enabled by our cloud migration?" - links Archi capability models to infrastructure deployment status

For Compliance: "Which systems handle payment data and what controls protect them?" - connects Archi data flow models to security control implementations

Implementation Patterns

Batch Synchronization

Export Archi models nightly, transform to RDF, and update the knowledge graph. Suitable for stable models with infrequent changes.

Event-Driven Integration

Use jArchi scripts to detect model changes and push updates to the knowledge graph in real-time. Enables immediate cross-tool queries.

Hybrid Approach

Maintain Archi as the authoritative source for structural models while enriching elements with metadata from other tools. Architects model in Archi; the knowledge graph adds context from ADRs, APIs, and infrastructure.

Metamodel Alignment

Archi models use ArchiMate metamodel. Other tools use different metamodels. Linked.Archi provides mapping ontologies to align them.

Role in Knowledge Graphs

The metamodel is expressed as ontologies (OWL/RDFS) that define:

  • Classes of architectural elements
  • Properties and attributes
  • Relationship types and constraints
  • Inference rules for automated reasoning

Different tools export data conforming to the metamodel, enabling semantic integration without forcing everyone into a single tool. The result is an architectural knowledge graph queryable across all sources.

# Map ArchiMate to organization's metamodel
archimate:ApplicationComponent rdfs:subClassOf kg:System .
archimate:BusinessCapability rdfs:subClassOf kg:Capability .
archimate:ServingRelationship kg:mapsTo kg:provides .

This allows queries using organization-specific terminology while preserving ArchiMate semantics.

Benefits

For Architects - Continue using familiar Archi tool while gaining cross-tool query capabilities

For Governance - Automated compliance checking against architectural principles defined in Archi

For Stakeholders - Generate views combining Archi models with real-time system data

For Teams - Connect architectural intent (Archi models) with implementation reality (code, infrastructure, APIs)

For Organizations - Federate multiple Archi models into enterprise-wide knowledge graphs

Getting Started

  1. Export - Use Archi's exchange format or jArchi scripts to extract models
  2. Transform - Convert ArchiMate XML to RDF using Linked.Archi ontologies
  3. Query - Use SPARQL to answer questions spanning Archi and other tools
  4. Generate - Create stakeholder-specific views from the unified knowledge graph

Next Steps

Archi remains the modeling tool architects love. Linked.Archi makes those models part of a larger, queryable architectural knowledge ecosystem.