Custom Relationship Types on ArchiMate 4, without Losing the Predicate

Specializing a qualified relationship in Linked.Archi, and checking that class, predicate and reifier agree

Type: Guide
Published: 2026-09-19
Read time: 15 mins read
Licence: CC BY 4.0
When a team needs a relationship type that ArchiMate 4 lacks, it can specialize Serving in three declarations, keep ArchiMate's validation and traversal, and check with one shape and one query that each occurrence's class matches the triple it reifies.
qualified-relationshipsarchimaterdf-1-2shaclsparql

Part of a series on qualified relationships: Qualified Relationships without Losing Your Predicates records the design as it stood in April 2026, A Story of Reification tells how Linked.Archi arrived at its relationship pattern, RDF 1.2: Why and How shows how to write, query and validate it, and this guide adds relationship types of your own.

ArchiMate 4 gives a modelling team a fixed set of relationship types, and Linked.Archi declares each of them three times: a direct predicate such as am4:serves for traversal, a relationship class such as am4:Serving for occurrences with identity and metadata, and a qualified property such as am4:qualifiedServing that leads from the source element to an occurrence. The Relationship Modelling Guide is the reference for that pattern. This guide covers a case the reference leaves to you: a team needs a distinction the standard does not make, and has to add it without breaking what already works on ArchiMate data.

The example continues at the fictional tour operator from the earlier posts. Its integration team models with three ArchiMate relationship types: Serving, Flow and Triggering. A resilience review asks for one more distinction. Availability Search serves the Booking Engine by re-checking availability before a booking is committed, and the Booking Engine waits for the answer, so a slow Availability Search means slow bookings. The Pricing Engine serves the Booking Engine too, but through a price list the Booking Engine caches, so a slow Pricing Engine changes nothing at booking time. ArchiMate calls both relationships Serving. The review wants to know what the booking path waits on, transitively, and that question needs a predicate a query can follow, not a note on each relationship.

The subset is a shape, not a new vocabulary

The three types the team uses already exist in the ArchiMate 4 ontology, with all three declarations, published shapes and query support. Restricting a model to them is a validation rule, so it belongs in the team's own shapes graph, next to the published shapes, as the Validation guide describes for governance profiles:

@prefix sh:   <http://www.w3.org/ns/shacl#> .
@prefix arch: <https://meta.linked.archi/core#> .
@prefix am4:  <https://meta.linked.archi/archimate4/onto#> .
@prefix tour: <https://example.org/tour-operator/vocab#> .

# The integration team's subset: three ArchiMate relationship types, and anything narrower
tour:RelationshipSubsetShape
    a              sh:NodeShape ;
    sh:targetClass arch:QualifiedRelationship ;
    sh:or (
        [ sh:class am4:Serving ]
        [ sh:class am4:Flow ]
        [ sh:class am4:Triggering ]
    ) ;
    sh:message     "Relationship type outside the integration subset: use Serving, Flow or Triggering"@en .

The shape targets every qualified relationship. sh:class follows rdfs:subClassOf in the data graph, so anything narrower than Serving, Flow or Triggering passes, provided the ArchiMate 4 ontology and the team's vocabulary are loaded with the data, as the published shapes also expect. An am4:Association between the Pricing Engine and the Booking Engine fails with the shape's message.

A separate subset ontology, with its own terms mapped to ArchiMate by skos:exactMatch, is how BPMN Lite gives a thinner reading of a whole language (choosing the mapping predicate). For a team's working set it would cost more than it gives. The published ArchiMate shapes and queries are keyed on am4: classes and predicates, and a SKOS mapping does not make them apply to anything else.

Declaring a narrower Serving

The new type refines Serving, so each of its three declarations points at the ArchiMate term it narrows. The tour: vocabulary is illustrative and lives under example.org; the terms it refines are published in the ArchiMate 4 ontology.

@prefix owl:  <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix arch: <https://meta.linked.archi/core#> .
@prefix am4:  <https://meta.linked.archi/archimate4/onto#> .
@prefix tour: <https://example.org/tour-operator/vocab#> .

# 1. The direct predicate, a narrower am4:serves
tour:servesSynchronously
    a                   owl:ObjectProperty ;
    rdfs:subPropertyOf  am4:serves ;
    skos:prefLabel      "serves synchronously"@en ;
    skos:definition     "The source serves the target inside the target's own request, so the target waits for the answer."@en ;
    arch:domainIncludes am4:ApplicationComponent ;
    arch:rangeIncludes  am4:ApplicationComponent .

