@linked.archi/la-gram-git 0.0.0-stage → 0.1.0

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.
Files changed (283) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +2 -0
  3. package/README.md +214 -2
  4. package/assets/arch-decision/arch-decision-metamodel.ttl +44 -0
  5. package/assets/arch-decision/arch-decision-onto.ttl +1566 -0
  6. package/assets/arch-decision/arch-decision-shapes.ttl +582 -0
  7. package/assets/arch-decision/arch-decision-tax.ttl +129 -0
  8. package/assets/arch-processes/arch-processes-metamodel.ttl +42 -0
  9. package/assets/arch-processes/arch-processes-tax.ttl +136 -0
  10. package/assets/arch-processes/archProcesses-shapes.ttl +189 -0
  11. package/assets/arch-processes/archProcesses.ttl +953 -0
  12. package/assets/archimate3/archimate3.2-element-shapes.ttl +379 -0
  13. package/assets/archimate3/archimate3.2-metamodel.ttl +205 -0
  14. package/assets/archimate3/archimate3.2-notation.ttl +1503 -0
  15. package/assets/archimate3/archimate3.2-onto.ttl +1579 -0
  16. package/assets/archimate3/archimate3.2-presentation-contexts.ttl +90 -0
  17. package/assets/archimate3/archimate3.2-principle-shapes.ttl +923 -0
  18. package/assets/archimate3/archimate3.2-questions.ttl +1125 -0
  19. package/assets/archimate3/archimate3.2-reference-data.ttl +74 -0
  20. package/assets/archimate3/archimate3.2-relationship-shapes.ttl +30956 -0
  21. package/assets/archimate3/archimate3.2-relationship-tables.ttl +5992 -0
  22. package/assets/archimate3/archimate3.2-tax.ttl +724 -0
  23. package/assets/archimate3/archimate3.2-viewpoint-shapes.ttl +59 -0
  24. package/assets/archimate3/archimate3.2-viewpoints.ttl +793 -0
  25. package/assets/archimate3/icons/and-junction.svg +3 -0
  26. package/assets/archimate3/icons/application-collaboration.svg +22 -0
  27. package/assets/archimate3/icons/application-component.svg +18 -0
  28. package/assets/archimate3/icons/application-event.svg +15 -0
  29. package/assets/archimate3/icons/application-function.svg +14 -0
  30. package/assets/archimate3/icons/application-interaction.svg +17 -0
  31. package/assets/archimate3/icons/application-interface.svg +16 -0
  32. package/assets/archimate3/icons/application-process.svg +14 -0
  33. package/assets/archimate3/icons/application-service.svg +14 -0
  34. package/assets/archimate3/icons/artifact.svg +16 -0
  35. package/assets/archimate3/icons/assessment.svg +17 -0
  36. package/assets/archimate3/icons/business-actor.svg +22 -0
  37. package/assets/archimate3/icons/business-collaboration.svg +21 -0
  38. package/assets/archimate3/icons/business-event.svg +15 -0
  39. package/assets/archimate3/icons/business-function.svg +14 -0
  40. package/assets/archimate3/icons/business-interaction.svg +18 -0
  41. package/assets/archimate3/icons/business-interface.svg +16 -0
  42. package/assets/archimate3/icons/business-object.svg +14 -0
  43. package/assets/archimate3/icons/business-process.svg +15 -0
  44. package/assets/archimate3/icons/business-role.svg +16 -0
  45. package/assets/archimate3/icons/business-service.svg +14 -0
  46. package/assets/archimate3/icons/capability.svg +40 -0
  47. package/assets/archimate3/icons/communication-network.svg +18 -0
  48. package/assets/archimate3/icons/constraint.svg +18 -0
  49. package/assets/archimate3/icons/contract.svg +13 -0
  50. package/assets/archimate3/icons/course-of-action.svg +20 -0
  51. package/assets/archimate3/icons/data-object.svg +14 -0
  52. package/assets/archimate3/icons/deliverable.svg +11 -0
  53. package/assets/archimate3/icons/device.svg +18 -0
  54. package/assets/archimate3/icons/distribution-network.svg +19 -0
  55. package/assets/archimate3/icons/driver.svg +24 -0
  56. package/assets/archimate3/icons/equipment.svg +31 -0
  57. package/assets/archimate3/icons/facility.svg +16 -0
  58. package/assets/archimate3/icons/gap.svg +22 -0
  59. package/assets/archimate3/icons/glyphs/activity.svg +3 -0
  60. package/assets/archimate3/icons/glyphs/actor.svg +14 -0
  61. package/assets/archimate3/icons/glyphs/application-component.svg +12 -0
  62. package/assets/archimate3/icons/glyphs/artifact.svg +9 -0
  63. package/assets/archimate3/icons/glyphs/assessment.svg +9 -0
  64. package/assets/archimate3/icons/glyphs/capability.svg +32 -0
  65. package/assets/archimate3/icons/glyphs/cloud-gear.svg +3 -0
  66. package/assets/archimate3/icons/glyphs/collaboration.svg +15 -0
  67. package/assets/archimate3/icons/glyphs/communication-network.svg +12 -0
  68. package/assets/archimate3/icons/glyphs/constraint.svg +10 -0
  69. package/assets/archimate3/icons/glyphs/contract.svg +5 -0
  70. package/assets/archimate3/icons/glyphs/course-of-action.svg +12 -0
  71. package/assets/archimate3/icons/glyphs/data-object.svg +4 -0
  72. package/assets/archimate3/icons/glyphs/deliverable.svg +3 -0
  73. package/assets/archimate3/icons/glyphs/device.svg +10 -0
  74. package/assets/archimate3/icons/glyphs/distribution-network.svg +11 -0
  75. package/assets/archimate3/icons/glyphs/driver.svg +16 -0
  76. package/assets/archimate3/icons/glyphs/equipment.svg +22 -0
  77. package/assets/archimate3/icons/glyphs/event.svg +6 -0
  78. package/assets/archimate3/icons/glyphs/facility.svg +7 -0
  79. package/assets/archimate3/icons/glyphs/function.svg +6 -0
  80. package/assets/archimate3/icons/glyphs/gap.svg +14 -0
  81. package/assets/archimate3/icons/glyphs/goal.svg +10 -0
  82. package/assets/archimate3/icons/glyphs/grouping.svg +4 -0
  83. package/assets/archimate3/icons/glyphs/interaction.svg +10 -0
  84. package/assets/archimate3/icons/glyphs/interface.svg +8 -0
  85. package/assets/archimate3/icons/glyphs/location.svg +6 -0
  86. package/assets/archimate3/icons/glyphs/material.svg +12 -0
  87. package/assets/archimate3/icons/glyphs/meaning.svg +3 -0
  88. package/assets/archimate3/icons/glyphs/node.svg +8 -0
  89. package/assets/archimate3/icons/glyphs/object.svg +4 -0
  90. package/assets/archimate3/icons/glyphs/outcome.svg +16 -0
  91. package/assets/archimate3/icons/glyphs/path.svg +10 -0
  92. package/assets/archimate3/icons/glyphs/person-silhouette.svg +3 -0
  93. package/assets/archimate3/icons/glyphs/plateau.svg +8 -0
  94. package/assets/archimate3/icons/glyphs/principle.svg +12 -0
  95. package/assets/archimate3/icons/glyphs/process.svg +6 -0
  96. package/assets/archimate3/icons/glyphs/product.svg +4 -0
  97. package/assets/archimate3/icons/glyphs/representation.svg +4 -0
  98. package/assets/archimate3/icons/glyphs/requirement.svg +6 -0
  99. package/assets/archimate3/icons/glyphs/resource.svg +14 -0
  100. package/assets/archimate3/icons/glyphs/role.svg +6 -0
  101. package/assets/archimate3/icons/glyphs/service.svg +6 -0
  102. package/assets/archimate3/icons/glyphs/stakeholder.svg +6 -0
  103. package/assets/archimate3/icons/glyphs/system-software.svg +14 -0
  104. package/assets/archimate3/icons/glyphs/value-stream.svg +3 -0
  105. package/assets/archimate3/icons/glyphs/value.svg +3 -0
  106. package/assets/archimate3/icons/glyphs/work-package.svg +4 -0
  107. package/assets/archimate3/icons/goal.svg +18 -0
  108. package/assets/archimate3/icons/grouping.svg +12 -0
  109. package/assets/archimate3/icons/implementation-event.svg +15 -0
  110. package/assets/archimate3/icons/location.svg +14 -0
  111. package/assets/archimate3/icons/material.svg +21 -0
  112. package/assets/archimate3/icons/meaning.svg +11 -0
  113. package/assets/archimate3/icons/node.svg +14 -0
  114. package/assets/archimate3/icons/or-junction.svg +3 -0
  115. package/assets/archimate3/icons/outcome.svg +25 -0
  116. package/assets/archimate3/icons/path.svg +18 -0
  117. package/assets/archimate3/icons/plateau.svg +16 -0
  118. package/assets/archimate3/icons/principle.svg +21 -0
  119. package/assets/archimate3/icons/product.svg +12 -0
  120. package/assets/archimate3/icons/representation.svg +12 -0
  121. package/assets/archimate3/icons/requirement.svg +14 -0
  122. package/assets/archimate3/icons/resource.svg +23 -0
  123. package/assets/archimate3/icons/stakeholder.svg +15 -0
  124. package/assets/archimate3/icons/system-software.svg +22 -0
  125. package/assets/archimate3/icons/technology-collaboration.svg +22 -0
  126. package/assets/archimate3/icons/technology-event.svg +15 -0
  127. package/assets/archimate3/icons/technology-function.svg +14 -0
  128. package/assets/archimate3/icons/technology-interaction.svg +18 -0
  129. package/assets/archimate3/icons/technology-interface.svg +16 -0
  130. package/assets/archimate3/icons/technology-process.svg +14 -0
  131. package/assets/archimate3/icons/technology-service.svg +14 -0
  132. package/assets/archimate3/icons/value-stream.svg +11 -0
  133. package/assets/archimate3/icons/value.svg +11 -0
  134. package/assets/archimate3/icons/work-package.svg +12 -0
  135. package/assets/archimate4/archimate4-element-shapes.ttl +404 -0
  136. package/assets/archimate4/archimate4-metamodel.ttl +179 -0
  137. package/assets/archimate4/archimate4-notation.ttl +1147 -0
  138. package/assets/archimate4/archimate4-onto.ttl +1559 -0
  139. package/assets/archimate4/archimate4-presentation-contexts.ttl +60 -0
  140. package/assets/archimate4/archimate4-principle-shapes.ttl +893 -0
  141. package/assets/archimate4/archimate4-questions.ttl +1224 -0
  142. package/assets/archimate4/archimate4-reference-data.ttl +56 -0
  143. package/assets/archimate4/archimate4-relationship-shapes.ttl +16920 -0
  144. package/assets/archimate4/archimate4-relationship-tables.ttl +3200 -0
  145. package/assets/archimate4/archimate4-tax.ttl +749 -0
  146. package/assets/archimate4/archimate4-viewpoint-shapes.ttl +55 -0
  147. package/assets/archimate4/archimate4-viewpoints.ttl +777 -0
  148. package/assets/archimate4/icons/and-junction.svg +3 -0
  149. package/assets/archimate4/icons/application-component.svg +18 -0
  150. package/assets/archimate4/icons/application-interface.svg +16 -0
  151. package/assets/archimate4/icons/artifact.svg +16 -0
  152. package/assets/archimate4/icons/assessment.svg +17 -0
  153. package/assets/archimate4/icons/business-actor.svg +22 -0
  154. package/assets/archimate4/icons/business-interface.svg +16 -0
  155. package/assets/archimate4/icons/business-object.svg +14 -0
  156. package/assets/archimate4/icons/capability.svg +40 -0
  157. package/assets/archimate4/icons/collaboration.svg +21 -0
  158. package/assets/archimate4/icons/communication-network.svg +18 -0
  159. package/assets/archimate4/icons/course-of-action.svg +20 -0
  160. package/assets/archimate4/icons/data-object.svg +14 -0
  161. package/assets/archimate4/icons/deliverable.svg +11 -0
  162. package/assets/archimate4/icons/device.svg +18 -0
  163. package/assets/archimate4/icons/distribution-network.svg +19 -0
  164. package/assets/archimate4/icons/driver.svg +24 -0
  165. package/assets/archimate4/icons/equipment.svg +31 -0
  166. package/assets/archimate4/icons/event.svg +15 -0
  167. package/assets/archimate4/icons/facility.svg +16 -0
  168. package/assets/archimate4/icons/function.svg +13 -0
  169. package/assets/archimate4/icons/glyphs/activity.svg +3 -0
  170. package/assets/archimate4/icons/glyphs/actor.svg +14 -0
  171. package/assets/archimate4/icons/glyphs/application-component.svg +12 -0
  172. package/assets/archimate4/icons/glyphs/artifact.svg +9 -0
  173. package/assets/archimate4/icons/glyphs/assessment.svg +9 -0
  174. package/assets/archimate4/icons/glyphs/capability.svg +32 -0
  175. package/assets/archimate4/icons/glyphs/cloud-gear.svg +3 -0
  176. package/assets/archimate4/icons/glyphs/collaboration.svg +15 -0
  177. package/assets/archimate4/icons/glyphs/communication-network.svg +12 -0
  178. package/assets/archimate4/icons/glyphs/constraint.svg +10 -0
  179. package/assets/archimate4/icons/glyphs/contract.svg +5 -0
  180. package/assets/archimate4/icons/glyphs/course-of-action.svg +12 -0
  181. package/assets/archimate4/icons/glyphs/data-object.svg +4 -0
  182. package/assets/archimate4/icons/glyphs/deliverable.svg +3 -0
  183. package/assets/archimate4/icons/glyphs/device.svg +10 -0
  184. package/assets/archimate4/icons/glyphs/distribution-network.svg +11 -0
  185. package/assets/archimate4/icons/glyphs/driver.svg +16 -0
  186. package/assets/archimate4/icons/glyphs/equipment.svg +22 -0
  187. package/assets/archimate4/icons/glyphs/event.svg +6 -0
  188. package/assets/archimate4/icons/glyphs/facility.svg +7 -0
  189. package/assets/archimate4/icons/glyphs/function.svg +6 -0
  190. package/assets/archimate4/icons/glyphs/gap.svg +14 -0
  191. package/assets/archimate4/icons/glyphs/goal.svg +10 -0
  192. package/assets/archimate4/icons/glyphs/grouping.svg +4 -0
  193. package/assets/archimate4/icons/glyphs/interaction.svg +10 -0
  194. package/assets/archimate4/icons/glyphs/interface.svg +8 -0
  195. package/assets/archimate4/icons/glyphs/location.svg +6 -0
  196. package/assets/archimate4/icons/glyphs/material.svg +12 -0
  197. package/assets/archimate4/icons/glyphs/meaning.svg +3 -0
  198. package/assets/archimate4/icons/glyphs/node.svg +8 -0
  199. package/assets/archimate4/icons/glyphs/object.svg +4 -0
  200. package/assets/archimate4/icons/glyphs/outcome.svg +16 -0
  201. package/assets/archimate4/icons/glyphs/path.svg +10 -0
  202. package/assets/archimate4/icons/glyphs/person-silhouette.svg +3 -0
  203. package/assets/archimate4/icons/glyphs/plateau.svg +8 -0
  204. package/assets/archimate4/icons/glyphs/principle.svg +12 -0
  205. package/assets/archimate4/icons/glyphs/process.svg +6 -0
  206. package/assets/archimate4/icons/glyphs/product.svg +4 -0
  207. package/assets/archimate4/icons/glyphs/representation.svg +4 -0
  208. package/assets/archimate4/icons/glyphs/requirement.svg +6 -0
  209. package/assets/archimate4/icons/glyphs/resource.svg +14 -0
  210. package/assets/archimate4/icons/glyphs/role.svg +6 -0
  211. package/assets/archimate4/icons/glyphs/service.svg +6 -0
  212. package/assets/archimate4/icons/glyphs/stakeholder.svg +6 -0
  213. package/assets/archimate4/icons/glyphs/system-software.svg +14 -0
  214. package/assets/archimate4/icons/glyphs/value-stream.svg +3 -0
  215. package/assets/archimate4/icons/glyphs/value.svg +3 -0
  216. package/assets/archimate4/icons/glyphs/work-package.svg +4 -0
  217. package/assets/archimate4/icons/goal.svg +18 -0
  218. package/assets/archimate4/icons/grouping.svg +12 -0
  219. package/assets/archimate4/icons/location.svg +14 -0
  220. package/assets/archimate4/icons/material.svg +21 -0
  221. package/assets/archimate4/icons/meaning.svg +11 -0
  222. package/assets/archimate4/icons/node.svg +14 -0
  223. package/assets/archimate4/icons/or-junction.svg +3 -0
  224. package/assets/archimate4/icons/outcome.svg +25 -0
  225. package/assets/archimate4/icons/path.svg +18 -0
  226. package/assets/archimate4/icons/plateau.svg +16 -0
  227. package/assets/archimate4/icons/principle.svg +21 -0
  228. package/assets/archimate4/icons/process.svg +15 -0
  229. package/assets/archimate4/icons/product.svg +12 -0
  230. package/assets/archimate4/icons/requirement.svg +14 -0
  231. package/assets/archimate4/icons/resource.svg +23 -0
  232. package/assets/archimate4/icons/role.svg +16 -0
  233. package/assets/archimate4/icons/service.svg +13 -0
  234. package/assets/archimate4/icons/stakeholder.svg +15 -0
  235. package/assets/archimate4/icons/system-software.svg +22 -0
  236. package/assets/archimate4/icons/technology-interface.svg +16 -0
  237. package/assets/archimate4/icons/value-stream.svg +11 -0
  238. package/assets/archimate4/icons/value.svg +11 -0
  239. package/assets/archimate4/icons/work-package.svg +12 -0
  240. package/assets/basic/basic-metamodel.ttl +100 -0
  241. package/assets/basic/basic-notation-bubble.ttl +175 -0
  242. package/assets/basic/basic-notation.ttl +172 -0
  243. package/assets/basic/basic-onto.ttl +171 -0
  244. package/assets/basic/basic-presentation-contexts.ttl +70 -0
  245. package/assets/basic/basic-tax.ttl +130 -0
  246. package/assets/basic/icons/aggregation.svg +7 -0
  247. package/assets/basic/icons/association.svg +6 -0
  248. package/assets/basic/icons/element.svg +5 -0
  249. package/assets/basic/icons/glyphs/aggregation.svg +6 -0
  250. package/assets/basic/icons/glyphs/association.svg +5 -0
  251. package/assets/basic/icons/glyphs/element.svg +5 -0
  252. package/assets/basic/icons/glyphs/relationship.svg +5 -0
  253. package/assets/basic/icons/relationship.svg +7 -0
  254. package/assets/basic/notation-bubble/icons/aggregation.svg +7 -0
  255. package/assets/basic/notation-bubble/icons/association.svg +6 -0
  256. package/assets/basic/notation-bubble/icons/element.svg +5 -0
  257. package/assets/basic/notation-bubble/icons/glyphs/aggregation.svg +6 -0
  258. package/assets/basic/notation-bubble/icons/glyphs/association.svg +5 -0
  259. package/assets/basic/notation-bubble/icons/glyphs/element.svg +5 -0
  260. package/assets/basic/notation-bubble/icons/glyphs/relationship.svg +5 -0
  261. package/assets/basic/notation-bubble/icons/relationship.svg +7 -0
  262. package/assets/catalog.ttl +7302 -0
  263. package/assets/core/core-notation.ttl +131 -0
  264. package/assets/core/core-onto.ttl +2811 -0
  265. package/assets/core/core-questions.ttl +957 -0
  266. package/assets/core/core-shapes.ttl +915 -0
  267. package/assets/core/core-vis-onto.ttl +1408 -0
  268. package/assets/core/core-vis-shapes.ttl +840 -0
  269. package/assets/core-vis/markers/circle-dot.svg +3 -0
  270. package/assets/core-vis/markers/closed-arrowhead.svg +3 -0
  271. package/assets/core-vis/markers/filled-diamond.svg +3 -0
  272. package/assets/core-vis/markers/half-arrowhead.svg +3 -0
  273. package/assets/core-vis/markers/hollow-arrowhead.svg +3 -0
  274. package/assets/core-vis/markers/hollow-diamond.svg +3 -0
  275. package/assets/core-vis/markers/open-arrowhead.svg +3 -0
  276. package/ci/README.md +126 -0
  277. package/ci/github/la-gram-git.yml +30 -0
  278. package/ci/gitlab/la-gram-git.gitlab-ci.yml +20 -0
  279. package/dist/637.js +51 -0
  280. package/dist/637.js.map +1 -0
  281. package/dist/la-gram-git.js +22936 -0
  282. package/dist/la-gram-git.js.map +1 -0
  283. package/package.json +31 -4
