Linked.Archi

Linked.Archi ArchiMate 4.0 Viewpoint Conformance Shapes

SHACL Shapes

https://meta.linked.archi/archimate4/viewpoint-shapes#

v4.0 draft am4vpsh: Kalin Maldzhanski Linked.Archi Modified: 2026-04-29 License

SHACL shapes for validating that architecture Views conform to their declared Viewpoints. Data-driven — reads viewpoint definitions from the loaded graph.

Contents

ViewDeclaresViewpointShape — target: Diagram

PropertyConstraintValueSeverityMessage
viewConformsToViewpoint minCount 1 Warning

ViewElementConformanceShape — target: Diagram

SPARQL constraint: View contains an element type not allowed by its declared Viewpoint. Warning
            SELECT $this ?element ?elementType WHERE {
                $this arch:viewConformsToViewpoint ?vp .
                $this arch:contains ?element .
                ?element rdf:type ?elementType .
                ?elementType rdfs:subClassOf* arch:Element .
                FILTER NOT EXISTS {
                    ?vp arch:includesConcept ?elementType .
                }
                FILTER NOT EXISTS {
                    ?vp arch:includesConcept ?parentType .
                    ?elementType rdfs:subClassOf+ ?parentType .
                }
            }