# 2. The relationship class, a narrower am4:Serving
tour:SynchronousServing
    a                    owl:Class ;
    rdfs:subClassOf      am4:Serving ;
    arch:unqualifiedForm tour:servesSynchronously ;
    skos:prefLabel       "Synchronous Serving"@en ;
    skos:definition      "A serving relationship in which the served element waits for the answer."@en .

# 3. The qualified property, a narrower am4:qualifiedServing
tour:qualifiedSynchronousServing
    a                    owl:ObjectProperty ;
    rdfs:subPropertyOf   am4:qualifiedServing ;
    rdfs:range           tour:SynchronousServing ;
    arch:unqualifiedForm tour:servesSynchronously ;
    skos:prefLabel       "qualified Synchronous Serving"@en .

Compared with the reference pattern, each declaration adds one link: rdfs:subPropertyOf on the two properties and rdfs:subClassOf on the class. Within one language that is the intended way to relate terms. The cross-mapping guide reserves subclassing for this case and rules it out between languages. Subsumption is also one of the few entailments the minimal OWL profile keeps on purpose, because shapes and queries rely on it.

It pays off at once. Every tour:SynchronousServing is an am4:Serving, so the subset shape accepts it, and the published ServingShape checks its source and target against the ArchiMate 4 matrix. A synchronous serving from the Pricing Engine to a data object fails ServingShape without the team writing a shape of its own. The arch:domainIncludes and arch:rangeIncludes hints are narrower than ArchiMate's because the team uses the type only between application components. They guide modelling tools and constrain nothing.

Two mappings that answer different questions

The new type now names its predicate in two places, and they answer different questions.

arch:unqualifiedForm is the schema mapping. It sits on the class and on the qualified property, and answers "which predicate does this kind of relationship stand for?" It is stated once, in the vocabulary, and never on an occurrence (P-3).

rdf:reifies is the instance mapping. It sits on each occurrence and answers "which triple does this occurrence describe?" Its object is a triple term, which carries the subject, the predicate and the object together.

Schema mapping and reified predicate for a specialized serving relationship

The vocabulary says that Synchronous Serving stands for tour:servesSynchronously; the occurrence says which triple it reifies. The agreement check compares the two.

It is tempting to give every occurrence a property that names its predicate, so that the occurrence can be read without the vocabulary. Linked.Archi defines no such property and needs none. The triple term already names the predicate, together with the subject and object, and ties the occurrence to the asserted triple. A separate pointer would be one more place for an occurrence to disagree with itself.

The two mappings can still drift apart. An occurrence can be retyped while its triple term stays as it was, and a vocabulary can be edited after data was written against it. The checks below catch both.

Writing occurrences of the new type

The designed relationship is a tour:SynchronousServing that reifies the tour:servesSynchronously triple and is reached through tour:qualifiedSynchronousServing. The CMDB import sees the call but not whether the caller waits, so it records a plain am4:Serving that reifies the am4:serves triple. That gives one pair of components, two occurrences and two predicates, each predicate matching its own class:

@prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix arch: <https://meta.linked.archi/core#> .
@prefix am4:  <https://meta.linked.archi/archimate4/onto#> .
@prefix tour: <https://example.org/tour-operator/vocab#> .
@prefix ex:   <https://model.example.com/tour-operator#> .

ex:InventoryService   a am4:ApplicationComponent ; skos:prefLabel "Inventory Service"@en .
ex:AvailabilitySearch a am4:ApplicationComponent ; skos:prefLabel "Availability Search"@en .
ex:PricingEngine      a am4:ApplicationComponent ; skos:prefLabel "Pricing Engine"@en .
ex:BookingEngine      a am4:ApplicationComponent ; skos:prefLabel "Booking Engine"@en .

# Designed: Availability Search answers inside the booking request
ex:AvailabilitySearch tour:qualifiedSynchronousServing ex:serving-017 ;
    tour:servesSynchronously ex:BookingEngine ~ ex:serving-017 {|
        a                   tour:SynchronousServing ;
        arch:source         ex:AvailabilitySearch ;
        arch:target         ex:BookingEngine ;
        arch:approvalState  arch:Approved ;
        prov:wasDerivedFrom ex:ADR-042
    |} .

