@linked.archi/kernel 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/assets/archimate3/archimate3.2-metamodel.ttl +18 -1
- package/assets/archimate3/archimate3.2-principle-shapes.ttl +16 -22
- package/assets/archimate3/archimate3.2-questions.ttl +38 -38
- package/assets/archimate3/archimate3.2-viewpoint-shapes.ttl +1 -1
- package/assets/archimate4/archimate4-metamodel.ttl +18 -1
- package/assets/archimate4/archimate4-principle-shapes.ttl +38 -36
- package/assets/archimate4/archimate4-questions.ttl +38 -38
- package/assets/archimate4/archimate4-viewpoint-shapes.ttl +1 -1
- package/assets/catalog.ttl +776 -464
- package/assets/core/core-onto.ttl +12 -9
- package/assets/core/core-shapes.ttl +1 -1
- package/assets/core/core-vis-onto.ttl +99 -5
- package/assets/core/core-vis-shapes.ttl +275 -11
- package/package.json +5 -2
- package/src/model-manager/appearance.ts +131 -7
- package/src/model-manager/cascade.ts +5 -3
- package/src/model-manager/clipboard.ts +10 -2
- package/src/model-manager/concept-styles.ts +230 -0
- package/src/model-manager/interfaces.ts +19 -1
- package/src/model-manager/iri-conformance.ts +9 -2
- package/src/model-manager/placement-copy.ts +35 -8
- package/src/model-manager/questions.ts +6 -1
- package/src/model-manager/style-sets.ts +399 -0
- package/src/model-manager/style-values.ts +349 -0
- package/src/model-manager/view-manager.ts +74 -22
- package/src/model-manager/vocabulary.ts +10 -0
- package/src/rdf-engine/iri.ts +6 -3
- package/src/rdf-engine/native-load.ts +37 -0
- package/src/rdf-engine/observable-store.ts +98 -120
- package/src/rdf-engine/rdf-store.ts +14 -2
- package/src/rdf-engine/sparql-constraints.ts +15 -0
- package/src/rdf-engine/turtle-writer.ts +1 -0
- package/src/rdf-engine/validation-engine.ts +97 -32
- package/src/rdf-engine/validation-service.ts +3 -1
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
# Domain membership is read from the ArchiMate 4.0 domain classes
|
|
26
26
|
# (am4:ApplicationDomainElement …). Every type a question asks about is
|
|
27
27
|
# read as a set, once per query, in two steps — the types under it
|
|
28
|
-
# within each document, then their
|
|
29
|
-
# so a model's own
|
|
28
|
+
# within each document, then their specializations in any document —
|
|
29
|
+
# so a model's own specialization of an ArchiMate type counts where
|
|
30
30
|
# that type does.
|
|
31
31
|
#
|
|
32
32
|
# Relationships are followed along their direct triples. A question
|
|
33
|
-
# that asks what serves,
|
|
33
|
+
# that asks what serves, realizes, is assigned to or triggers what
|
|
34
34
|
# follows the chains the valid derivation rules follow (DR 2 to DR 8),
|
|
35
35
|
# so it answers the same with the derivations loaded, each then one
|
|
36
36
|
# hop, as without them; but where that walk is too slow on a large
|
|
37
37
|
# model (application dependencies, technology under applications,
|
|
38
|
-
# requirement traceability,
|
|
38
|
+
# requirement traceability, unrealized capabilities) a question
|
|
39
39
|
# follows a few fixed steps, and a longer chain only once derived. One
|
|
40
40
|
# that needs the relationship itself (the kind of an access) reads
|
|
41
41
|
# its qualified resource.
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
dcterms:creator "Kalin Maldzhanski"^^xsd:string ;
|
|
50
50
|
dcterms:title "Linked.Archi ArchiMate 4.0 Questions"@en ;
|
|
51
51
|
dcterms:description '''Questions ArchiMate 4.0 stakeholders ask of a model — impact of change, application
|
|
52
|
-
dependencies, data access, responsibilities,
|
|
52
|
+
dependencies, data access, responsibilities, realization and traceability — and the findings that show where a
|
|
53
53
|
concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL (see arch:ModelQuestion).'''@en ;
|
|
54
54
|
dcterms:created "2026-10-27"^^xsd:date ;
|
|
55
55
|
dcterms:modified "2026-10-27"^^xsd:date ;
|
|
@@ -72,7 +72,7 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
72
72
|
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
73
73
|
dcterms:identifier "notation/archimate4/elements-by-domain" ;
|
|
74
74
|
skos:prefLabel "How is the model spread over the ArchiMate domains?"@en ;
|
|
75
|
-
dcterms:description "Elements counted by ArchiMate 4.0 domain, read from the domain classes their types
|
|
75
|
+
dcterms:description "Elements counted by ArchiMate 4.0 domain, read from the domain classes their types specialize, so specializations count where they belong."@en ;
|
|
76
76
|
arch:answers "One row per domain, with the number of elements in it."@en ;
|
|
77
77
|
arch:doesNotProve "Balance. Behaviour of the common domain (process, function, service, event, role …) is counted under am4:CommonDomainElement, because ArchiMate 4.0 gives it no domain of its own."@en ;
|
|
78
78
|
arch:questionStage arch:OrientationStage ;
|
|
@@ -224,7 +224,7 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
224
224
|
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
225
225
|
dcterms:identifier "notation/archimate4/application-dependencies" ;
|
|
226
226
|
skos:prefLabel "Which applications depend on which?"@en ;
|
|
227
|
-
dcterms:description "Application components that serve, flow to or trigger one another, directly or through a service one
|
|
227
|
+
dcterms:description "Application components that serve, flow to or trigger one another, directly or through a service one realizes — itself or through the function assigned to it — and the other is served by. With the derivations loaded, a longer chain the valid rules derive counts too, as one hop."@en ;
|
|
228
228
|
arch:answers "One row per dependency: the provider, how it provides, the service between where there is one, and the consumer."@en ;
|
|
229
229
|
arch:doesNotProve "Runtime coupling or data volume. A modelled flow says that information moves, not how much or how often."@en ;
|
|
230
230
|
arch:questionStage arch:AnalysisStage ;
|
|
@@ -367,7 +367,7 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
367
367
|
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
368
368
|
dcterms:identifier "notation/archimate4/impact-of-change" ;
|
|
369
369
|
skos:prefLabel "What is affected if this element changes?"@en ;
|
|
370
|
-
dcterms:description "Everything that depends on the element, transitively, by ArchiMate's dependency relationships: what it serves,
|
|
370
|
+
dcterms:description "Everything that depends on the element, transitively, by ArchiMate's dependency relationships: what it serves, realizes or is assigned to, and what accesses it."@en ;
|
|
371
371
|
arch:answers "One row per element that depends on the element, directly or through others."@en ;
|
|
372
372
|
arch:doesNotProve "That each is broken by the change. Dynamic relationships (flow, triggering) and structure (composition, aggregation) are not followed, and a dependency may tolerate the change."@en ;
|
|
373
373
|
arch:questionStage arch:AnalysisStage ;
|
|
@@ -401,10 +401,10 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
401
401
|
:capability-realisation
|
|
402
402
|
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
403
403
|
dcterms:identifier "notation/archimate4/capability-realisation" ;
|
|
404
|
-
skos:prefLabel "What
|
|
405
|
-
dcterms:description "Capabilities with the behaviour, active structure or resources that
|
|
406
|
-
arch:answers "One row per capability and what
|
|
407
|
-
arch:doesNotProve "Maturity. That a capability is
|
|
404
|
+
skos:prefLabel "What realizes each capability?"@en ;
|
|
405
|
+
dcterms:description "Capabilities with the behaviour, active structure or resources that realize them. A realization counts directly or as DR 2 derives it, through structural relationships in line."@en ;
|
|
406
|
+
arch:answers "One row per capability and what realizes it; a capability nothing realizes appears once, with nothing beside it."@en ;
|
|
407
|
+
arch:doesNotProve "Maturity. That a capability is realized says it is delivered somehow, not how well."@en ;
|
|
408
408
|
arch:questionStage arch:AnalysisStage ;
|
|
409
409
|
arch:questionAddressesConcern am4vp:StrategyDevelopment, am4vp:ArchitectureStrategy ;
|
|
410
410
|
arch:questionTargetsStakeholder am4vp:BusinessArchitect, am4vp:CxO ;
|
|
@@ -427,8 +427,8 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
427
427
|
}
|
|
428
428
|
?capability rdf:type ?capabilityType .
|
|
429
429
|
OPTIONAL {
|
|
430
|
-
# From each
|
|
431
|
-
# in line: DR 2 derives the weakest, a
|
|
430
|
+
# From each realization, back to the realizer and on to the capability through structural relationships
|
|
431
|
+
# in line: DR 2 derives the weakest, a realization.
|
|
432
432
|
?from am4:realizes ?to .
|
|
433
433
|
?realizer (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?from .
|
|
434
434
|
?to (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?capability .
|
|
@@ -496,10 +496,10 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
496
496
|
:requirement-traceability
|
|
497
497
|
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
498
498
|
dcterms:identifier "notation/archimate4/requirement-traceability" ;
|
|
499
|
-
skos:prefLabel "How does each requirement trace to goals and to the elements that
|
|
500
|
-
dcterms:description "Requirements with what
|
|
499
|
+
skos:prefLabel "How does each requirement trace to goals and to the elements that realize it?"@en ;
|
|
500
|
+
dcterms:description "Requirements with what realizes them, below, and the goals, outcomes and principles they realize or influence, above, as a list of links. With the derivations loaded, a longer chain the valid rules derive counts too, as one hop."@en ;
|
|
501
501
|
arch:answers "One row per traced link: the requirement, the direction, the predicate and the element at the other end."@en ;
|
|
502
|
-
arch:doesNotProve "Verification. A
|
|
502
|
+
arch:doesNotProve "Verification. A realization relationship is a design claim; it does not show the requirement is met."@en ;
|
|
503
503
|
arch:questionStage arch:AnalysisStage ;
|
|
504
504
|
arch:questionAddressesConcern am4vp:ArchitectureTactics, am4vp:Motivation ;
|
|
505
505
|
arch:questionTargetsStakeholder am4vp:RequirementsManager, am4vp:BusinessAnalyst ;
|
|
@@ -547,9 +547,9 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
547
547
|
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
548
548
|
dcterms:identifier "notation/archimate4/principle-rationale" ;
|
|
549
549
|
skos:prefLabel "What motivates each principle, and what does it constrain?"@en ;
|
|
550
|
-
dcterms:description "Principles with the elements they relate to in either direction: the drivers and goals behind them, the requirements that
|
|
550
|
+
dcterms:description "Principles with the elements they relate to in either direction: the drivers and goals behind them, the requirements that realize them."@en ;
|
|
551
551
|
arch:answers "One row per relationship between a principle and another element."@en ;
|
|
552
|
-
arch:doesNotProve "Compliance. A requirement
|
|
552
|
+
arch:doesNotProve "Compliance. A requirement realizing a principle states an intent, not that designs follow it."@en ;
|
|
553
553
|
arch:questionStage arch:AnalysisStage ;
|
|
554
554
|
arch:questionAddressesConcern am4vp:ArchitecturePolicies, am4vp:Motivation ;
|
|
555
555
|
arch:questionFitsViewpoint am4vp:MotivationViewpoint ;
|
|
@@ -588,9 +588,9 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
588
588
|
:work-package-deliverables
|
|
589
589
|
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
590
590
|
dcterms:identifier "notation/archimate4/work-package-deliverables" ;
|
|
591
|
-
skos:prefLabel "What does each work package deliver, and what does that
|
|
592
|
-
dcterms:description "Work packages, the deliverables they
|
|
593
|
-
arch:answers "One row per work package, deliverable and element
|
|
591
|
+
skos:prefLabel "What does each work package deliver, and what does that realize?"@en ;
|
|
592
|
+
dcterms:description "Work packages, the deliverables they realize, and the architecture elements those deliverables realize. A realization counts directly or as DR 2 derives it, through structural relationships in line."@en ;
|
|
593
|
+
arch:answers "One row per work package, deliverable and element realized."@en ;
|
|
594
594
|
arch:doesNotProve "Schedule or progress. ArchiMate records what a work package produces, not when."@en ;
|
|
595
595
|
arch:questionStage arch:AnalysisStage ;
|
|
596
596
|
arch:questionAddressesConcern am4vp:ArchitectureVision, am4vp:ArchitecturePolicies ;
|
|
@@ -619,7 +619,7 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
619
619
|
{ ?deliverableType rdfs:subClassOf* ?askedDeliverable } UNION { GRAPH ?deliverableSpecialisationGraph { ?deliverableType rdfs:subClassOf* ?askedDeliverable } }
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
# Each
|
|
622
|
+
# Each realization directly, or as DR 2 derives it through structural relationships in line.
|
|
623
623
|
?from am4:realizes ?to .
|
|
624
624
|
?workPackage (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?from .
|
|
625
625
|
?to (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?deliverable .
|
|
@@ -665,7 +665,7 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
665
665
|
sh:select """
|
|
666
666
|
SELECT DISTINCT ?change ?element ?label ?type
|
|
667
667
|
WHERE {
|
|
668
|
-
# Both are plateaus, or a
|
|
668
|
+
# Both are plateaus, or a specialization of one.
|
|
669
669
|
FILTER EXISTS {
|
|
670
670
|
?from rdf:type ?fromType .
|
|
671
671
|
{ ?fromType rdfs:subClassOf* am4:Plateau } UNION { GRAPH ?fromGraph { ?fromType rdfs:subClassOf* am4:Plateau } }
|
|
@@ -738,10 +738,10 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
738
738
|
:unrealised-services
|
|
739
739
|
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
740
740
|
dcterms:identifier "notation/archimate4/unrealised-services" ;
|
|
741
|
-
skos:prefLabel "Which services does nothing
|
|
742
|
-
dcterms:description "Services that no behaviour or active structure element
|
|
743
|
-
arch:answers "One row per service nothing
|
|
744
|
-
arch:doesNotProve "That the service is not delivered: it may be bought in, or
|
|
741
|
+
skos:prefLabel "Which services does nothing realize?"@en ;
|
|
742
|
+
dcterms:description "Services that no behaviour or active structure element realizes. A realization counts directly or as DR 2 derives it, through structural relationships in line."@en ;
|
|
743
|
+
arch:answers "One row per service nothing realizes."@en ;
|
|
744
|
+
arch:doesNotProve "That the service is not delivered: it may be bought in, or realized in a model that is not loaded."@en ;
|
|
745
745
|
arch:questionStage arch:QualityStage ;
|
|
746
746
|
arch:questionAddressesConcern am4vp:Completeness, am4vp:AddedValueOfProcesses ;
|
|
747
747
|
arch:questionFitsViewpoint am4vp:ServiceRealizationViewpoint, am4vp:ProcessCooperationViewpoint ;
|
|
@@ -780,7 +780,7 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
780
780
|
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
781
781
|
dcterms:identifier "notation/archimate4/applications-without-technology" ;
|
|
782
782
|
skos:prefLabel "Which application components run on no technology?"@en ;
|
|
783
|
-
dcterms:description "Application components that no element of the technology domain serves or
|
|
783
|
+
dcterms:description "Application components that no element of the technology domain serves or realizes, directly or by realizing a service that serves them. With the derivations loaded, a longer chain the valid rules derive counts too, as one hop."@en ;
|
|
784
784
|
arch:answers "One row per application component with no technology under it."@en ;
|
|
785
785
|
arch:doesNotProve "That it runs nowhere. Where it is hosted may be outside the model, or recorded only in a deployment model that is not loaded."@en ;
|
|
786
786
|
arch:questionStage arch:QualityStage ;
|
|
@@ -884,9 +884,9 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
884
884
|
:unrealised-capabilities
|
|
885
885
|
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
886
886
|
dcterms:identifier "notation/archimate4/unrealised-capabilities" ;
|
|
887
|
-
skos:prefLabel "Which capabilities does nothing
|
|
888
|
-
dcterms:description "Capabilities
|
|
889
|
-
arch:answers "One row per capability with no
|
|
887
|
+
skos:prefLabel "Which capabilities does nothing realize?"@en ;
|
|
888
|
+
dcterms:description "Capabilities realized neither directly nor through any capability they are composed of or aggregate. With the derivations loaded, a longer chain the valid rules derive counts too, as one hop."@en ;
|
|
889
|
+
arch:answers "One row per capability with no realization anywhere beneath it."@en ;
|
|
890
890
|
arch:doesNotProve "That the enterprise lacks the capability; only that the model does not say what delivers it."@en ;
|
|
891
891
|
arch:questionStage arch:QualityStage ;
|
|
892
892
|
arch:questionAddressesConcern am4vp:StrategyDevelopment, am4vp:Completeness ;
|
|
@@ -926,9 +926,9 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
926
926
|
:unrealised-requirements
|
|
927
927
|
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
928
928
|
dcterms:identifier "notation/archimate4/unrealised-requirements" ;
|
|
929
|
-
skos:prefLabel "Which requirements does no architecture element
|
|
930
|
-
dcterms:description "Requirements that no element outside the motivation domain
|
|
931
|
-
arch:answers "One row per requirement without a
|
|
929
|
+
skos:prefLabel "Which requirements does no architecture element realize?"@en ;
|
|
930
|
+
dcterms:description "Requirements that no element outside the motivation domain realizes: realization by another motivation element does not count. A realization counts directly or as DR 2 derives it, through structural relationships in line."@en ;
|
|
931
|
+
arch:answers "One row per requirement without a realizing design element."@en ;
|
|
932
932
|
arch:doesNotProve "That the requirement is unmet; only that the model does not show what meets it."@en ;
|
|
933
933
|
arch:questionStage arch:QualityStage ;
|
|
934
934
|
arch:questionAddressesConcern am4vp:ArchitectureTactics, am4vp:Motivation ;
|
|
@@ -956,7 +956,7 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
956
956
|
}
|
|
957
957
|
?requirement rdf:type ?requirementType ;
|
|
958
958
|
arch:inModel ?model .
|
|
959
|
-
#
|
|
959
|
+
# Realized by a design element: one whose own type is outside the motivation domain.
|
|
960
960
|
MINUS {
|
|
961
961
|
?from am4:realizes ?to .
|
|
962
962
|
?realizer (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?from .
|
|
@@ -985,8 +985,8 @@ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL
|
|
|
985
985
|
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
986
986
|
dcterms:identifier "notation/archimate4/principles-without-requirements" ;
|
|
987
987
|
skos:prefLabel "Which principles has no requirement made concrete?"@en ;
|
|
988
|
-
dcterms:description "Principles that no requirement
|
|
989
|
-
arch:answers "One row per principle no requirement
|
|
988
|
+
dcterms:description "Principles that no requirement realizes. A realization counts directly or as DR 2 derives it, through structural relationships in line."@en ;
|
|
989
|
+
arch:answers "One row per principle no requirement realizes."@en ;
|
|
990
990
|
arch:doesNotProve "That the principle is ignored. It may be applied by review rather than through stated requirements."@en ;
|
|
991
991
|
arch:questionStage arch:QualityStage ;
|
|
992
992
|
arch:questionAddressesConcern am4vp:ArchitecturePolicies ;
|
|
@@ -30,7 +30,7 @@ shapes, which this document imports, and it adds none of its own:
|
|
|
30
30
|
4. Relationship endpoint conformance — the endpoints of a relationship drawn on
|
|
31
31
|
a View should themselves be in the viewpoint's palette.
|
|
32
32
|
5. Viewpoint completeness — a viewpoint should declare what it admits, the
|
|
33
|
-
concerns it frames and which kinds of view
|
|
33
|
+
concerns it frames and which kinds of view realize it.
|
|
34
34
|
|
|
35
35
|
They read the viewpoint definitions from the loaded graph rather than naming any
|
|
36
36
|
viewpoint, and use no ArchiMate term, so core states them once for every language:
|