@@ -0,0 +1,1224 @@
1
+ @prefix owl: <http://www.w3.org/2002/07/owl#> .
2
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
3
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
4
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
5
+ @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
6
+ @prefix dcterms: <http://purl.org/dc/terms/> .
7
+ @prefix bibo: <http://purl.org/ontology/bibo/> .
8
+ @prefix cc: <http://creativecommons.org/ns#> .
9
+ @prefix vann: <http://purl.org/vocab/vann/> .
10
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
11
+ @prefix arch: <https://meta.linked.archi/core#> .
12
+ @prefix am4vp: <https://meta.linked.archi/archimate4/viewpoints#> .
13
+ @prefix : <https://meta.linked.archi/archimate4/questions#> .
14
+
15
+ #################################################################
16
+ # Linked.Archi ArchiMate 4.0 Questions
17
+ #
18
+ # Questions ArchiMate 4.0 stakeholders ask of a model, bound to the
19
+ # concerns the ArchiMate 4.0 viewpoints frame (am4vp:ImpactOfChange,
20
+ # am4vp:Completeness …) and to the viewpoints they fit, so a modelling
21
+ # tool offers them beside an open view and a deliverable section asks
22
+ # them for a concern. Written as the core questions are (see
23
+ # arch:ModelQuestion).
24
+ #
25
+ # Domain membership is read from the ArchiMate 4.0 domain classes
26
+ # (am4:ApplicationDomainElement …). Every type a question asks about is
27
+ # read as a set, once per query, in two steps — the types under it
28
+ # within each document, then their specialisations in any document —
29
+ # so a model's own specialisation of an ArchiMate type counts where
30
+ # that type does.
31
+ #
32
+ # Relationships are followed along their direct triples. A question
33
+ # that asks what serves, realises, is assigned to or triggers what
34
+ # follows the chains the valid derivation rules follow (DR 2 to DR 8),
35
+ # so it answers the same with the derivations loaded, each then one
36
+ # hop, as without them; but where that walk is too slow on a large
37
+ # model (application dependencies, technology under applications,
38
+ # requirement traceability, unrealised capabilities) a question
39
+ # follows a few fixed steps, and a longer chain only once derived. One
40
+ # that needs the relationship itself (the kind of an access) reads
41
+ # its qualified resource.
42
+ #################################################################
43
+
44
+ <https://meta.linked.archi/archimate4/questions#>
45
+ a arch:QuestionSet ;
46
+ cc:license "http://creativecommons.org/licenses/by/4.0/" ;
47
+ vann:preferredNamespaceUri "https://meta.linked.archi/archimate4/questions#" ;
48
+ vann:preferredNamespacePrefix "am4q" ;
49
+ dcterms:creator "Kalin Maldzhanski"^^xsd:string ;
50
+ dcterms:title "Linked.Archi ArchiMate 4.0 Questions"@en ;
51
+ dcterms:description '''Questions ArchiMate 4.0 stakeholders ask of a model — impact of change, application
52
+ dependencies, data access, responsibilities, realisation and traceability — and the findings that show where a
53
+ concern the ArchiMate 4.0 viewpoints frame is not met. Each is executable SPARQL (see arch:ModelQuestion).'''@en ;
54
+ dcterms:created "2026-10-27"^^xsd:date ;
55
+ dcterms:modified "2026-10-27"^^xsd:date ;
56
+ dcterms:publisher "Linked.Archi"@en, <https://linked.archi> ;
57
+ bibo:status "draft" ;
58
+ owl:versionInfo "0.1.0" ;
59
+ sh:declare
60
+ [ sh:prefix "arch" ; sh:namespace "https://meta.linked.archi/core#"^^xsd:anyURI ],
61
+ [ sh:prefix "rdf" ; sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ],
62
+ [ sh:prefix "rdfs" ; sh:namespace "http://www.w3.org/2000/01/rdf-schema#"^^xsd:anyURI ],
63
+ [ sh:prefix "skos" ; sh:namespace "http://www.w3.org/2004/02/skos/core#"^^xsd:anyURI ],
64
+ [ sh:prefix "am4" ; sh:namespace "https://meta.linked.archi/archimate4/onto#"^^xsd:anyURI ],
65
+ [ sh:prefix "prov" ; sh:namespace "http://www.w3.org/ns/prov#"^^xsd:anyURI ],
66
+ [ sh:prefix "am4deriv" ; sh:namespace "https://meta.linked.archi/archimate4/derivation#"^^xsd:anyURI ] ;
67
+ .
68
+
69
+ # ── Orientation ─────────────────────────────────────────────────
70
+
71
+ :elements-by-domain
72
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
73
+ dcterms:identifier "notation/archimate4/elements-by-domain" ;
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 specialise, so specialisations count where they belong."@en ;
76
+ arch:answers "One row per domain, with the number of elements in it."@en ;
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
+ arch:questionStage arch:OrientationStage ;
79
+ arch:questionAddressesConcern am4vp:ReductionOfComplexity, am4vp:Completeness ;
80
+ arch:questionFitsViewpoint am4vp:LayeredViewpoint ;
81
+ arch:resultIsFinding false ;
82
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
83
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
84
+ arch:resultKey "domains" ;
85
+ arch:defaultLimit 50 ;
86
+ sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 1 ;
87
+ sh:description "The model to count. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
88
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
89
+ sh:select """
90
+ SELECT ?domain (COUNT(DISTINCT ?element) AS ?elements)
91
+ WHERE {
92
+ # Each domain's types, read once.
93
+ {
94
+ SELECT DISTINCT ?domain ?type
95
+ WHERE {
96
+ VALUES ?domain {
97
+ am4:StrategyElement am4:MotivationElement am4:BusinessDomainElement
98
+ am4:ApplicationDomainElement am4:TechnologyDomainElement am4:ImplementationAndMigrationDomainElement
99
+ am4:CommonDomainElement
100
+ }
101
+ { ?domainType rdfs:subClassOf* ?domain } UNION { GRAPH ?ontologyGraph { ?domainType rdfs:subClassOf* ?domain } }
102
+ { ?type rdfs:subClassOf* ?domainType } UNION { GRAPH ?specialisationGraph { ?type rdfs:subClassOf* ?domainType } }
103
+ }
104
+ }
105
+ ?element rdf:type ?type ;
106
+ arch:inModel ?model .
107
+ }
108
+ GROUP BY ?domain
109
+ ORDER BY DESC(?elements)
110
+ """ ;
111
+ .
112
+
113
+ # ── Analysis ────────────────────────────────────────────────────
114
+
115
+ :cross-domain-relationships
116
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
117
+ dcterms:identifier "notation/archimate4/cross-domain-relationships" ;
118
+ skos:prefLabel "Which relationships cross domains, and of which kind?"@en ;
119
+ dcterms:description "Relationships whose ends are in different ArchiMate 4.0 domains, read from their direct triples and counted by pair of domains and relationship type. The domains are read from the domain classes, not from type names."@en ;
120
+ arch:answers "One row per source domain, relationship type and target domain, with the number of pairs of elements so related."@en ;
121
+ arch:doesNotProve "Coupling. Relationships touching elements of the common domain are not counted: ArchiMate 4.0 assigns those no domain, so whether they cross one is undefined."@en ;
122
+ arch:questionStage arch:AnalysisStage ;
123
+ arch:questionAddressesConcern am4vp:Consistency, am4vp:ImpactOfChange ;
124
+ arch:questionFitsViewpoint am4vp:LayeredViewpoint ;
125
+ arch:resultIsFinding false ;
126
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
127
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
128
+ arch:resultKey "crossings" ;
129
+ arch:defaultLimit 200 ;
130
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
131
+ sh:select """
132
+ SELECT ?sourceDomain ?relationshipType ?targetDomain (COUNT(DISTINCT ?pair) AS ?relationships)
133
+ WHERE {
134
+ # Each relationship by its direct triple, with the type it is the unqualified form of.
135
+ VALUES (?predicate ?relationshipType) {
136
+ (am4:composedOf am4:Composition) (am4:aggregates am4:Aggregation) (am4:assignedTo am4:Assignment)
137
+ (am4:realizes am4:Realization) (am4:serves am4:Serving) (am4:accesses am4:Access)
138
+ (am4:influences am4:Influence) (am4:associatedWith am4:Association) (am4:triggers am4:Triggering)
139
+ (am4:flowsTo am4:Flow) (am4:specializes am4:Specialization)
140
+ }
141
+ ?source ?predicate ?target .
142
+ BIND(CONCAT(STR(?source), " ", STR(?target)) AS ?pair)
143
+ ?source rdf:type ?sourceType .
144
+ ?target rdf:type ?targetType .
145
+ {
146
+ SELECT DISTINCT ?sourceDomain ?sourceType
147
+ WHERE {
148
+ VALUES ?sourceDomain {
149
+ am4:StrategyElement am4:MotivationElement am4:BusinessDomainElement
150
+ am4:ApplicationDomainElement am4:TechnologyDomainElement am4:ImplementationAndMigrationDomainElement
151
+ }
152
+ { ?sourceDomainType rdfs:subClassOf* ?sourceDomain } UNION { GRAPH ?sourceOntologyGraph { ?sourceDomainType rdfs:subClassOf* ?sourceDomain } }
153
+ { ?sourceType rdfs:subClassOf* ?sourceDomainType } UNION { GRAPH ?sourceSpecialisationGraph { ?sourceType rdfs:subClassOf* ?sourceDomainType } }
154
+ }
155
+ }
156
+ {
157
+ SELECT DISTINCT ?targetDomain ?targetType
158
+ WHERE {
159
+ VALUES ?targetDomain {
160
+ am4:StrategyElement am4:MotivationElement am4:BusinessDomainElement
161
+ am4:ApplicationDomainElement am4:TechnologyDomainElement am4:ImplementationAndMigrationDomainElement
162
+ }
163
+ { ?targetDomainType rdfs:subClassOf* ?targetDomain } UNION { GRAPH ?targetOntologyGraph { ?targetDomainType rdfs:subClassOf* ?targetDomain } }
164
+ { ?targetType rdfs:subClassOf* ?targetDomainType } UNION { GRAPH ?targetSpecialisationGraph { ?targetType rdfs:subClassOf* ?targetDomainType } }
165
+ }
166
+ }
167
+ FILTER(?sourceDomain != ?targetDomain)
168
+ }
169
+ GROUP BY ?sourceDomain ?relationshipType ?targetDomain
170
+ ORDER BY DESC(?relationships)
171
+ """ ;
172
+ .
173
+
174
+ :responsibility-assignments
175
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
176
+ dcterms:identifier "notation/archimate4/responsibility-assignments" ;
177
+ skos:prefLabel "Who is responsible for what?"@en ;
178
+ dcterms:description "Assignments, stated or as DR 2 derives them in line with compositions and aggregations: which actor, role, collaboration, component or node performs which behaviour or plays which role."@en ;
179
+ arch:answers "One row per performer and what it is assigned to, with both types."@en ;
180
+ arch:doesNotProve "Accountability in the RACI sense. An ArchiMate assignment states who performs, not who answers for the outcome."@en ;
181
+ arch:questionStage arch:AnalysisStage ;
182
+ arch:questionAddressesConcern am4vp:CompetenciesAuthorityResponsibilities, am4vp:Responsibilities ;
183
+ arch:questionTargetsStakeholder am4vp:ProcessArchitect, am4vp:Manager ;
184
+ arch:questionFitsViewpoint am4vp:OrganizationViewpoint, am4vp:ProcessCooperationViewpoint ;
185
+ arch:resultIsFinding false ;
186
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
187
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
188
+ arch:resultKey "assignments" ;
189
+ arch:defaultLimit 500 ;
190
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
191
+ sh:select """
192
+ SELECT DISTINCT ?performer ?performerLabel ?performerType ?assigned ?assignedLabel ?assignedType
193
+ WHERE {
194
+ # From each assignment, back to the performer and on to what it is assigned to, in line with compositions
195
+ # and aggregations: DR 2 derives the weakest of the three, an assignment.
196
+ ?from am4:assignedTo ?to .
197
+ ?performer (am4:composedOf|am4:aggregates|am4:assignedTo)* ?from .
198
+ ?to (am4:composedOf|am4:aggregates|am4:assignedTo)* ?assigned .
199
+ # The performer is active structure, as the question asks: a plateau, grouping or location gathers what is
200
+ # assigned through what it aggregates, it does not perform.
201
+ {
202
+ SELECT DISTINCT ?performerType
203
+ WHERE {
204
+ { ?askedPerformer rdfs:subClassOf* am4:ActiveStructureElement } UNION { GRAPH ?performerGraph { ?askedPerformer rdfs:subClassOf* am4:ActiveStructureElement } }
205
+ { ?performerType rdfs:subClassOf* ?askedPerformer } UNION { GRAPH ?performerSpecialisationGraph { ?performerType rdfs:subClassOf* ?askedPerformer } }
206
+ }
207
+ }
208
+ ?performer rdf:type ?performerType .
209
+ ?assigned rdf:type ?assignedType .
210
+ FILTER(?performerType NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
211
+ FILTER(?assignedType NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
212
+ MINUS { SELECT DISTINCT ?performerType WHERE { { ?performerType arch:isAbstractClass true }
213
+ UNION { GRAPH ?abstractClassGraph { ?performerType arch:isAbstractClass true } } } }
214
+ MINUS { SELECT DISTINCT ?assignedType WHERE { { ?assignedType arch:isAbstractClass true }
215
+ UNION { GRAPH ?abstractClassGraph { ?assignedType arch:isAbstractClass true } } } }
216
+ OPTIONAL { ?performer skos:prefLabel ?performerLabel . FILTER(lang(?performerLabel) = "" || langMatches(lang(?performerLabel), "en")) }
217
+ OPTIONAL { ?assigned skos:prefLabel ?assignedLabel . FILTER(lang(?assignedLabel) = "" || langMatches(lang(?assignedLabel), "en")) }
218
+ }
219
+ ORDER BY ?performerLabel ?assignedLabel
220
+ """ ;
221
+ .
222
+
223
+ :application-dependencies
224
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
225
+ dcterms:identifier "notation/archimate4/application-dependencies" ;
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 realises — 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
+ arch:answers "One row per dependency: the provider, how it provides, the service between where there is one, and the consumer."@en ;
229
+ arch:doesNotProve "Runtime coupling or data volume. A modelled flow says that information moves, not how much or how often."@en ;
230
+ arch:questionStage arch:AnalysisStage ;
231
+ arch:questionAddressesConcern am4vp:ApplicationDependencies, am4vp:ServiceOrchestration ;
232
+ arch:questionFitsViewpoint am4vp:ApplicationCooperationViewpoint, am4vp:ApplicationUsageViewpoint ;
233
+ arch:resultIsFinding false ;
234
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
235
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
236
+ arch:resultKey "applicationDependencies" ;
237
+ arch:defaultLimit 500 ;
238
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
239
+ sh:select """
240
+ SELECT DISTINCT ?provider ?providerLabel ?how ?via ?consumer ?consumerLabel
241
+ WHERE {
242
+ # From the direct triples to their ends, each branch anchored on its relationships: never every pair of
243
+ # components. Both ends are then checked against the component types, read once each.
244
+ {
245
+ VALUES (?link ?how) { (am4:serves "Serving") (am4:flowsTo "Flow") (am4:triggers "Triggering") }
246
+ ?provider ?link ?consumer .
247
+ }
248
+ UNION
249
+ {
250
+ {
251
+ SELECT DISTINCT ?serviceType
252
+ WHERE {
253
+ { ?askedService rdfs:subClassOf* am4:Service } UNION { GRAPH ?serviceOntologyGraph { ?askedService rdfs:subClassOf* am4:Service } }
254
+ { ?serviceType rdfs:subClassOf* ?askedService } UNION { GRAPH ?serviceSpecialisationGraph { ?serviceType rdfs:subClassOf* ?askedService } }
255
+ }
256
+ }
257
+ ?via rdf:type ?serviceType ;
258
+ am4:serves ?consumer .
259
+ ?provider am4:realizes|(am4:assignedTo/am4:realizes) ?via .
260
+ BIND("realises a service serving" AS ?how)
261
+ }
262
+ ?provider rdf:type ?providerType .
263
+ ?consumer rdf:type ?consumerType .
264
+ {
265
+ SELECT DISTINCT ?providerType
266
+ WHERE {
267
+ { ?askedProvider rdfs:subClassOf* am4:ApplicationComponent } UNION { GRAPH ?providerGraph { ?askedProvider rdfs:subClassOf* am4:ApplicationComponent } }
268
+ { ?providerType rdfs:subClassOf* ?askedProvider } UNION { GRAPH ?providerSpecialisationGraph { ?providerType rdfs:subClassOf* ?askedProvider } }
269
+ }
270
+ }
271
+ {
272
+ SELECT DISTINCT ?consumerType
273
+ WHERE {
274
+ { ?askedConsumer rdfs:subClassOf* am4:ApplicationComponent } UNION { GRAPH ?consumerGraph { ?askedConsumer rdfs:subClassOf* am4:ApplicationComponent } }
275
+ { ?consumerType rdfs:subClassOf* ?askedConsumer } UNION { GRAPH ?consumerSpecialisationGraph { ?consumerType rdfs:subClassOf* ?askedConsumer } }
276
+ }
277
+ }
278
+ FILTER(?provider != ?consumer)
279
+ OPTIONAL { ?provider skos:prefLabel ?providerLabel . FILTER(lang(?providerLabel) = "" || langMatches(lang(?providerLabel), "en")) }
280
+ OPTIONAL { ?consumer skos:prefLabel ?consumerLabel . FILTER(lang(?consumerLabel) = "" || langMatches(lang(?consumerLabel), "en")) }
281
+ }
282
+ ORDER BY ?providerLabel ?consumerLabel
283
+ """ ;
284
+ .
285
+
286
+ :interface-flows
287
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
288
+ dcterms:identifier "notation/archimate4/interface-flows" ;
289
+ skos:prefLabel "Which flows involve application interfaces?"@en, "Quels flux impliquent des interfaces applicatives ?"@fr ;
290
+ dcterms:description "Recorded flows whose source or target is an application interface."@en ;
291
+ arch:answers "Each row identifies a qualified flow, its type and its directed endpoints. Parallel flows keep their own identifiers."@en ;
292
+ arch:doesNotProve "Runtime traffic, protocol or volume. A recorded flow states a transfer in the model."@en ;
293
+ arch:questionStage arch:AnalysisStage ;
294
+ arch:questionAddressesConcern am4vp:ApplicationDependencies ;
295
+ arch:questionFitsViewpoint am4vp:ApplicationCooperationViewpoint ;
296
+ arch:resultIsFinding false ;
297
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
298
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
299
+ arch:resultKey "interfaceFlows" ;
300
+ arch:defaultLimit 500 ;
301
+ sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 1 ;
302
+ sh:description "The open model whose flows are reported."@en ] ;
303
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
304
+ sh:select """
305
+ SELECT DISTINCT ?source ?flow ?target ?kind
306
+ WHERE {
307
+ {
308
+ SELECT DISTINCT ?kind WHERE {
309
+ { ?kind rdfs:subClassOf* am4:Flow }
310
+ UNION { GRAPH ?flowTypes { ?kind rdfs:subClassOf* am4:Flow } }
311
+ }
312
+ }
313
+ ?flow rdf:type ?kind ;
314
+ arch:source ?source ;
315
+ arch:target ?target .
316
+ FILTER(isIRI(?source) && isIRI(?flow) && isIRI(?target))
317
+ FILTER(!BOUND(?model) || EXISTS { ?flow arch:inModel ?model })
318
+ { ?source rdf:type ?interfaceType }
319
+ UNION { ?target rdf:type ?interfaceType }
320
+ {
321
+ SELECT DISTINCT ?interfaceType WHERE {
322
+ { ?interfaceType rdfs:subClassOf* am4:ApplicationInterface }
323
+ UNION { GRAPH ?interfaceTypes { ?interfaceType rdfs:subClassOf* am4:ApplicationInterface } }
324
+ }
325
+ }
326
+ }
327
+ ORDER BY ?source ?target ?flow ?kind
328
+ """ ;
329
+ .
330
+
331
+ :data-access
332
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
333
+ dcterms:identifier "notation/archimate4/data-access" ;
334
+ skos:prefLabel "Who reads and writes which information?"@en ;
335
+ dcterms:description "Access relationships by kind: ArchiMate 4.0 types the kind (am4:ReadAccess, am4:WriteAccess, am4:ReadWriteAccess, and am4:Access when it is not stated)."@en ;
336
+ arch:answers "One row per access: what accesses, the kind of access, and the object accessed."@en ;
337
+ arch:doesNotProve "Ownership of the data. Write access is not mastery; arch:masterDataSource says where that is recorded."@en ;
338
+ arch:questionStage arch:AnalysisStage ;
339
+ arch:questionAddressesConcern am4vp:InformationStructure, am4vp:Consistency ;
340
+ arch:questionTargetsStakeholder am4vp:InformationArchitect ;
341
+ arch:questionFitsViewpoint am4vp:InformationStructureViewpoint, am4vp:ApplicationCooperationViewpoint ;
342
+ arch:resultIsFinding false ;
343
+ arch:requiresDataset arch:ModelDataset ;
344
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
345
+ arch:resultKey "access" ;
346
+ arch:defaultLimit 500 ;
347
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
348
+ sh:select """
349
+ SELECT DISTINCT ?accessor ?accessorLabel ?access ?accessKind ?object ?objectLabel ?objectType
350
+ WHERE {
351
+ VALUES ?accessKind { am4:Access am4:ReadAccess am4:WriteAccess am4:ReadWriteAccess }
352
+ ?access rdf:type ?accessKind ;
353
+ arch:source ?accessor ;
354
+ arch:target ?object .
355
+ ?object rdf:type ?objectType .
356
+ FILTER(?objectType NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
357
+ MINUS { SELECT DISTINCT ?objectType WHERE { { ?objectType arch:isAbstractClass true }
358
+ UNION { GRAPH ?abstractClassGraph { ?objectType arch:isAbstractClass true } } } }
359
+ OPTIONAL { ?accessor skos:prefLabel ?accessorLabel . FILTER(lang(?accessorLabel) = "" || langMatches(lang(?accessorLabel), "en")) }
360
+ OPTIONAL { ?object skos:prefLabel ?objectLabel . FILTER(lang(?objectLabel) = "" || langMatches(lang(?objectLabel), "en")) }
361
+ }
362
+ ORDER BY ?objectLabel ?accessKind ?accessorLabel
363
+ """ ;
364
+ .
365
+
366
+ :impact-of-change
367
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
368
+ dcterms:identifier "notation/archimate4/impact-of-change" ;
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, realises or is assigned to, and what accesses it."@en ;
371
+ arch:answers "One row per element that depends on the element, directly or through others."@en ;
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
+ arch:questionStage arch:AnalysisStage ;
374
+ arch:questionAddressesConcern am4vp:ImpactOfChange, am4vp:Dependencies ;
375
+ arch:questionTargetsStakeholder am4vp:EnterpriseArchitect, am4vp:ApplicationArchitect, am4vp:InfrastructureArchitect ;
376
+ arch:questionFitsViewpoint am4vp:LayeredViewpoint, am4vp:TechnologyUsageViewpoint, am4vp:ApplicationCooperationViewpoint ;
377
+ arch:resultIsFinding false ;
378
+ arch:requiresDataset arch:ModelDataset ;
379
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
380
+ arch:resultKey "impacted" ;
381
+ arch:defaultLimit 500 ;
382
+ sh:parameter [ sh:path arch:focus ; sh:name "focus" ; sh:nodeKind sh:IRI ; sh:optional false ; sh:order 1 ;
383
+ sh:description "The element that changes. A modelling tool binds the selected element; a deliverable, the element it is produced for."@en ] ;
384
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
385
+ sh:select """
386
+ SELECT DISTINCT ?impacted ?label ?type
387
+ WHERE {
388
+ ?focus (am4:serves|am4:realizes|am4:assignedTo|^am4:accesses)+ ?impacted .
389
+ FILTER(?impacted != ?focus)
390
+ FILTER NOT EXISTS { ?impacted arch:source ?anySource }
391
+ ?impacted rdf:type ?type .
392
+ FILTER(?type NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
393
+ MINUS { SELECT DISTINCT ?type WHERE { { ?type arch:isAbstractClass true }
394
+ UNION { GRAPH ?abstractClassGraph { ?type arch:isAbstractClass true } } } }
395
+ OPTIONAL { ?impacted skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
396
+ }
397
+ ORDER BY ?type ?label
398
+ """ ;
399
+ .
400
+
401
+ :capability-realisation
402
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
403
+ dcterms:identifier "notation/archimate4/capability-realisation" ;
404
+ skos:prefLabel "What realises each capability?"@en ;
405
+ dcterms:description "Capabilities with the behaviour, active structure or resources that realise them. A realisation counts directly or as DR 2 derives it, through structural relationships in line."@en ;
406
+ arch:answers "One row per capability and what realises it; a capability nothing realises appears once, with nothing beside it."@en ;
407
+ arch:doesNotProve "Maturity. That a capability is realised says it is delivered somehow, not how well."@en ;
408
+ arch:questionStage arch:AnalysisStage ;
409
+ arch:questionAddressesConcern am4vp:StrategyDevelopment, am4vp:ArchitectureStrategy ;
410
+ arch:questionTargetsStakeholder am4vp:BusinessArchitect, am4vp:CxO ;
411
+ arch:questionFitsViewpoint am4vp:CapabilityMapViewpoint, am4vp:StrategyViewpoint ;
412
+ arch:resultIsFinding false ;
413
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
414
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
415
+ arch:resultKey "capabilities" ;
416
+ arch:defaultLimit 500 ;
417
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
418
+ sh:select """
419
+ SELECT DISTINCT ?capability ?capabilityLabel ?realizer ?realizerLabel ?realizerType
420
+ WHERE {
421
+ {
422
+ SELECT DISTINCT ?capabilityType
423
+ WHERE {
424
+ { ?asked rdfs:subClassOf* am4:Capability } UNION { GRAPH ?ontologyGraph { ?asked rdfs:subClassOf* am4:Capability } }
425
+ { ?capabilityType rdfs:subClassOf* ?asked } UNION { GRAPH ?specialisationGraph { ?capabilityType rdfs:subClassOf* ?asked } }
426
+ }
427
+ }
428
+ ?capability rdf:type ?capabilityType .
429
+ OPTIONAL {
430
+ # From each realisation, back to the realizer and on to the capability through structural relationships
431
+ # in line: DR 2 derives the weakest, a realisation.
432
+ ?from am4:realizes ?to .
433
+ ?realizer (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?from .
434
+ ?to (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?capability .
435
+ ?realizer rdf:type ?realizerType .
436
+ FILTER(?realizerType NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
437
+ MINUS { SELECT DISTINCT ?realizerType WHERE { { ?realizerType arch:isAbstractClass true }
438
+ UNION { GRAPH ?abstractClassGraph { ?realizerType arch:isAbstractClass true } } } }
439
+ OPTIONAL { ?realizer skos:prefLabel ?realizerLabel . FILTER(lang(?realizerLabel) = "" || langMatches(lang(?realizerLabel), "en")) }
440
+ }
441
+ OPTIONAL { ?capability skos:prefLabel ?capabilityLabel . FILTER(lang(?capabilityLabel) = "" || langMatches(lang(?capabilityLabel), "en")) }
442
+ }
443
+ ORDER BY ?capabilityLabel ?realizerLabel
444
+ """ ;
445
+ .
446
+
447
+ :stakeholder-motivation
448
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
449
+ dcterms:identifier "notation/archimate4/stakeholder-motivation" ;
450
+ skos:prefLabel "What do stakeholders care about?"@en ;
451
+ dcterms:description "Stakeholders and the motivation elements (drivers, assessments, goals, outcomes, principles, requirements, values, meanings) they are related to, in either direction."@en ;
452
+ arch:answers "One row per relationship between a stakeholder and a motivation element."@en ;
453
+ arch:doesNotProve "Priority. That a stakeholder is associated with a goal does not rank it among their concerns."@en ;
454
+ arch:questionStage arch:AnalysisStage ;
455
+ arch:questionAddressesConcern am4vp:ArchitectureMission, am4vp:Motivation ;
456
+ arch:questionTargetsStakeholder am4vp:BusinessManager, am4vp:EnterpriseArchitect ;
457
+ arch:questionFitsViewpoint am4vp:StakeholderViewpoint ;
458
+ arch:resultIsFinding false ;
459
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
460
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
461
+ arch:resultKey "stakeholderMotivation" ;
462
+ arch:defaultLimit 500 ;
463
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
464
+ sh:select """
465
+ SELECT DISTINCT ?stakeholder ?stakeholderLabel ?direction ?predicate ?motivation ?motivationLabel ?motivationType
466
+ WHERE {
467
+ {
468
+ SELECT DISTINCT ?stakeholderType
469
+ WHERE {
470
+ { ?asked rdfs:subClassOf* am4:Stakeholder } UNION { GRAPH ?ontologyGraph { ?asked rdfs:subClassOf* am4:Stakeholder } }
471
+ { ?stakeholderType rdfs:subClassOf* ?asked } UNION { GRAPH ?specialisationGraph { ?stakeholderType rdfs:subClassOf* ?asked } }
472
+ }
473
+ }
474
+ {
475
+ SELECT DISTINCT ?motivationType
476
+ WHERE {
477
+ { ?motivationLayerType rdfs:subClassOf* am4:MotivationElement } UNION { GRAPH ?motivationGraph { ?motivationLayerType rdfs:subClassOf* am4:MotivationElement } }
478
+ { ?motivationType rdfs:subClassOf* ?motivationLayerType } UNION { GRAPH ?motivationSpecialisationGraph { ?motivationType rdfs:subClassOf* ?motivationLayerType } }
479
+ }
480
+ }
481
+ VALUES ?predicate { am4:associatedWith am4:influences am4:realizes am4:aggregates am4:composedOf }
482
+ ?stakeholder rdf:type ?stakeholderType .
483
+ { ?stakeholder ?predicate ?motivation . BIND("outgoing" AS ?direction) }
484
+ UNION
485
+ { ?motivation ?predicate ?stakeholder . BIND("incoming" AS ?direction) }
486
+ ?motivation rdf:type ?motivationType .
487
+ MINUS { SELECT DISTINCT ?motivationType WHERE { { ?motivationType arch:isAbstractClass true }
488
+ UNION { GRAPH ?abstractClassGraph { ?motivationType arch:isAbstractClass true } } } }
489
+ OPTIONAL { ?stakeholder skos:prefLabel ?stakeholderLabel . FILTER(lang(?stakeholderLabel) = "" || langMatches(lang(?stakeholderLabel), "en")) }
490
+ OPTIONAL { ?motivation skos:prefLabel ?motivationLabel . FILTER(lang(?motivationLabel) = "" || langMatches(lang(?motivationLabel), "en")) }
491
+ }
492
+ ORDER BY ?stakeholderLabel ?direction ?motivationLabel
493
+ """ ;
494
+ .
495
+
496
+ :requirement-traceability
497
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
498
+ dcterms:identifier "notation/archimate4/requirement-traceability" ;
499
+ skos:prefLabel "How does each requirement trace to goals and to the elements that realise it?"@en ;
500
+ dcterms:description "Requirements with what realises them, below, and the goals, outcomes and principles they realise 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
+ 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 realisation relationship is a design claim; it does not show the requirement is met."@en ;
503
+ arch:questionStage arch:AnalysisStage ;
504
+ arch:questionAddressesConcern am4vp:ArchitectureTactics, am4vp:Motivation ;
505
+ arch:questionTargetsStakeholder am4vp:RequirementsManager, am4vp:BusinessAnalyst ;
506
+ arch:questionFitsViewpoint am4vp:RequirementsRealizationViewpoint, am4vp:GoalRealizationViewpoint ;
507
+ arch:resultIsFinding false ;
508
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
509
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
510
+ arch:resultKey "traceability" ;
511
+ arch:defaultLimit 1000 ;
512
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
513
+ sh:select """
514
+ SELECT DISTINCT ?requirement ?requirementLabel ?direction ?predicate ?other ?otherLabel ?otherType
515
+ WHERE {
516
+ {
517
+ SELECT DISTINCT ?requirementType
518
+ WHERE {
519
+ { ?asked rdfs:subClassOf* am4:Requirement } UNION { GRAPH ?ontologyGraph { ?asked rdfs:subClassOf* am4:Requirement } }
520
+ { ?requirementType rdfs:subClassOf* ?asked } UNION { GRAPH ?specialisationGraph { ?requirementType rdfs:subClassOf* ?asked } }
521
+ }
522
+ }
523
+ ?requirement rdf:type ?requirementType .
524
+ {
525
+ ?other am4:realizes ?requirement .
526
+ BIND(am4:realizes AS ?predicate)
527
+ BIND("realised by" AS ?direction)
528
+ }
529
+ UNION
530
+ {
531
+ VALUES ?predicate { am4:realizes am4:influences }
532
+ ?requirement ?predicate ?other .
533
+ BIND("contributes to" AS ?direction)
534
+ }
535
+ ?other rdf:type ?otherType .
536
+ FILTER(?otherType NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
537
+ MINUS { SELECT DISTINCT ?otherType WHERE { { ?otherType arch:isAbstractClass true }
538
+ UNION { GRAPH ?abstractClassGraph { ?otherType arch:isAbstractClass true } } } }
539
+ OPTIONAL { ?requirement skos:prefLabel ?requirementLabel . FILTER(lang(?requirementLabel) = "" || langMatches(lang(?requirementLabel), "en")) }
540
+ OPTIONAL { ?other skos:prefLabel ?otherLabel . FILTER(lang(?otherLabel) = "" || langMatches(lang(?otherLabel), "en")) }
541
+ }
542
+ ORDER BY ?requirementLabel ?direction ?otherLabel
543
+ """ ;
544
+ .
545
+
546
+ :principle-rationale
547
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
548
+ dcterms:identifier "notation/archimate4/principle-rationale" ;
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 realise them."@en ;
551
+ arch:answers "One row per relationship between a principle and another element."@en ;
552
+ arch:doesNotProve "Compliance. A requirement realising a principle states an intent, not that designs follow it."@en ;
553
+ arch:questionStage arch:AnalysisStage ;
554
+ arch:questionAddressesConcern am4vp:ArchitecturePolicies, am4vp:Motivation ;
555
+ arch:questionFitsViewpoint am4vp:MotivationViewpoint ;
556
+ arch:resultIsFinding false ;
557
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
558
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
559
+ arch:resultKey "principles" ;
560
+ arch:defaultLimit 500 ;
561
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
562
+ sh:select """
563
+ SELECT DISTINCT ?principle ?principleLabel ?direction ?predicate ?other ?otherLabel ?otherType
564
+ WHERE {
565
+ {
566
+ SELECT DISTINCT ?principleType
567
+ WHERE {
568
+ { ?asked rdfs:subClassOf* am4:Principle } UNION { GRAPH ?ontologyGraph { ?asked rdfs:subClassOf* am4:Principle } }
569
+ { ?principleType rdfs:subClassOf* ?asked } UNION { GRAPH ?specialisationGraph { ?principleType rdfs:subClassOf* ?asked } }
570
+ }
571
+ }
572
+ VALUES ?predicate { am4:realizes am4:influences am4:associatedWith }
573
+ ?principle rdf:type ?principleType .
574
+ { ?principle ?predicate ?other . BIND("outgoing" AS ?direction) }
575
+ UNION
576
+ { ?other ?predicate ?principle . BIND("incoming" AS ?direction) }
577
+ ?other rdf:type ?otherType .
578
+ FILTER(?otherType NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
579
+ MINUS { SELECT DISTINCT ?otherType WHERE { { ?otherType arch:isAbstractClass true }
580
+ UNION { GRAPH ?abstractClassGraph { ?otherType arch:isAbstractClass true } } } }
581
+ OPTIONAL { ?principle skos:prefLabel ?principleLabel . FILTER(lang(?principleLabel) = "" || langMatches(lang(?principleLabel), "en")) }
582
+ OPTIONAL { ?other skos:prefLabel ?otherLabel . FILTER(lang(?otherLabel) = "" || langMatches(lang(?otherLabel), "en")) }
583
+ }
584
+ ORDER BY ?principleLabel ?direction ?otherLabel
585
+ """ ;
586
+ .
587
+
588
+ :work-package-deliverables
589
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
590
+ dcterms:identifier "notation/archimate4/work-package-deliverables" ;
591
+ skos:prefLabel "What does each work package deliver, and what does that realise?"@en ;
592
+ dcterms:description "Work packages, the deliverables they realise, and the architecture elements those deliverables realise. A realisation 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 realised."@en ;
594
+ arch:doesNotProve "Schedule or progress. ArchiMate records what a work package produces, not when."@en ;
595
+ arch:questionStage arch:AnalysisStage ;
596
+ arch:questionAddressesConcern am4vp:ArchitectureVision, am4vp:ArchitecturePolicies ;
597
+ arch:questionTargetsStakeholder am4vp:OperationalManager, am4vp:EnterpriseArchitect ;
598
+ arch:questionFitsViewpoint am4vp:ProjectViewpoint, am4vp:ImplementationAndMigrationViewpoint ;
599
+ arch:resultIsFinding false ;
600
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
601
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
602
+ arch:resultKey "workPackages" ;
603
+ arch:defaultLimit 500 ;
604
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
605
+ sh:select """
606
+ SELECT DISTINCT ?workPackage ?workPackageLabel ?deliverable ?deliverableLabel ?realized ?realizedLabel ?realizedType
607
+ WHERE {
608
+ {
609
+ SELECT DISTINCT ?workPackageType
610
+ WHERE {
611
+ { ?asked rdfs:subClassOf* am4:WorkPackage } UNION { GRAPH ?ontologyGraph { ?asked rdfs:subClassOf* am4:WorkPackage } }
612
+ { ?workPackageType rdfs:subClassOf* ?asked } UNION { GRAPH ?specialisationGraph { ?workPackageType rdfs:subClassOf* ?asked } }
613
+ }
614
+ }
615
+ {
616
+ SELECT DISTINCT ?deliverableType
617
+ WHERE {
618
+ { ?askedDeliverable rdfs:subClassOf* am4:Deliverable } UNION { GRAPH ?deliverableGraph { ?askedDeliverable rdfs:subClassOf* am4:Deliverable } }
619
+ { ?deliverableType rdfs:subClassOf* ?askedDeliverable } UNION { GRAPH ?deliverableSpecialisationGraph { ?deliverableType rdfs:subClassOf* ?askedDeliverable } }
620
+ }
621
+ }
622
+ # Each realisation directly, or as DR 2 derives it through structural relationships in line.
623
+ ?from am4:realizes ?to .
624
+ ?workPackage (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?from .
625
+ ?to (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?deliverable .
626
+ ?workPackage rdf:type ?workPackageType .
627
+ ?deliverable rdf:type ?deliverableType .
628
+ OPTIONAL {
629
+ ?realizing am4:realizes ?realised .
630
+ ?deliverable (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?realizing .
631
+ ?realised (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?realized .
632
+ ?realized rdf:type ?realizedType .
633
+ FILTER(?realizedType NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
634
+ MINUS { SELECT DISTINCT ?realizedType WHERE { { ?realizedType arch:isAbstractClass true }
635
+ UNION { GRAPH ?abstractClassGraph { ?realizedType arch:isAbstractClass true } } } }
636
+ OPTIONAL { ?realized skos:prefLabel ?realizedLabel . FILTER(lang(?realizedLabel) = "" || langMatches(lang(?realizedLabel), "en")) }
637
+ }
638
+ OPTIONAL { ?workPackage skos:prefLabel ?workPackageLabel . FILTER(lang(?workPackageLabel) = "" || langMatches(lang(?workPackageLabel), "en")) }
639
+ OPTIONAL { ?deliverable skos:prefLabel ?deliverableLabel . FILTER(lang(?deliverableLabel) = "" || langMatches(lang(?deliverableLabel), "en")) }
640
+ }
641
+ ORDER BY ?workPackageLabel ?deliverableLabel
642
+ """ ;
643
+ .
644
+
645
+ :plateau-difference
646
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
647
+ dcterms:identifier "notation/archimate4/plateau-difference" ;
648
+ skos:prefLabel "What changes between these two plateaus?"@en ;
649
+ dcterms:description "Elements a later plateau aggregates or is composed of that an earlier one is not (added), and the reverse (removed)."@en ;
650
+ arch:answers "One row per element added or removed."@en ;
651
+ arch:doesNotProve "The migration path. The difference is the gap; the work packages that close it are another question."@en ;
652
+ arch:questionStage arch:AnalysisStage ;
653
+ arch:questionAddressesConcern am4vp:ModelHistory, am4vp:ArchitectureVision ;
654
+ arch:questionFitsViewpoint am4vp:MigrationViewpoint ;
655
+ arch:resultIsFinding false ;
656
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
657
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
658
+ arch:resultKey "plateauChanges" ;
659
+ arch:defaultLimit 1000 ;
660
+ sh:parameter [ sh:path arch:from ; sh:name "from" ; sh:nodeKind sh:IRI ; sh:optional false ; sh:order 1 ;
661
+ sh:description "The earlier plateau, such as the baseline."@en ] ;
662
+ sh:parameter [ sh:path arch:to ; sh:name "to" ; sh:nodeKind sh:IRI ; sh:optional false ; sh:order 2 ;
663
+ sh:description "The later plateau, such as the target."@en ] ;
664
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
665
+ sh:select """
666
+ SELECT DISTINCT ?change ?element ?label ?type
667
+ WHERE {
668
+ # Both are plateaus, or a specialisation of one.
669
+ FILTER EXISTS {
670
+ ?from rdf:type ?fromType .
671
+ { ?fromType rdfs:subClassOf* am4:Plateau } UNION { GRAPH ?fromGraph { ?fromType rdfs:subClassOf* am4:Plateau } }
672
+ }
673
+ FILTER EXISTS {
674
+ ?to rdf:type ?toType .
675
+ { ?toType rdfs:subClassOf* am4:Plateau } UNION { GRAPH ?toGraph { ?toType rdfs:subClassOf* am4:Plateau } }
676
+ }
677
+ FILTER(?from != ?to)
678
+ { ?to am4:aggregates|am4:composedOf ?element . BIND("added" AS ?change) }
679
+ UNION
680
+ { ?from am4:aggregates|am4:composedOf ?element . BIND("removed" AS ?change) }
681
+ # Here, where both are bound: in the other plateau it is not.
682
+ FILTER(IF(?change = "added",
683
+ NOT EXISTS { ?from am4:aggregates|am4:composedOf ?element },
684
+ NOT EXISTS { ?to am4:aggregates|am4:composedOf ?element }))
685
+ ?element rdf:type ?type .
686
+ FILTER(?type NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
687
+ MINUS { SELECT DISTINCT ?type WHERE { { ?type arch:isAbstractClass true }
688
+ UNION { GRAPH ?abstractClassGraph { ?type arch:isAbstractClass true } } } }
689
+ OPTIONAL { ?element skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
690
+ }
691
+ ORDER BY ?change ?type ?label
692
+ """ ;
693
+ .
694
+
695
+ # ── Quality: findings against the viewpoints' concerns ──────────
696
+
697
+ :unassigned-behaviour
698
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
699
+ dcterms:identifier "notation/archimate4/unassigned-behaviour" ;
700
+ skos:prefLabel "Which processes and functions has nobody been assigned to?"@en ;
701
+ dcterms:description "Processes and functions that no active structure element is assigned to. An assignment counts directly or as DR 2 derives it, in line with compositions and aggregations."@en ;
702
+ arch:answers "One row per process or function without a performer."@en ;
703
+ arch:doesNotProve "That nobody performs it. The performer may be assigned to an enclosing process, or the model may stop above that level of detail."@en ;
704
+ arch:questionStage arch:QualityStage ;
705
+ arch:questionAddressesConcern am4vp:Responsibilities, am4vp:Completeness ;
706
+ arch:questionFitsViewpoint am4vp:ProcessCooperationViewpoint, am4vp:OrganizationViewpoint ;
707
+ arch:resultIsFinding true ;
708
+ arch:findingSeverity sh:Warning ;
709
+ arch:findingFocus "behaviour" ;
710
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
711
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
712
+ arch:resultKey "unassigned" ;
713
+ arch:defaultLimit 500 ;
714
+ sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 1 ;
715
+ sh:description "The model to look in. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
716
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
717
+ sh:select """
718
+ SELECT DISTINCT ?behaviour ?label ?type
719
+ WHERE {
720
+ {
721
+ SELECT DISTINCT ?type ?behaviourType
722
+ WHERE {
723
+ VALUES ?type { am4:Process am4:Function }
724
+ { ?asked rdfs:subClassOf* ?type } UNION { GRAPH ?ontologyGraph { ?asked rdfs:subClassOf* ?type } }
725
+ { ?behaviourType rdfs:subClassOf* ?asked } UNION { GRAPH ?specialisationGraph { ?behaviourType rdfs:subClassOf* ?asked } }
726
+ }
727
+ }
728
+ ?behaviour rdf:type ?behaviourType ;
729
+ arch:inModel ?model .
730
+ # Directly, or as DR 2 derives it in line with compositions and aggregations.
731
+ FILTER NOT EXISTS { ?from am4:assignedTo ?to . ?to (am4:composedOf|am4:aggregates|am4:assignedTo)* ?behaviour }
732
+ OPTIONAL { ?behaviour skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
733
+ }
734
+ ORDER BY ?type ?label
735
+ """ ;
736
+ .
737
+
738
+ :unrealised-services
739
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
740
+ dcterms:identifier "notation/archimate4/unrealised-services" ;
741
+ skos:prefLabel "Which services does nothing realise?"@en ;
742
+ dcterms:description "Services that no behaviour or active structure element realises. A realisation counts directly or as DR 2 derives it, through structural relationships in line."@en ;
743
+ arch:answers "One row per service nothing realises."@en ;
744
+ arch:doesNotProve "That the service is not delivered: it may be bought in, or realised in a model that is not loaded."@en ;
745
+ arch:questionStage arch:QualityStage ;
746
+ arch:questionAddressesConcern am4vp:Completeness, am4vp:AddedValueOfProcesses ;
747
+ arch:questionFitsViewpoint am4vp:ServiceRealizationViewpoint, am4vp:ProcessCooperationViewpoint ;
748
+ arch:resultIsFinding true ;
749
+ arch:findingSeverity sh:Warning ;
750
+ arch:findingFocus "service" ;
751
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
752
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
753
+ arch:resultKey "unrealisedServices" ;
754
+ arch:defaultLimit 500 ;
755
+ sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 1 ;
756
+ sh:description "The model to look in. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
757
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
758
+ sh:select """
759
+ SELECT DISTINCT ?service ?label
760
+ WHERE {
761
+ {
762
+ SELECT DISTINCT ?type ?serviceType
763
+ WHERE {
764
+ VALUES ?type { am4:Service }
765
+ { ?asked rdfs:subClassOf* ?type } UNION { GRAPH ?ontologyGraph { ?asked rdfs:subClassOf* ?type } }
766
+ { ?serviceType rdfs:subClassOf* ?asked } UNION { GRAPH ?specialisationGraph { ?serviceType rdfs:subClassOf* ?asked } }
767
+ }
768
+ }
769
+ ?service rdf:type ?serviceType ;
770
+ arch:inModel ?model .
771
+ # Directly, or as DR 2 derives it through structural relationships in line.
772
+ FILTER NOT EXISTS { ?from am4:realizes ?to . ?to (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?service }
773
+ OPTIONAL { ?service skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
774
+ }
775
+ ORDER BY ?label
776
+ """ ;
777
+ .
778
+
779
+ :applications-without-technology
780
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
781
+ dcterms:identifier "notation/archimate4/applications-without-technology" ;
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 realises, directly or by realising a service that serves them. With the derivations loaded, a longer chain the valid rules derive counts too, as one hop."@en ;
784
+ arch:answers "One row per application component with no technology under it."@en ;
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
+ arch:questionStage arch:QualityStage ;
787
+ arch:questionAddressesConcern am4vp:ApplicationPlatforms, am4vp:InfrastructureQuality ;
788
+ arch:questionTargetsStakeholder am4vp:ApplicationArchitect, am4vp:InfrastructureArchitect ;
789
+ arch:questionFitsViewpoint am4vp:ImplementationAndDeploymentViewpoint, am4vp:TechnologyUsageViewpoint ;
790
+ arch:resultIsFinding true ;
791
+ arch:findingSeverity sh:Warning ;
792
+ arch:findingFocus "application" ;
793
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
794
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
795
+ arch:resultKey "unhosted" ;
796
+ arch:defaultLimit 500 ;
797
+ sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 1 ;
798
+ sh:description "The model to look in. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
799
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
800
+ sh:select """
801
+ SELECT DISTINCT ?application ?label
802
+ WHERE {
803
+ {
804
+ SELECT DISTINCT ?componentType
805
+ WHERE {
806
+ { ?asked rdfs:subClassOf* am4:ApplicationComponent } UNION { GRAPH ?ontologyGraph { ?asked rdfs:subClassOf* am4:ApplicationComponent } }
807
+ { ?componentType rdfs:subClassOf* ?asked } UNION { GRAPH ?specialisationGraph { ?componentType rdfs:subClassOf* ?asked } }
808
+ }
809
+ }
810
+ ?application rdf:type ?componentType ;
811
+ arch:inModel ?model .
812
+ MINUS {
813
+ # The technology domain's types, read once.
814
+ {
815
+ SELECT DISTINCT ?technologyType
816
+ WHERE {
817
+ { ?domainType rdfs:subClassOf* am4:TechnologyDomainElement }
818
+ UNION { GRAPH ?domainGraph { ?domainType rdfs:subClassOf* am4:TechnologyDomainElement } }
819
+ { ?technologyType rdfs:subClassOf* ?domainType }
820
+ UNION { GRAPH ?domainSpecialisationGraph { ?technologyType rdfs:subClassOf* ?domainType } }
821
+ }
822
+ }
823
+ ?technology rdf:type ?technologyType ;
824
+ am4:serves|am4:realizes|(am4:realizes/am4:serves) ?application .
825
+ }
826
+ OPTIONAL { ?application skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
827
+ }
828
+ ORDER BY ?label
829
+ """ ;
830
+ .
831
+
832
+ :data-never-written
833
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
834
+ dcterms:identifier "notation/archimate4/data-never-written" ;
835
+ skos:prefLabel "Which information is read but never written?"@en ;
836
+ dcterms:description "Data objects, business objects and artifacts that something reads and nothing writes. Access of an unstated kind (am4:Access) counts as a possible write."@en ;
837
+ arch:answers "One row per object, with how many elements read it."@en ;
838
+ arch:doesNotProve "That the data has no source. It may be written by a system outside the model; that boundary is what the finding asks to discuss."@en ;
839
+ arch:questionStage arch:QualityStage ;
840
+ arch:questionAddressesConcern am4vp:InformationStructure, am4vp:Completeness ;
841
+ arch:questionFitsViewpoint am4vp:InformationStructureViewpoint ;
842
+ arch:resultIsFinding true ;
843
+ arch:findingSeverity sh:Warning ;
844
+ arch:findingFocus "object" ;
845
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
846
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
847
+ arch:resultKey "neverWritten" ;
848
+ arch:defaultLimit 500 ;
849
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
850
+ sh:select """
851
+ SELECT ?object ?label ?readers
852
+ WHERE {
853
+ {
854
+ SELECT ?object (COUNT(DISTINCT ?reader) AS ?readers)
855
+ WHERE {
856
+ {
857
+ SELECT DISTINCT ?objectType
858
+ WHERE {
859
+ VALUES ?askedObject { am4:DataObject am4:BusinessObject am4:Artifact }
860
+ { ?asked rdfs:subClassOf* ?askedObject } UNION { GRAPH ?ontologyGraph { ?asked rdfs:subClassOf* ?askedObject } }
861
+ { ?objectType rdfs:subClassOf* ?asked } UNION { GRAPH ?specialisationGraph { ?objectType rdfs:subClassOf* ?asked } }
862
+ }
863
+ }
864
+ ?read rdf:type am4:ReadAccess ;
865
+ arch:source ?reader ;
866
+ arch:target ?object .
867
+ ?object rdf:type ?objectType .
868
+ }
869
+ GROUP BY ?object
870
+ }
871
+ # Written: a write, a read-write, or an access whose kind is not stated.
872
+ FILTER NOT EXISTS {
873
+ VALUES ?writeKind { am4:WriteAccess am4:ReadWriteAccess am4:Access }
874
+ ?write rdf:type ?writeKind ;
875
+ arch:target ?object .
876
+ FILTER NOT EXISTS { ?write rdf:type am4:ReadAccess }
877
+ }
878
+ OPTIONAL { ?object skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
879
+ }
880
+ ORDER BY DESC(?readers) ?label
881
+ """ ;
882
+ .
883
+
884
+ :unrealised-capabilities
885
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
886
+ dcterms:identifier "notation/archimate4/unrealised-capabilities" ;
887
+ skos:prefLabel "Which capabilities does nothing realise?"@en ;
888
+ dcterms:description "Capabilities realised 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 realisation anywhere beneath it."@en ;
890
+ arch:doesNotProve "That the enterprise lacks the capability; only that the model does not say what delivers it."@en ;
891
+ arch:questionStage arch:QualityStage ;
892
+ arch:questionAddressesConcern am4vp:StrategyDevelopment, am4vp:Completeness ;
893
+ arch:questionFitsViewpoint am4vp:CapabilityMapViewpoint ;
894
+ arch:resultIsFinding true ;
895
+ arch:findingSeverity sh:Info ;
896
+ arch:findingFocus "capability" ;
897
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
898
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
899
+ arch:resultKey "unrealisedCapabilities" ;
900
+ arch:defaultLimit 500 ;
901
+ sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 1 ;
902
+ sh:description "The model to look in. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
903
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
904
+ sh:select """
905
+ SELECT DISTINCT ?capability ?label
906
+ WHERE {
907
+ {
908
+ SELECT DISTINCT ?capabilityType
909
+ WHERE {
910
+ { ?asked rdfs:subClassOf* am4:Capability } UNION { GRAPH ?ontologyGraph { ?asked rdfs:subClassOf* am4:Capability } }
911
+ { ?capabilityType rdfs:subClassOf* ?asked } UNION { GRAPH ?specialisationGraph { ?capabilityType rdfs:subClassOf* ?asked } }
912
+ }
913
+ }
914
+ ?capability rdf:type ?capabilityType ;
915
+ arch:inModel ?model .
916
+ FILTER NOT EXISTS {
917
+ ?capability (am4:composedOf|am4:aggregates)* ?part .
918
+ ?realizer am4:realizes ?part .
919
+ }
920
+ OPTIONAL { ?capability skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
921
+ }
922
+ ORDER BY ?label
923
+ """ ;
924
+ .
925
+
926
+ :unrealised-requirements
927
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
928
+ dcterms:identifier "notation/archimate4/unrealised-requirements" ;
929
+ skos:prefLabel "Which requirements does no architecture element realise?"@en ;
930
+ dcterms:description "Requirements that no element outside the motivation domain realises: realisation by another motivation element does not count. A realisation counts directly or as DR 2 derives it, through structural relationships in line."@en ;
931
+ arch:answers "One row per requirement without a realising design element."@en ;
932
+ arch:doesNotProve "That the requirement is unmet; only that the model does not show what meets it."@en ;
933
+ arch:questionStage arch:QualityStage ;
934
+ arch:questionAddressesConcern am4vp:ArchitectureTactics, am4vp:Motivation ;
935
+ arch:questionTargetsStakeholder am4vp:RequirementsManager ;
936
+ arch:questionFitsViewpoint am4vp:RequirementsRealizationViewpoint ;
937
+ arch:resultIsFinding true ;
938
+ arch:findingSeverity sh:Warning ;
939
+ arch:findingFocus "requirement" ;
940
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
941
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
942
+ arch:resultKey "unrealisedRequirements" ;
943
+ arch:defaultLimit 500 ;
944
+ sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 1 ;
945
+ sh:description "The model to look in. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
946
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
947
+ sh:select """
948
+ SELECT DISTINCT ?requirement ?label
949
+ WHERE {
950
+ {
951
+ SELECT DISTINCT ?requirementType
952
+ WHERE {
953
+ { ?asked rdfs:subClassOf* am4:Requirement } UNION { GRAPH ?ontologyGraph { ?asked rdfs:subClassOf* am4:Requirement } }
954
+ { ?requirementType rdfs:subClassOf* ?asked } UNION { GRAPH ?specialisationGraph { ?requirementType rdfs:subClassOf* ?asked } }
955
+ }
956
+ }
957
+ ?requirement rdf:type ?requirementType ;
958
+ arch:inModel ?model .
959
+ # Realised by a design element: one whose own type is outside the motivation domain.
960
+ MINUS {
961
+ ?from am4:realizes ?to .
962
+ ?realizer (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?from .
963
+ ?to (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?requirement .
964
+ ?realizer rdf:type ?realizerType .
965
+ FILTER(?realizerType NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
966
+ MINUS { SELECT DISTINCT ?realizerType WHERE { { ?realizerType arch:isAbstractClass true }
967
+ UNION { GRAPH ?abstractClassGraph { ?realizerType arch:isAbstractClass true } } } }
968
+ MINUS {
969
+ SELECT DISTINCT ?realizerType
970
+ WHERE {
971
+ { ?motivationType rdfs:subClassOf* am4:MotivationElement }
972
+ UNION { GRAPH ?motivationGraph { ?motivationType rdfs:subClassOf* am4:MotivationElement } }
973
+ { ?realizerType rdfs:subClassOf* ?motivationType }
974
+ UNION { GRAPH ?motivationSpecialisationGraph { ?realizerType rdfs:subClassOf* ?motivationType } }
975
+ }
976
+ }
977
+ }
978
+ OPTIONAL { ?requirement skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
979
+ }
980
+ ORDER BY ?label
981
+ """ ;
982
+ .
983
+
984
+ :principles-without-requirements
985
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
986
+ dcterms:identifier "notation/archimate4/principles-without-requirements" ;
987
+ skos:prefLabel "Which principles has no requirement made concrete?"@en ;
988
+ dcterms:description "Principles that no requirement realises. A realisation counts directly or as DR 2 derives it, through structural relationships in line."@en ;
989
+ arch:answers "One row per principle no requirement realises."@en ;
990
+ arch:doesNotProve "That the principle is ignored. It may be applied by review rather than through stated requirements."@en ;
991
+ arch:questionStage arch:QualityStage ;
992
+ arch:questionAddressesConcern am4vp:ArchitecturePolicies ;
993
+ arch:questionFitsViewpoint am4vp:MotivationViewpoint ;
994
+ arch:resultIsFinding true ;
995
+ arch:findingSeverity sh:Info ;
996
+ arch:findingFocus "principle" ;
997
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
998
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
999
+ arch:resultKey "unbackedPrinciples" ;
1000
+ arch:defaultLimit 500 ;
1001
+ sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 1 ;
1002
+ sh:description "The model to look in. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
1003
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
1004
+ sh:select """
1005
+ SELECT DISTINCT ?principle ?label
1006
+ WHERE {
1007
+ {
1008
+ SELECT DISTINCT ?principleType
1009
+ WHERE {
1010
+ { ?asked rdfs:subClassOf* am4:Principle } UNION { GRAPH ?ontologyGraph { ?asked rdfs:subClassOf* am4:Principle } }
1011
+ { ?principleType rdfs:subClassOf* ?asked } UNION { GRAPH ?specialisationGraph { ?principleType rdfs:subClassOf* ?asked } }
1012
+ }
1013
+ }
1014
+ ?principle rdf:type ?principleType ;
1015
+ arch:inModel ?model .
1016
+ FILTER NOT EXISTS {
1017
+ {
1018
+ SELECT DISTINCT ?requirementType
1019
+ WHERE {
1020
+ { ?askedRequirement rdfs:subClassOf* am4:Requirement } UNION { GRAPH ?requirementGraph { ?askedRequirement rdfs:subClassOf* am4:Requirement } }
1021
+ { ?requirementType rdfs:subClassOf* ?askedRequirement } UNION { GRAPH ?requirementSpecialisationGraph { ?requirementType rdfs:subClassOf* ?askedRequirement } }
1022
+ }
1023
+ }
1024
+ ?from am4:realizes ?to .
1025
+ ?requirement (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?from .
1026
+ ?to (am4:composedOf|am4:aggregates|am4:assignedTo|am4:realizes)* ?principle .
1027
+ ?requirement rdf:type ?requirementType .
1028
+ }
1029
+ OPTIONAL { ?principle skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
1030
+ }
1031
+ ORDER BY ?label
1032
+ """ ;
1033
+ .
1034
+
1035
+ # ── Views ───────────────────────────────────────────────────────
1036
+
1037
+ :viewpoint-scope
1038
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
1039
+ dcterms:identifier "notation/archimate4/viewpoint-scope" ;
1040
+ skos:prefLabel "What in the model belongs in a view of this ArchiMate viewpoint?"@en ;
1041
+ dcterms:description '''What belongs in a view of an ArchiMate 4.0 viewpoint. ArchiMate 4.0 places process,
1042
+ function, service, event and role in a common domain, and viewpoints such as the Technology Viewpoint admit them;
1043
+ listed whenever their type is admitted, every business process would belong in a technology view. An element of the
1044
+ common domain therefore belongs when a relationship connects it, in either direction, to an element of a
1045
+ domain-specific type the same viewpoint admits; every other element belongs when the viewpoint admits its type.'''@en ;
1046
+ arch:answers "One row per element: name, type, definition and a \"relationship → target\" summary of what it points to."@en ;
1047
+ arch:doesNotProve "That an element of the common domain left out is irrelevant to the viewpoint; only that nothing of a domain-specific type the viewpoint admits is related to it."@en ;
1048
+ arch:questionStage arch:ViewsStage ;
1049
+ arch:resultIsFinding false ;
1050
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
1051
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
1052
+ arch:resultKey "scope" ;
1053
+ arch:defaultLimit 1000 ;
1054
+ sh:parameter [ sh:path arch:viewpoint ; sh:name "viewpoint" ; sh:class arch:Viewpoint ; sh:optional false ; sh:order 1 ;
1055
+ sh:description "A viewpoint. A modelling tool binds the open view's viewpoint; a deliverable, the section's."@en ] ;
1056
+ sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 2 ;
1057
+ sh:description "The model to look in. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
1058
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
1059
+ sh:select """
1060
+ SELECT ?element (SAMPLE(?anyLabel) AS ?label) ?type (SAMPLE(?anyDefinition) AS ?definition)
1061
+ (GROUP_CONCAT(DISTINCT ?link; separator = "; ") AS ?outgoing)
1062
+ WHERE {
1063
+ {
1064
+ # Elements of a domain-specific type the viewpoint admits.
1065
+ {
1066
+ SELECT DISTINCT ?viewpoint ?type
1067
+ WHERE {
1068
+ { ?viewpoint arch:includesConcept ?admitted } UNION { GRAPH ?admittingGraph { ?viewpoint arch:includesConcept ?admitted } }
1069
+ { ?type rdfs:subClassOf* ?admitted } UNION { GRAPH ?hierarchyGraph { ?type rdfs:subClassOf* ?admitted } }
1070
+ MINUS {
1071
+ SELECT DISTINCT ?type
1072
+ WHERE {
1073
+ { ?commonType rdfs:subClassOf* am4:CommonDomainElement } UNION { GRAPH ?commonGraph { ?commonType rdfs:subClassOf* am4:CommonDomainElement } }
1074
+ { ?type rdfs:subClassOf* ?commonType } UNION { GRAPH ?commonSpecialisationGraph { ?type rdfs:subClassOf* ?commonType } }
1075
+ }
1076
+ }
1077
+ }
1078
+ }
1079
+ ?element rdf:type ?type ;
1080
+ arch:inModel ?model .
1081
+ }
1082
+ UNION
1083
+ {
1084
+ # Elements of a common-domain type the viewpoint admits, connected to one of a domain-specific type it
1085
+ # admits. The connected elements are found as a set first: per viewpoint, the elements at the other end
1086
+ # of a relationship from an element of an admitted domain-specific type.
1087
+ {
1088
+ SELECT DISTINCT ?viewpoint ?element
1089
+ WHERE {
1090
+ {
1091
+ SELECT DISTINCT ?viewpoint ?anchorType
1092
+ WHERE {
1093
+ { ?viewpoint arch:includesConcept ?anchorAdmitted } UNION { GRAPH ?anchorAdmittingGraph { ?viewpoint arch:includesConcept ?anchorAdmitted } }
1094
+ { ?anchorType rdfs:subClassOf* ?anchorAdmitted } UNION { GRAPH ?anchorHierarchyGraph { ?anchorType rdfs:subClassOf* ?anchorAdmitted } }
1095
+ MINUS {
1096
+ SELECT DISTINCT ?anchorType
1097
+ WHERE {
1098
+ { ?anchorCommonType rdfs:subClassOf* am4:CommonDomainElement } UNION { GRAPH ?anchorCommonGraph { ?anchorCommonType rdfs:subClassOf* am4:CommonDomainElement } }
1099
+ { ?anchorType rdfs:subClassOf* ?anchorCommonType } UNION { GRAPH ?anchorCommonSpecialisationGraph { ?anchorType rdfs:subClassOf* ?anchorCommonType } }
1100
+ }
1101
+ }
1102
+ }
1103
+ }
1104
+ ?anchor rdf:type ?anchorType .
1105
+ { ?connection arch:source ?anchor ; arch:target ?element }
1106
+ UNION
1107
+ { ?connection arch:target ?anchor ; arch:source ?element }
1108
+ }
1109
+ }
1110
+ ?element rdf:type ?type ;
1111
+ arch:inModel ?model .
1112
+ {
1113
+ SELECT DISTINCT ?viewpoint ?type
1114
+ WHERE {
1115
+ { ?viewpoint arch:includesConcept ?admitted } UNION { GRAPH ?admittingGraph { ?viewpoint arch:includesConcept ?admitted } }
1116
+ { ?type rdfs:subClassOf* ?admitted } UNION { GRAPH ?hierarchyGraph { ?type rdfs:subClassOf* ?admitted } }
1117
+ {
1118
+ SELECT DISTINCT ?type
1119
+ WHERE {
1120
+ { ?commonType rdfs:subClassOf* am4:CommonDomainElement } UNION { GRAPH ?commonGraph { ?commonType rdfs:subClassOf* am4:CommonDomainElement } }
1121
+ { ?type rdfs:subClassOf* ?commonType } UNION { GRAPH ?commonSpecialisationGraph { ?type rdfs:subClassOf* ?commonType } }
1122
+ }
1123
+ }
1124
+ }
1125
+ }
1126
+ }
1127
+ FILTER NOT EXISTS { ?element arch:source ?anySource }
1128
+ OPTIONAL { ?element skos:prefLabel ?anyLabel . FILTER(lang(?anyLabel) = "" || langMatches(lang(?anyLabel), "en")) }
1129
+ OPTIONAL { ?element skos:definition ?anyDefinition . FILTER(lang(?anyDefinition) = "" || langMatches(lang(?anyDefinition), "en")) }
1130
+ OPTIONAL {
1131
+ ?relationship arch:source ?element ;
1132
+ arch:target ?other ;
1133
+ rdf:type ?relationshipType .
1134
+ FILTER(?relationshipType NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
1135
+ MINUS { SELECT DISTINCT ?relationshipType WHERE { { ?relationshipType arch:isAbstractClass true }
1136
+ UNION { GRAPH ?abstractClassGraph { ?relationshipType arch:isAbstractClass true } } } }
1137
+ OPTIONAL { ?other skos:prefLabel ?otherLabel . FILTER(lang(?otherLabel) = "" || langMatches(lang(?otherLabel), "en")) }
1138
+ BIND(CONCAT(REPLACE(STR(?relationshipType), "^.*[#/]", ""), " → ",
1139
+ COALESCE(STR(?otherLabel), STR(?other))) AS ?link)
1140
+ }
1141
+ }
1142
+ GROUP BY ?element ?type
1143
+ ORDER BY ?type ?label
1144
+ """ ;
1145
+ .
1146
+
1147
+ # ── Derivations ─────────────────────────────────────────────────
1148
+ # What the derivation rules propose (archimate4-derivation-rules.ttl), read when the model's
1149
+ # derivations are loaded with it — beside it in a file, in its derived graph
1150
+ # in a store. Without them, nothing.
1151
+
1152
+ :potential-derivations
1153
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
1154
+ dcterms:identifier "notation/archimate4/potential-derivations" ;
1155
+ skos:prefLabel "Where could the model be more concrete?"@en ;
1156
+ dcterms:description "The potential derivations no modeller has confirmed: relationships the derivation rules say may hold between elements the model relates only through others, each with the rule that proposed it. Each is the model's to state, or to make more precise, where a relationship drawn to a whole is meant for one of its parts."@en ;
1157
+ arch:answers "One row per potential derivation not confirmed: its source, type and target, and the rule that proposed it."@en ;
1158
+ arch:doesNotProve "That the relationship holds: a potential derivation may hold, depending on the model. Nothing is listed unless the model's derivations are loaded with it."@en ;
1159
+ arch:questionStage arch:QualityStage ;
1160
+ arch:questionAddressesConcern am4vp:Completeness ;
1161
+ arch:resultIsFinding false ;
1162
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
1163
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
1164
+ arch:resultKey "potentialDerivations" ;
1165
+ arch:defaultLimit 500 ;
1166
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
1167
+ sh:select """
1168
+ SELECT DISTINCT ?derivation ?source ?sourceLabel ?relationshipType ?target ?targetLabel ?rule
1169
+ WHERE {
1170
+ # A potential derivation not confirmed: no qualified predicate leads to it.
1171
+ ?derivation am4deriv:derivationCertainty am4deriv:Potential ;
1172
+ arch:source ?source ;
1173
+ arch:target ?target ;
1174
+ rdf:type ?relationshipType .
1175
+ FILTER NOT EXISTS { ?source ?leads ?derivation }
1176
+ FILTER(?relationshipType NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
1177
+ MINUS { SELECT DISTINCT ?relationshipType WHERE { { ?relationshipType arch:isAbstractClass true }
1178
+ UNION { GRAPH ?abstractClassGraph { ?relationshipType arch:isAbstractClass true } } } }
1179
+ OPTIONAL { ?derivation prov:wasGeneratedBy/prov:qualifiedAssociation/prov:hadPlan ?rule }
1180
+ OPTIONAL { ?source skos:prefLabel ?sourceLabel . FILTER(lang(?sourceLabel) = "" || langMatches(lang(?sourceLabel), "en")) }
1181
+ OPTIONAL { ?target skos:prefLabel ?targetLabel . FILTER(lang(?targetLabel) = "" || langMatches(lang(?targetLabel), "en")) }
1182
+ }
1183
+ ORDER BY ?sourceLabel ?targetLabel ?relationshipType
1184
+ """ ;
1185
+ .
1186
+
1187
+ :potential-derivation-premises
1188
+ a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
1189
+ dcterms:identifier "notation/archimate4/potential-derivation-premises" ;
1190
+ skos:prefLabel "Which relationships give rise to the most potential derivations?"@en ;
1191
+ dcterms:description "The relationships the model states that the most potential derivations not confirmed rest on. A relationship drawn to a whole where one of its parts is meant gives rise to a proposal for each part; stating the part's own relationship makes the model more concrete."@en ;
1192
+ arch:answers "One row per relationship the model states that a potential derivation rests on, with how many rest on it, the most first."@en ;
1193
+ arch:doesNotProve "That the relationship is wrong: one drawn to a whole may be meant so. Nothing is listed unless the model's derivations are loaded with it."@en ;
1194
+ arch:questionStage arch:QualityStage ;
1195
+ arch:questionAddressesConcern am4vp:Completeness ;
1196
+ arch:resultIsFinding false ;
1197
+ arch:requiresDataset arch:ModelAndMetamodelDataset ;
1198
+ arch:requiresMetamodel <https://meta.linked.archi/archimate4/onto#> ;
1199
+ arch:resultKey "potentialDerivationPremises" ;
1200
+ arch:defaultLimit 200 ;
1201
+ sh:prefixes <https://meta.linked.archi/archimate4/questions#> ;
1202
+ sh:select """
1203
+ SELECT ?relationship ?source ?sourceLabel ?relationshipType ?target ?targetLabel (COUNT(DISTINCT ?derivation) AS ?derivations)
1204
+ WHERE {
1205
+ # Each potential derivation not confirmed, and what it was derived from that the model states: not a
1206
+ # derivation itself.
1207
+ ?derivation am4deriv:derivationCertainty am4deriv:Potential ;
1208
+ arch:source ?proposedSource ;
1209
+ prov:wasDerivedFrom ?relationship .
1210
+ FILTER NOT EXISTS { ?proposedSource ?leads ?derivation }
1211
+ FILTER NOT EXISTS { ?relationship am4deriv:derivationCertainty ?anyCertainty }
1212
+ ?relationship arch:source ?source ;
1213
+ arch:target ?target ;
1214
+ rdf:type ?relationshipType .
1215
+ FILTER(?relationshipType NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
1216
+ MINUS { SELECT DISTINCT ?relationshipType WHERE { { ?relationshipType arch:isAbstractClass true }
1217
+ UNION { GRAPH ?abstractClassGraph { ?relationshipType arch:isAbstractClass true } } } }
1218
+ OPTIONAL { ?source skos:prefLabel ?sourceLabel . FILTER(lang(?sourceLabel) = "" || langMatches(lang(?sourceLabel), "en")) }
1219
+ OPTIONAL { ?target skos:prefLabel ?targetLabel . FILTER(lang(?targetLabel) = "" || langMatches(lang(?targetLabel), "en")) }
1220
+ }
1221
+ GROUP BY ?relationship ?source ?sourceLabel ?relationshipType ?target ?targetLabel
1222
+ ORDER BY DESC(?derivations) ?sourceLabel ?targetLabel
1223
+ """ ;
1224
+ .