# Observed: the CMDB sees the dependency, not whether the caller waits
ex:AvailabilitySearch am4:qualifiedServing ex:serving-017-observed ;
    am4:serves ex:BookingEngine ~ ex:serving-017-observed {|
        a                   am4:Serving ;
        arch:source         ex:AvailabilitySearch ;
        arch:target         ex:BookingEngine ;
        prov:wasGeneratedBy ex:CMDBImport-2026-09
    |} .

# Designed: Inventory Service answers inside the availability search
ex:InventoryService tour:qualifiedSynchronousServing ex:serving-020 ;
    tour:servesSynchronously ex:AvailabilitySearch ~ ex:serving-020 {|
        a                   tour:SynchronousServing ;
        arch:source         ex:InventoryService ;
        arch:target         ex:AvailabilitySearch ;
        arch:approvalState  arch:Approved
    |} .

# No metadata needed: the direct triple alone
ex:PricingEngine am4:serves ex:BookingEngine .

Inventory Service serves Availability Search in the same synchronous way. The Pricing Engine relationship carries no metadata, so the direct triple is enough (when to emit only the direct triple). The qualified property comes before each annotated triple, which is the order N3.js needs (tool support, as tested).

Keeping ArchiMate-level traversal complete

Each designed occurrence comes with a direct triple that uses the specific predicate, tour:servesSynchronously, which satisfies P-7. A store without RDFS inference does not know that this triple implies am4:serves. A property path cannot follow rdfs:subPropertyOf on the way either, because a path is built from fixed predicates. Asked what the Booking Engine depends on through am4:serves+, such a store returns the Pricing Engine, and Availability Search only because the CMDB occurrence happens to assert am4:serves. It misses Inventory Service, which the booking path waits on through Availability Search.

Either let the store infer, or make the entailments explicit when the data is loaded:

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

# Every triple written with a tour: property also gets its ArchiMate-level triple
INSERT { ?s ?super ?o }
WHERE {
  ?sub rdfs:subPropertyOf+ ?super .
  FILTER STRSTARTS(STR(?sub), "https://example.org/tour-operator/vocab#")
  ?s ?sub ?o .
} ;

# Every instance of a tour: class also gets the ArchiMate-level type
INSERT { ?x a ?super }
WHERE {
  ?sub rdfs:subClassOf+ ?super .
  FILTER STRSTARTS(STR(?sub), "https://example.org/tour-operator/vocab#")
  ?x a ?sub .
}

On the example this adds eleven triples:

  • am4:serves from Inventory Service to Availability Search; the triple from Availability Search to the Booking Engine is already there;
  • arch:dependencyOf for each of the two synchronous serving triples, because am4:serves refines it;
  • am4:qualifiedServing to each of the two designed occurrences;
  • am4:Serving, arch:QualifiedRelationship and arch:ModelConcept as types of each designed occurrence.

Nothing is added that RDFS would not conclude anyway. Run the update on the loaded graph, not on the authored files, so that the model keeps only what someone wrote.

One query now answers both questions:

PREFIX am4:  <https://meta.linked.archi/archimate4/onto#>
PREFIX tour: <https://example.org/tour-operator/vocab#>
PREFIX ex:   <https://model.example.com/tour-operator#>

# Everything the Booking Engine depends on, and what it waits for
SELECT ?provider ?waitsFor WHERE {
  ?provider am4:serves+ ex:BookingEngine .
  BIND (EXISTS { ?provider tour:servesSynchronously+ ex:BookingEngine } AS ?waitsFor)
}
ORDER BY ?provider

It returns three rows: Availability Search and Inventory Service, both waited on, and the Pricing Engine, not waited on. A tool that knows only ArchiMate sees three serving relationships. The resilience review sees which of them hold up a booking.

Checking that class, predicate and reifier agree

Two checks keep the mappings consistent: one on the vocabulary, which needs no triple terms, and one on the data, which does.

The vocabulary: narrower types map to narrower predicates

@prefix sh:   <http://www.w3.org/ns/shacl#> .
@prefix tour: <https://example.org/tour-operator/vocab#> .

