RDF 1.2: Why and How, the Linked.Archi Way
Triple terms and reifiers for qualified architecture relationships, from Turtle to SPARQL and SHACL
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, this guide shows how to write, query and validate it, and Custom Relationship Types on ArchiMate 4 adds relationship types of your own.
A relationship in an architecture model has to be an edge and a managed object at once. As an edge, ex:AvailabilitySearch am4:serves ex:BookingEngine lets a query walk from one application component to the next. As an object, it needs a name, a validity date, an approval state, the decision it came from, and room for a second source. Sometimes the model also has to describe a relationship that is not true yet. RDF 1.2 makes the join between edge and object part of the data model.
One example runs through this guide, at the fictional tour operator from earlier posts. Availability Search serves the Booking Engine by re-checking availability before a booking is committed. A design review recorded that relationship, citing ADR-042, and a CMDB import observed it separately. A third relationship, Availability Search serving a new Partner Gateway, is drafted for the target state and must not be read as fact.
The longer route to RDF 1.2, through n-ary relations, rdf:Statement and RDF-star, is told in A Story of Reification. This article is RDF 1.2 the Linked.Archi way: why it changed, and how to write, query, validate and migrate architecture relationships with it.
Why RDF 1.2 changed reification
Statements about relationships need three things: an identity per occurrence, so that the design review and the CMDB import can be told apart; a way to describe a relationship without asserting it, so that the Partner Gateway proposal stays a proposal; and the plain triple left in place, so that property paths such as am4:serves+ keep working.
The original reification vocabulary covers the second need and little else. Naming one statement takes four triples, nothing formally ties the rdf:Statement resource to the triple it describes, and two reifications with the same subject, predicate and object need not denote the same thing. RDF 1.2 Schema now lists rdf:Statement, rdf:subject, rdf:predicate and rdf:object under legacy vocabularies.
RDF-star, a W3C Community Group report from 2021, made the triple itself quotable. That was lighter, but a quoted triple represented the same thing wherever it appeared. The design review's annotations and the CMDB import's landed on one node unless you invented your own occurrence resources. Quoted triples were also referentially opaque: terms that co-refer, through owl:sameAs or two spellings of one number, did not make two quoted triples the same.
RDF 1.2 kept the syntax idea and changed the model. A triple term denotes a proposition, can appear only as the object of another triple, and is transparent: its terms denote what they denote anywhere else, and quoting a triple does not assert it. Statements about the proposition go on a separate resource, the reifier, linked by rdf:reifies. One proposition can have many reifiers, and one reifier several propositions. rdf:reifies has the range rdfs:Proposition and a deliberately generic meaning: a reifier may stand for a statement, a belief, an event or a circumstance.
RDF 1.2 also adds base direction on language-tagged strings, the rdf:JSON datatype and version labels, listed in the changes appendix of RDF 1.2 Concepts.
The model: triple terms, reifiers, annotations
RDF 1.2 Concepts defines four pieces. A triple term is a triple used as a term inside another triple. A reifying triple has rdf:reifies as its predicate and a triple term as its object. Its subject is the reifier, and the reifier, not the triple term, is what you describe further. When the same triple is also asserted in the graph, the reifier's triples form a triple annotation.
In Linked.Archi the reifier is not an anonymous annotation node but a typed relationship resource. Written out longhand, one relationship has four representations. The first snippet carries the version announcement and the full prefix set; later ones reuse them.
VERSION "1.2"
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 ad: <https://meta.linked.archi/arch-decision#>
PREFIX ex: <https://model.example.com/tour-operator#>
ex:AvailabilitySearch a am4:ApplicationComponent ; skos:prefLabel "Availability Search"@en .
ex:BookingEngine a am4:ApplicationComponent ; skos:prefLabel "Booking Engine"@en .
# 1. Direct triple: the relationship holds
ex:AvailabilitySearch am4:serves ex:BookingEngine .
# 2. Qualified predicate: from the source element to the relationship resource
ex:AvailabilitySearch am4:qualifiedServing ex:serving-017 .
# 3. The relationship resource, typed with the ArchiMate 4 Serving class
ex:serving-017 a am4:Serving ;
arch:source ex:AvailabilitySearch ;
arch:target ex:BookingEngine ;
skos:prefLabel "Availability re-check before booking commit"@en ;
ex:validFrom "2026-03-15"^^xsd:date ;
arch:approvalState arch:Approved ;
prov:wasAttributedTo ex:HeadOfDistribution ;
prov:wasDerivedFrom ex:ADR-042 ;
# 4. The bridge: this resource reifies the direct triple
rdf:reifies <<( ex:AvailabilitySearch am4:serves ex:BookingEngine )>> .
The direct triple (1) is what traversal and reasoners use, and P-7 says to always emit it. The qualified predicate (2) leads from the source element to the relationship resource; where a relationship type has no specific one, arch:hasQualifiedRelationship is the generic fallback. The resource (3) is an am4:Serving, a subclass of arch:QualifiedRelationship, with its own arch:source and arch:target and the occurrence's metadata. rdf:reifies (4) is the instance-level bridge from the resource to the triple.
At schema level, am4:Serving and am4:qualifiedServing both carry arch:unqualifiedForm am4:serves, an annotation that never appears in instance data (P-3). DD-10 records why predicates and relationship resources stay apart. Because am4:serves is asserted here, the triples about ex:serving-017 form a triple annotation.
Writing it in Turtle 1.2
RDF 1.2 Turtle writes a triple term as <<( s p o )>>, in object position only. The annotation syntax asserts a triple and reifies it in one statement. This is the same relationship as the long form, minus the two element declarations:
ex:AvailabilitySearch am4:qualifiedServing ex:serving-017 ;
am4:serves ex:BookingEngine ~ ex:serving-017 {|
a am4:Serving ;
arch:source ex:AvailabilitySearch ;
arch:target ex:BookingEngine ;
skos:prefLabel "Availability re-check before booking commit"@en ;
ex:validFrom "2026-03-15"^^xsd:date ;
arch:approvalState arch:Approved ;
prov:wasAttributedTo ex:HeadOfDistribution ;
prov:wasDerivedFrom ex:ADR-042
|} .
It takes any number of ~ reifier entries, each with an optional {| ... |} block. Leaving out the name gives a blank reifier, shown further down.
A Turtle 1.2 document announces its version with VERSION "1.2" or the @version "1.2" . form, matching @prefix. A server can also add the media-type parameter text/turtle; version=1.2. TriG 1.2 shares the triple-term, reified-triple and annotation syntax.
One relationship, several occurrences
A reified triple, << s p o ~ reifier >>, stands for the reifier plus its reifying triple, and does not assert s p o. Both the second source and the proposal use it:
ex:CMDBImport-2026-09 a prov:Activity ; skos:prefLabel "CMDB import, September 2026"@en .
# A second occurrence of the same triple, observed by the CMDB import
ex:AvailabilitySearch am4:qualifiedServing ex:serving-017-observed .
<< ex:AvailabilitySearch 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 .
# A target-state relationship: described, not asserted
ex:PartnerGateway a am4:ApplicationComponent ; skos:prefLabel "Partner Gateway"@en .
ex:AvailabilitySearch am4:qualifiedServing ex:serving-031 .
<< ex:AvailabilitySearch am4:serves ex:PartnerGateway ~ ex:serving-031 >>
a am4:Serving ;
arch:source ex:AvailabilitySearch ;
arch:target ex:PartnerGateway ;
arch:architectureState arch:Target ;
arch:approvalState arch:Proposed ;
prov:wasAttributedTo ex:ArchitectA ;
prov:wasDerivedFrom ex:ADR-057 .
ex:serving-017-observed reifies the same triple as ex:serving-017, with different provenance. RDF 1.2 Schema allows several reifiers per proposition, and the core ontology's definition of arch:QualifiedRelationship names this case: CMDB-discovered and design-reviewed occurrences. Neither inherits the other's approval state or evidence.
The Partner Gateway triple term is not asserted anywhere, so nothing claims that Availability Search serves the Partner Gateway. arch:architectureState arch:Target and arch:approvalState arch:Proposed say where it stands. ADR-057, accepted on 22 September, chose the search API for partner availability, but the model change it implies is still proposed: the core ontology keeps decision, approval and architecture state apart. When the relationship goes live, add the direct triple and the same resource becomes an annotation. The Relationship Modelling Guide covers multiple reifiers.
Relationships about relationships
Because the occurrence has an IRI, other model concepts can point at it:
# ADR-042 is declared in full in an earlier post: its title, and one more link to the designed occurrence
ex:ADR-042 skos:prefLabel "Separate availability search from booking commit"@en ;
ad:relatedConcept ex:serving-017 .
# No name after ~ (or no ~ at all): the parser mints a blank node that nothing else can point at
ex:AvailabilitySearch am4:serves ex:BookingEngine {| prov:wasGeneratedBy ex:CMDBImport-2026-09 |} .
A relationship resource needs an IRI, because ADR-042, a later import or a view must be able to refer to it.
N-Triples and N-Quads
RDF 1.2 N-Triples has only the <<( )>> form: no reified-triple shorthand and no annotation blocks. A converter emits these four lines for the defining part of ex:serving-017, metadata omitted:
<https://model.example.com/tour-operator#AvailabilitySearch> <https://meta.linked.archi/archimate4/onto#serves> <https://model.example.com/tour-operator#BookingEngine> .
<https://model.example.com/tour-operator#AvailabilitySearch> <https://meta.linked.archi/archimate4/onto#qualifiedServing> <https://model.example.com/tour-operator#serving-017> .
<https://model.example.com/tour-operator#serving-017> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://meta.linked.archi/archimate4/onto#Serving> .
<https://model.example.com/tour-operator#serving-017> <http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies> <<( <https://model.example.com/tour-operator#AvailabilitySearch> <https://meta.linked.archi/archimate4/onto#serves> <https://model.example.com/tour-operator#BookingEngine> )>> .
N-Triples 1.2 also defines a VERSION "1.2" line, but that section is marked at risk, so do not rely on it yet. N-Quads 1.2 adds the graph name. Linked.Archi uses graph names for source-scoped graphs (DD-15), not for reification.
Versions and conformance
RDF 1.2 Concepts defines two conformance levels. Full conformance supports triple terms; Basic conformance supports only graphs without them. The matching version labels are "1.2", "1.2-basic" and "1.1". Data valid as 1.1 is valid as 1.2-basic, which is valid as 1.2, so existing RDF 1.1 files need no changes. RDF-star files are a different case, covered under migration below.
A version announcement is encouraged only for documents that use RDF 1.2 features, and discouraged elsewhere to keep older parsers working; it lets a Basic parser, which may refuse triple terms, fail early. For consumers that cannot take triple terms, RDF 1.2 Interoperability describes a basic encoding that rewrites them. Linked.Archi data already carries a fallback: arch:source and arch:target hold the subject and object as ordinary, standalone properties (P-6), so a Basic consumer that drops the rdf:reifies triples still has the relationship.
Directional text
Language-tagged strings can now carry a base direction for right-to-left scripts, with the datatype rdf:dirLangString:
ex:BookingEngine skos:altLabel "محرك الحجز"@ar--rtl .
Put directional labels on skos:altLabel for now. The ArchiMate 4.0 element shapes check skos:prefLabel with sh:datatype rdf:langString, which a directional string does not match. SPARQL 1.2 reads the direction with LANGDIR and tests for one with hasLANGDIR.
Querying with SPARQL 1.2
SPARQL 1.2 Query matches triple terms with nested patterns such as <<( ?s ?p ?o )>>, and borrows Turtle's shorthands. The reifier shorthand matches reifiers whether or not the triple is asserted:
PREFIX ad: <https://meta.linked.archi/arch-decision#>
PREFIX am4: <https://meta.linked.archi/archimate4/onto#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX ex: <https://model.example.com/tour-operator#>
# Every recorded occurrence of this serving relationship, its evidence, and decisions about it
SELECT ?occurrence ?evidence ?decision WHERE {
<< ex:AvailabilitySearch am4:serves ex:BookingEngine ~ ?occurrence >>
prov:wasDerivedFrom|prov:wasGeneratedBy ?evidence .
OPTIONAL { ?decision ad:relatedConcept ?occurrence }
}
Against the running example (the long form, the occurrences and the decision link) it returns two rows: ex:serving-017 with ex:ADR-042 as both evidence and decision, and ex:serving-017-observed with ex:CMDBImport-2026-09 and no decision. The annotation pattern {| ... |} also requires the triple itself, so it matches asserted triples only.
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX am4: <https://meta.linked.archi/archimate4/onto#>
PREFIX ex: <https://model.example.com/tour-operator#>
# From the source element: each serving occurrence, its target, and whether the triple is asserted
SELECT ?occurrence ?target ?asserted WHERE {
ex:AvailabilitySearch am4:qualifiedServing ?occurrence .
?occurrence rdf:reifies ?t .
BIND (OBJECT(?t) AS ?target)
BIND (EXISTS { ex:AvailabilitySearch am4:serves ?target } AS ?asserted)
}
It returns three rows: both occurrences to the Booking Engine, asserted, and ex:serving-031 to the Partner Gateway, not asserted. The qualified predicate reaches proposals too, so check assertion or state before treating a result as fact.
The triple-term functions take a triple term apart or build one: TRIPLE, SUBJECT, PREDICATE, OBJECT and isTRIPLE. This query lists relationships that are described but not asserted:
VERSION "1.2"
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX arch: <https://meta.linked.archi/core#>
# Relationships described but not asserted: proposals, target state, superseded history
SELECT ?occurrence ?s ?p ?o ?state WHERE {
?occurrence rdf:reifies ?t .
FILTER isTRIPLE(?t)
BIND (SUBJECT(?t) AS ?s)
BIND (PREDICATE(?t) AS ?p)
BIND (OBJECT(?t) AS ?o)
FILTER NOT EXISTS { ?s ?p ?o }
OPTIONAL { ?occurrence arch:architectureState ?state }
}
It returns one row: ex:serving-031, Availability Search am4:serves Partner Gateway, in state arch:Target.
Through arch:source and arch:target the same navigation works in SPARQL 1.1, in any store, and returns the same three rows:
PREFIX arch: <https://meta.linked.archi/core#>
PREFIX am4: <https://meta.linked.archi/archimate4/onto#>
PREFIX ex: <https://model.example.com/tour-operator#>
# SPARQL 1.1, no triple terms: the same occurrences through arch:source and arch:target
SELECT ?occurrence ?target ?asserted WHERE {
?occurrence a am4:Serving ;
arch:source ex:AvailabilitySearch ;
arch:target ?target .
BIND (EXISTS { ex:AvailabilitySearch am4:serves ?target } AS ?asserted)
}
A query can announce VERSION "1.2" as well. In SPARQL, the labels "1.2" and "1.2-basic" describe the query syntax, not the RDF data.
Migrating existing data
Old-style reification puts the subject, predicate and object on the describing resource:
# Old-style reification: the relationship resource doubles as an rdf:Statement
ex:serving-017 a am4:Serving , rdf:Statement ;
rdf:subject ex:AvailabilitySearch ;
rdf:predicate am4:serves ;
rdf:object ex:BookingEngine ;
prov:wasDerivedFrom ex:ADR-042 .
One SPARQL 1.2 update moves it to rdf:reifies and adds the Linked.Archi backbone:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX arch: <https://meta.linked.archi/core#>
PREFIX am4: <https://meta.linked.archi/archimate4/onto#>
DELETE { ?r a rdf:Statement ; rdf:subject ?s ; rdf:predicate ?p ; rdf:object ?o . }
INSERT { ?r rdf:reifies ?t ; arch:source ?s ; arch:target ?o . }
WHERE {
?r a am4:Serving , rdf:Statement ;
rdf:subject ?s ; rdf:predicate ?p ; rdf:object ?o .
BIND (TRIPLE(?s, ?p, ?o) AS ?t)
}
The am4:Serving test matters. Without it, the update would give every rdf:Statement in the store an arch:source and arch:target, and under RDFS inference turn each into a qualified relationship. Run it once per relationship class, or replace the test with your own list of relationship types.
Five triples remain: ex:serving-017 keeps its IRI, its type and prov:wasDerivedFrom, and gains rdf:reifies <<( ex:AvailabilitySearch am4:serves ex:BookingEngine )>>, arch:source and arch:target. Dropping rdf:Statement follows P-2; plain RDF 1.2 would allow keeping it, as the RDF 1.2 Primer does in one example. The old form never asserted the triple, nor does the result: where the relationship holds, add the direct triple and am4:qualifiedServing (P-7); leave them out for proposals.
RDF-star data from older tools still parses, but in RDF 1.2 Turtle each << >> is now a reifying triple with its own blank-node reifier, so repeated quotations of one triple no longer mean one thing and should be rewritten with named reifiers such as ex:serving-017 and ex:serving-017-observed.
A short checklist: announce the version, name and type every reifier, add arch:source and arch:target, decide one occurrence or many, and keep the direct triple wherever it is a fact.
Validating with SHACL
The published Linked.Archi shapes target the typed relationship resource and need no triple terms. QualifiedRelationshipShape requires exactly one arch:source and one arch:target, each a model concept, and ServingShape checks the ArchiMate 4.0 source and target matrix for am4:Serving. Class targeting works on any SHACL engine that loads RDF 1.2 data, or on a copy with the rdf:reifies triples removed first.
SHACL 1.2 Core, a Working Draft, adds sh:reifierShape to property shapes whose path is an IRI. Every reifier of a matching triple must conform to the given node shape, and sh:reificationRequired true also requires at least one reifier. No Linked.Archi shape uses it yet. A local profile could ask that every am4:serves triple has a typed, evidenced occurrence:
PREFIX sh: <http://www.w3.org/ns/shacl#>
ex:ServesReificationShape a sh:NodeShape ;
sh:targetSubjectsOf am4:serves ;
sh:property [
sh:path am4:serves ;
sh:reifierShape ex:ServingOccurrenceShape ;
sh:reificationRequired true
] .
ex:ServingOccurrenceShape a sh:NodeShape ;
sh:class am4:Serving ;
sh:property [
sh:path [ sh:alternativePath ( prov:wasDerivedFrom prov:wasGeneratedBy ) ] ;
sh:minCount 1
] .
As the draft defines it, ex:serving-017 and ex:serving-017-observed conform. ex:serving-031 is never checked: the shape reaches only reifiers of asserted triples, and no asserted am4:serves triple leads to it. SHACL 1.2 also adds the node kind sh:TripleTerm. The shape parses, but no SHACL 1.2 engine was run against it.
No published shape yet checks that the triple term agrees with arch:source and arch:target; a SPARQL 1.2 query does:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX arch: <https://meta.linked.archi/core#>
# Relationship resources whose triple term disagrees with arch:source or arch:target
SELECT ?occurrence WHERE {
?occurrence rdf:reifies ?t ;
arch:source ?s ;
arch:target ?o .
FILTER (!sameTerm(SUBJECT(?t), ?s) || !sameTerm(OBJECT(?t), ?o))
}
It returns no rows on the running example, and one row on a copy where the target of ex:serving-017 is swapped.
Modelling guidance
Annotate or qualify an asserted triple when the relationship holds and you are recording how you know it: source, date, approval. Describe an unasserted proposition for proposals, target state, disputed claims and superseded history, and query for it explicitly. RDF predicates are binary, and the Primer still presents qualified and n-ary patterns as the way to describe relationships as resources, with reifying triples as the bridge to the direct statement.
PROV-O made the same move earlier. It pairs prov:wasAssociatedWith with prov:qualifiedAssociation, which leads to a prov:Association node that can name the plan the agent followed. arch:QualifiedRelationship follows the same qualified-relation pattern, and PROV-O, older than RDF 1.2, has no instance-level link back to the direct triple, which is what rdf:reifies adds.
The design rule is short. Use the direct predicate when only the binary fact matters. Use a qualified relationship resource when the occurrence has identity or context: provenance, approval, state, a second source, a decision pointing at it. Link the two with rdf:reifies. RDF 1.2 makes rdf:Statement legacy, not qualified or n-ary modelling.
Tool support, as tested
- RDF4J 6, which the Linked.Archi converters use, reads and writes triple terms.
- pyoxigraph 0.5.9 parses every snippet, answers the queries with the results above and runs the migration update. It rejects a
VERSIONline in N-Triples, the at-risk part of that spec. - N3.js 2.7.12 parses every Turtle and N-Triples snippet with the same triple counts. It lost triples when a statement continued after
|}, reported upstream, so the compact snippet putsam4:qualifiedServingfirst. - rdflib 7.5.0 rejects
<<( )>>, so pyshacl cannot load triple-term data. With therdf:reifiestriples removed, the running example conforms to the published core, ArchiMate 4.0 and architecture-decision shapes under pyshacl 0.31.0.
Status on 3 October 2026
None of the RDF 1.2 or SPARQL 1.2 documents is a Recommendation yet. RDF 1.2 Concepts is a Candidate Recommendation and RDF 1.2 Semantics a Candidate Recommendation Draft. RDF 1.2 Turtle, TriG, N-Triples, N-Quads and Schema, SPARQL 1.2 Query and SHACL 1.2 Core are Working Drafts, and the RDF 1.2 Primer is a Group Note Draft. Details can still move, so validate parsers and stores before freezing a serialization.
Related
- A Story of Reification: the route from rdf:Statement to RDF 1.2 reifiers
- Design Decisions: DD-10: predicates and relationship resources
- Relationship Modelling Guide: RDF 1.2 in the relationship pattern
- Core ontology:
arch:QualifiedRelationship,arch:sourceandarch:target - ArchiMate 4 ontology:
am4:Serving,am4:servesandam4:qualifiedServing - Tracing EA Services to the Architecture They Change: where ADR-042 came from
- Sealing the Knowledge-Leaking Pipes: ADR-057, same tour operator
- The Capture Wall: every relationship is born reified
- Minimal OWL + SHACL in meta.linked.archi: why constraints live in SHACL
Linked.Archi Publications