# A narrower relationship class or qualified property must map to a narrower predicate
tour:UnqualifiedFormShape
    a                   sh:NodeShape ;
    sh:targetSubjectsOf <https://meta.linked.archi/core#unqualifiedForm> ;
    sh:property [
        sh:path     <https://meta.linked.archi/core#unqualifiedForm> ;
        sh:maxCount 1
    ] ;
    sh:sparql [
        a          sh:SPARQLConstraint ;
        sh:message "Maps to {?own}, which does not refine {?inherited}, the predicate of {?parent}"@en ;
        sh:select  """
            PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
            PREFIX arch: <https://meta.linked.archi/core#>
            SELECT $this ?own ?parent ?inherited WHERE {
              $this arch:unqualifiedForm ?own .
              { $this rdfs:subClassOf+ ?parent }
              UNION { $this rdfs:subPropertyOf+ ?parent }
              UNION { $this rdfs:range ?parent }
              ?parent arch:unqualifiedForm ?inherited .
              FILTER NOT EXISTS { ?own rdfs:subPropertyOf* ?inherited }
            }
        """
    ] .

The shape targets everything that has an arch:unqualifiedForm, so it checks the team's class and qualified property alongside every ArchiMate 4 declaration. Each may have one unqualified form. That form must refine the form of every superclass and super-property and, for a qualified property, the form of its range class. The ArchiMate 4 ontology and the tour: vocabulary conform.

Map tour:SynchronousServing to am4:flowsTo by mistake, and the shape reports two results. The class fails because its predicate does not refine am4:serves. The qualified property fails because it no longer refines its range class. The shape runs on any SHACL engine that supports SPARQL-based constraints; pyshacl 0.40.1 was used here.

The data: each occurrence reifies the predicate its type declares

PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX arch: <https://meta.linked.archi/core#>

# Occurrences whose reified predicate is not the predicate declared by their class,
# or by the qualified property that leads to them, nor a sub-property of it
SELECT ?occurrence ?declaredBy ?expected ?reified WHERE {
  ?occurrence rdf:reifies ?t .
  BIND (PREDICATE(?t) AS ?reified)
  { ?occurrence a ?declaredBy } UNION { ?source ?declaredBy ?occurrence }
  ?declaredBy arch:unqualifiedForm ?expected .
  FILTER NOT EXISTS { ?reified rdfs:subPropertyOf* ?expected }
}

For every reifier, the query takes the predicate out of the triple term with PREDICATE and compares it with the predicate declared by each of the occurrence's classes and by any qualified property that leads to it. The same predicate or a sub-property passes. After the load step the designed occurrences are also am4:Serving, and they pass that comparison too, because tour:servesSynchronously refines am4:serves.

The example returns no rows. Now suppose an architect confirms that the observed call is synchronous and retypes ex:serving-017-observed as tour:SynchronousServing, leaving its triple term alone. The query returns one row: the occurrence, declared by tour:SynchronousServing, expecting tour:servesSynchronously, reifying am4:serves. The fix is to make the occurrence reify the tour:servesSynchronously triple and reach it through tour:qualifiedSynchronousServing, or to keep its original type.

This check needs SPARQL 1.2 and a store that holds triple terms; pyoxigraph 0.5.11 ran it here. It is a query rather than a shape because rdflib 7.6.0, which pyshacl builds on, still rejects <<( )>>. Run it together with the companion guide's query for arch:source and arch:target, which compares the subject and object of the same triple term.

When a new relationship type is worth it

A new relationship type costs three declarations, a load step and two checks. It earns that cost when the distinction has to be followed or validated. "What does the booking path wait on?" is a transitive question, and only a predicate can carry it through a property path. When the distinction only describes one occurrence, such as the protocol a call uses or the person who confirmed it, record it on the occurrence instead. Properties of an occurrence can be read and filtered, but a path cannot select edges by them.

Refine rather than invent. A type that narrows an ArchiMate type keeps working with every shape, query and tool that knows ArchiMate, and the subset shape rejects a type that narrows nothing the team uses.

Checklist for a custom relationship type

  • Refine an existing ArchiMate 4 type: rdfs:subPropertyOf on the direct and qualified predicates, rdfs:subClassOf on the class.
  • Put arch:unqualifiedForm on the class and the qualified property, never on an occurrence.
  • Make each occurrence reify the triple whose predicate its class declares, and assert that triple where the relationship holds.
  • Materialize the ArchiMate-level triples at load time, unless the store infers them.
  • Run the vocabulary shape on the vocabulary, and both the agreement query and the source-and-target query on the data.