@linked.archi/kernel 0.0.0-stage → 0.1.6

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 (366) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +11 -0
  3. package/README.md +102 -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 +917 -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 +895 -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 +7406 -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 +851 -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/fixtures/interoperability/archimate4-demo.trig +259 -0
  277. package/fixtures/interoperability/expected-findings.json +26 -0
  278. package/fixtures/interoperability/shop-seed.ttl +225 -0
  279. package/package.json +136 -4
  280. package/scripts/sync-assets.mjs +252 -0
  281. package/src/conformance.ts +66 -0
  282. package/src/import-export/model-io.ts +426 -0
  283. package/src/index.ts +11 -0
  284. package/src/metamodel-manager/asset-sources.ts +754 -0
  285. package/src/metamodel-manager/bundled-assets.ts +599 -0
  286. package/src/metamodel-manager/catalogue.ts +114 -0
  287. package/src/metamodel-manager/class-hierarchy.ts +155 -0
  288. package/src/metamodel-manager/index.ts +65 -0
  289. package/src/metamodel-manager/interfaces.ts +422 -0
  290. package/src/metamodel-manager/metamodel-completeness.ts +162 -0
  291. package/src/metamodel-manager/metamodel-loader.ts +864 -0
  292. package/src/metamodel-manager/notation-resolver.ts +284 -0
  293. package/src/metamodel-manager/notation.ts +659 -0
  294. package/src/metamodel-manager/palette-generator.ts +882 -0
  295. package/src/metamodel-manager/property-shapes.ts +290 -0
  296. package/src/metamodel-manager/taxonomy.ts +904 -0
  297. package/src/metamodel-manager/type-guide.ts +241 -0
  298. package/src/metamodel-manager/viewpoint-manager.ts +147 -0
  299. package/src/model-manager/appearance.ts +389 -0
  300. package/src/model-manager/cascade.ts +246 -0
  301. package/src/model-manager/clipboard.ts +566 -0
  302. package/src/model-manager/context-names.ts +108 -0
  303. package/src/model-manager/custom-properties.ts +549 -0
  304. package/src/model-manager/derivations.ts +166 -0
  305. package/src/model-manager/direct-permissions.ts +182 -0
  306. package/src/model-manager/drawing-order.ts +119 -0
  307. package/src/model-manager/element-manager.ts +69 -0
  308. package/src/model-manager/element-pictures.ts +118 -0
  309. package/src/model-manager/field-names.ts +42 -0
  310. package/src/model-manager/folders.ts +354 -0
  311. package/src/model-manager/grid.ts +6 -0
  312. package/src/model-manager/index.ts +43 -0
  313. package/src/model-manager/interfaces.ts +417 -0
  314. package/src/model-manager/iri-conformance.ts +183 -0
  315. package/src/model-manager/label-expression.ts +233 -0
  316. package/src/model-manager/legacy-migration.ts +200 -0
  317. package/src/model-manager/missing-references.ts +86 -0
  318. package/src/model-manager/model-diff-text.ts +150 -0
  319. package/src/model-manager/model-diff.ts +534 -0
  320. package/src/model-manager/model-merge.ts +1160 -0
  321. package/src/model-manager/model-namespace.ts +199 -0
  322. package/src/model-manager/model-operations.ts +132 -0
  323. package/src/model-manager/model-queries.ts +616 -0
  324. package/src/model-manager/model-session.ts +759 -0
  325. package/src/model-manager/multiplicity.ts +74 -0
  326. package/src/model-manager/nested-resources.ts +145 -0
  327. package/src/model-manager/own-metamodel.ts +157 -0
  328. package/src/model-manager/placement-copy.ts +116 -0
  329. package/src/model-manager/property-catalog.ts +787 -0
  330. package/src/model-manager/proposal-order.ts +203 -0
  331. package/src/model-manager/provenance.ts +396 -0
  332. package/src/model-manager/questions.ts +475 -0
  333. package/src/model-manager/rdf-scope.ts +97 -0
  334. package/src/model-manager/relationship-graph.ts +462 -0
  335. package/src/model-manager/relationship-manager.ts +962 -0
  336. package/src/model-manager/relationship-table.ts +189 -0
  337. package/src/model-manager/relationship-validity.ts +261 -0
  338. package/src/model-manager/resource-edits.ts +28 -0
  339. package/src/model-manager/short-hash.ts +104 -0
  340. package/src/model-manager/snapshot-lines.ts +88 -0
  341. package/src/model-manager/version-history.ts +205 -0
  342. package/src/model-manager/view-from-results.ts +81 -0
  343. package/src/model-manager/view-manager.ts +1410 -0
  344. package/src/model-manager/vocabulary.ts +279 -0
  345. package/src/rdf-engine/finding-shape.ts +23 -0
  346. package/src/rdf-engine/graph-scope.ts +163 -0
  347. package/src/rdf-engine/index.ts +7 -0
  348. package/src/rdf-engine/interfaces.ts +144 -0
  349. package/src/rdf-engine/iri.ts +203 -0
  350. package/src/rdf-engine/localized-text.ts +13 -0
  351. package/src/rdf-engine/namespaces.ts +41 -0
  352. package/src/rdf-engine/native-load.ts +37 -0
  353. package/src/rdf-engine/observable-store.ts +609 -0
  354. package/src/rdf-engine/rdf-store.ts +520 -0
  355. package/src/rdf-engine/shacl-validator.ts +602 -0
  356. package/src/rdf-engine/shape-reach.ts +140 -0
  357. package/src/rdf-engine/shape-switches.ts +165 -0
  358. package/src/rdf-engine/single-valued.ts +219 -0
  359. package/src/rdf-engine/sparql-constraints.ts +349 -0
  360. package/src/rdf-engine/term-codec.ts +51 -0
  361. package/src/rdf-engine/ttl-parser.ts +51 -0
  362. package/src/rdf-engine/ttl-serializer.ts +79 -0
  363. package/src/rdf-engine/turtle-writer.ts +284 -0
  364. package/src/rdf-engine/validation-engine.ts +747 -0
  365. package/src/rdf-engine/validation-service.ts +186 -0
  366. package/src/rdf-engine/validation.worker.ts +47 -0
@@ -0,0 +1,917 @@
1
+ @prefix owl: <http://www.w3.org/2002/07/owl#> .
2
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
3
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
4
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
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 vann: <http://purl.org/vocab/vann/> .
9
+ @prefix cc: <http://creativecommons.org/ns#> .
10
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
11
+
12
+ @prefix arch: <https://meta.linked.archi/core#> .
13
+ @prefix am: <https://meta.linked.archi/archimate3/onto#> .
14
+ @prefix : <https://meta.linked.archi/archimate3/principle-shapes#> .
15
+
16
+ <https://meta.linked.archi/archimate3/principle-shapes#>
17
+ rdf:type owl:Ontology ;
18
+ owl:imports <https://meta.linked.archi/core#>,
19
+ <https://meta.linked.archi/core-shapes#> ;
20
+ cc:license "http://creativecommons.org/licenses/by/4.0/" ;
21
+ vann:preferredNamespaceUri "https://meta.linked.archi/archimate3/principle-shapes#" ;
22
+ vann:preferredNamespacePrefix "ampsh" ;
23
+ dcterms:title "Linked.Archi Architecture Principle Shapes"@en ;
24
+ dcterms:description '''SHACL shapes encoding common enterprise architecture principles
25
+ and best practices as executable constraints. These shapes validate architecture models
26
+ against governance patterns such as redundancy avoidance, single authoritative source,
27
+ separation of concerns, stewardship, and technology standardization.
28
+
29
+ Inspired by the ontology-based EA principle validation approach described in:
30
+ Montecchiari, D.; Hinkelmann, K. (2026) "Ontology-Based Validation of Enterprise
31
+ Architecture Principles", Applied Sciences, 16(7):3352.
32
+
33
+ These shapes are designed to be loaded alongside the standard ArchiMate element and
34
+ relationship shapes. They operate on instance data (architecture models) and detect
35
+ violations of common governance principles. All shapes use sh:severity sh:Warning
36
+ by default — organizations should promote specific shapes to sh:Violation based on
37
+ their governance policies.
38
+
39
+ Usage:
40
+ ./validate.sh --shacl archimate-principles
41
+
42
+ Or load manually alongside other shapes:
43
+ core-shapes.ttl + archimate3.2-principle-shapes.ttl + your-model-data.ttl
44
+ '''@en ;
45
+ dcterms:created "2022-11-14"^^xsd:date ;
46
+ skos:historyNote '''2026-12-02: SinglePointOfFailureShape counts each service's providers, from the service — the
47
+ same findings, without testing every node, device and system software of the model for each provider found.
48
+ 2026-11-30: BusinessProcessOwnershipShape looks first for what is assigned to
49
+ the process, then at its type — the same findings, without testing the type of every active structure element
50
+ for each process.
51
+
52
+ 2026-11-29: SinglePointOfFailureShape looks at technology, as ArchiMate
53
+ 4.0's does — a business, application or technology service provided by one node, device or system
54
+ software — and no longer at one application component realizing a business service.
55
+ RedundantFunctionRealizationShape is removed: several
56
+ applications serving a business function is normal use, and
57
+ BusinessFunctionRedundantApplicationRealizationShape reports the redundancy. SingleBusinessObjectOwnerShape
58
+ counts writers, as SingleDataWriterShape does. DataObjectStewardshipShape no longer accepts a component
59
+ realizing a data object, which the relationship tables do not permit. TechnologyServingBusinessDirectlyShape
60
+ covers devices and system software, leaving business processes to
61
+ BusinessProcessDirectTechnologyDependencyShape. ApplicationComponentWithoutServiceShape accepts a service
62
+ realized through the component's behaviour or exposed by its interface; CriticalNodeSingleDeploymentShape
63
+ counts devices as hosts; CapabilityWithoutGoalShape accepts influence and no longer a goal serving a
64
+ capability, which the relationship tables do not permit. CompositionMultipleParentWarning gains a label and
65
+ a definition.
66
+
67
+ 2026-11-06: OrphanedElementShape written with MINUS rather than
68
+ FILTER NOT EXISTS — the same results, without testing every element against every other one; and
69
+ targeted at ArchiMate 3.2's elements and junctions rather than arch:Element, so that it judges no other
70
+ notation's elements and, with ArchiMate 4.0 loaded too, does not report an element twice.'''@en ;
71
+ dcterms:modified "2026-12-02"^^xsd:date ;
72
+ dcterms:publisher "Linked.Archi"@en, <https://linked.archi> ;
73
+ bibo:status "draft" ;
74
+ owl:versionIRI <https://meta.linked.archi/archimate3/principle-shapes/0.1.0#> ;
75
+ owl:versionInfo "0.1.0"@en ;
76
+ rdfs:seeAlso <https://www.mdpi.com/2076-3417/16/7/3352> ;
77
+ sh:declare [
78
+ sh:prefix "am" ;
79
+ sh:namespace "https://meta.linked.archi/archimate3/onto#"^^xsd:anyURI ;
80
+ ] , [
81
+ sh:prefix "arch" ;
82
+ sh:namespace "https://meta.linked.archi/core#"^^xsd:anyURI ;
83
+ ] , [
84
+ sh:prefix "rdf" ;
85
+ sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ;
86
+ ] , [
87
+ sh:prefix "rdfs" ;
88
+ sh:namespace "http://www.w3.org/2000/01/rdf-schema#"^^xsd:anyURI ;
89
+ ] , [
90
+ sh:prefix "skos" ;
91
+ sh:namespace "http://www.w3.org/2004/02/skos/core#"^^xsd:anyURI ;
92
+ ] ;
93
+ dcterms:creator "Kalin Maldzhanski"^^xsd:string .
94
+
95
+
96
+ #################################################################
97
+ #
98
+ # CATEGORY 1: REDUNDANCY AVOIDANCE
99
+ #
100
+ # Principle: Avoid redundant application support for the same
101
+ # business capability or process. Multiple applications serving
102
+ # the same process for the same purpose indicate duplication
103
+ # that increases cost and complexity.
104
+ #
105
+ # Reference: Montecchiari & Hinkelmann (2026), Section 5.6,
106
+ # Listing 3 — "RedundancyAvoidanceShape"
107
+ #
108
+ #################################################################
109
+
110
+ :RedundantApplicationServingShape
111
+ a sh:NodeShape ;
112
+ sh:targetClass am:BusinessProcess ;
113
+ sh:severity sh:Warning ;
114
+ skos:prefLabel "Redundant Application Serving"@en ;
115
+ skos:definition
116
+ '''Detects business processes served by more than one application
117
+ component. Multiple applications serving the same process may
118
+ indicate redundancy that should be consolidated or justified.'''@en ;
119
+ sh:sparql [
120
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
121
+ sh:message "Business process {$this} is served by multiple application components ({?app1} and {?app2}), indicating potential redundancy."@en ;
122
+ sh:select """
123
+ SELECT $this ?app1 ?app2
124
+ WHERE {
125
+ $this a am:BusinessProcess .
126
+ ?app1 a am:ApplicationComponent ;
127
+ am:serves $this .
128
+ ?app2 a am:ApplicationComponent ;
129
+ am:serves $this .
130
+ FILTER(STR(?app1) < STR(?app2))
131
+ }
132
+ """ ;
133
+ ] ;
134
+ .
135
+
136
+ :RedundantApplicationRealizingServiceShape
137
+ a sh:NodeShape ;
138
+ sh:targetClass am:ApplicationService ;
139
+ sh:severity sh:Warning ;
140
+ skos:prefLabel "Redundant Application Realizing Service"@en ;
141
+ skos:definition
142
+ '''Detects application services realized by more than one
143
+ application component. Multiple components realizing the same
144
+ service may indicate duplication in the application landscape.'''@en ;
145
+ sh:sparql [
146
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
147
+ sh:message "Application service {$this} is realized by multiple application components ({?app1} and {?app2})."@en ;
148
+ sh:select """
149
+ SELECT $this ?app1 ?app2
150
+ WHERE {
151
+ $this a am:ApplicationService .
152
+ ?app1 a am:ApplicationComponent ;
153
+ am:realizes $this .
154
+ ?app2 a am:ApplicationComponent ;
155
+ am:realizes $this .
156
+ FILTER(STR(?app1) < STR(?app2))
157
+ }
158
+ """ ;
159
+ ] ;
160
+ .
161
+
162
+
163
+ #################################################################
164
+ #
165
+ # CATEGORY 2: SINGLE AUTHORITATIVE SOURCE
166
+ #
167
+ # Principle: Each data object should be owned/updated by exactly
168
+ # one application component. Multiple writers to the same data
169
+ # create consistency risks and governance gaps.
170
+ #
171
+ # Reference: Montecchiari & Hinkelmann (2026), Section 6.3–6.4,
172
+ # Table 1 — "Single authoritative update source for data objects"
173
+ #
174
+ #################################################################
175
+
176
+ :SingleDataWriterShape
177
+ a sh:NodeShape ;
178
+ sh:targetClass am:DataObject ;
179
+ sh:severity sh:Warning ;
180
+ skos:prefLabel "Single Authoritative Data Writer"@en ;
181
+ skos:definition
182
+ '''Detects data objects accessed with write by more than one
183
+ application component. Each data object should have a single
184
+ authoritative source of updates to ensure consistency.'''@en ;
185
+ sh:sparql [
186
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
187
+ sh:message "Data object {$this} is written by multiple application components ({?app1} and {?app2}). Designate a single authoritative source."@en ;
188
+ sh:select """
189
+ SELECT DISTINCT $this ?app1 ?app2
190
+ WHERE {
191
+ $this a am:DataObject .
192
+ # A writer: write or read/write access, or an access not stated to be a read.
193
+ ?app1 a am:ApplicationComponent .
194
+ {
195
+ ?app1 am:accesses $this .
196
+ FILTER NOT EXISTS { ?read1 a am:ReadAccess ; arch:source ?app1 ; arch:target $this . }
197
+ } UNION {
198
+ ?write1 a ?kind1 ; arch:source ?app1 ; arch:target $this .
199
+ FILTER(?kind1 IN (am:WriteAccess, am:ReadWriteAccess))
200
+ }
201
+ ?app2 a am:ApplicationComponent .
202
+ {
203
+ ?app2 am:accesses $this .
204
+ FILTER NOT EXISTS { ?read2 a am:ReadAccess ; arch:source ?app2 ; arch:target $this . }
205
+ } UNION {
206
+ ?write2 a ?kind2 ; arch:source ?app2 ; arch:target $this .
207
+ FILTER(?kind2 IN (am:WriteAccess, am:ReadWriteAccess))
208
+ }
209
+ FILTER(STR(?app1) < STR(?app2))
210
+ }
211
+ """ ;
212
+ ] ;
213
+ .
214
+
215
+ :SingleBusinessObjectOwnerShape
216
+ a sh:NodeShape ;
217
+ sh:targetClass am:BusinessObject ;
218
+ sh:severity sh:Warning ;
219
+ skos:prefLabel "Single Business Object Writer"@en ;
220
+ skos:definition
221
+ '''Detects business objects written by more than one application
222
+ component. Shared updates without a single authoritative writer
223
+ create governance ambiguity; components that only read a business
224
+ object share it without blurring who owns it.'''@en ;
225
+ skos:scopeNote
226
+ '''A writer as SingleDataWriterShape counts one: write or read/write access,
227
+ or an access not stated to be a read. The relationship tables permit an
228
+ application component only to access a business object, so what it writes
229
+ is the only sign of ownership.'''@en ;
230
+ sh:sparql [
231
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
232
+ sh:message "Business object {$this} is written by multiple application components ({?app1} and {?app2}). Clarify ownership."@en ;
233
+ sh:select """
234
+ SELECT DISTINCT $this ?app1 ?app2
235
+ WHERE {
236
+ $this a am:BusinessObject .
237
+ # A writer: write or read/write access, or an access not stated to be a read.
238
+ ?app1 a am:ApplicationComponent .
239
+ {
240
+ ?app1 am:accesses $this .
241
+ FILTER NOT EXISTS { ?read1 a am:ReadAccess ; arch:source ?app1 ; arch:target $this . }
242
+ } UNION {
243
+ ?write1 a ?kind1 ; arch:source ?app1 ; arch:target $this .
244
+ FILTER(?kind1 IN (am:WriteAccess, am:ReadWriteAccess))
245
+ }
246
+ ?app2 a am:ApplicationComponent .
247
+ {
248
+ ?app2 am:accesses $this .
249
+ FILTER NOT EXISTS { ?read2 a am:ReadAccess ; arch:source ?app2 ; arch:target $this . }
250
+ } UNION {
251
+ ?write2 a ?kind2 ; arch:source ?app2 ; arch:target $this .
252
+ FILTER(?kind2 IN (am:WriteAccess, am:ReadWriteAccess))
253
+ }
254
+ FILTER(STR(?app1) < STR(?app2))
255
+ }
256
+ """ ;
257
+ ] ;
258
+ .
259
+
260
+
261
+ #################################################################
262
+ #
263
+ # CATEGORY 3: STEWARDSHIP AND GOVERNANCE
264
+ #
265
+ # Principle: Critical architecture elements must have assigned
266
+ # ownership and governance. Unowned elements create accountability
267
+ # gaps.
268
+ #
269
+ # Reference: Montecchiari & Hinkelmann (2026), Section 6.2 —
270
+ # "MDM governance for critical business objects"
271
+ #
272
+ #################################################################
273
+
274
+ :ApplicationComponentOwnershipShape
275
+ a sh:NodeShape ;
276
+ sh:targetClass am:ApplicationComponent ;
277
+ sh:severity sh:Warning ;
278
+ skos:prefLabel "Application Component Ownership"@en ;
279
+ skos:definition
280
+ '''Every application component should have a business actor or
281
+ role that owns it, associated with the component.'''@en ;
282
+ skos:scopeNote
283
+ '''ArchiMate has no ownership relationship, and its relationship
284
+ tables do not let a business actor or role be assigned to an
285
+ application component; an association between the two, in
286
+ either direction, is read as ownership.'''@en ;
287
+ sh:sparql [
288
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
289
+ sh:message "Application component {$this} has no business actor or role associated with it as its owner."@en ;
290
+ sh:select """
291
+ SELECT $this
292
+ WHERE {
293
+ $this a am:ApplicationComponent .
294
+ FILTER NOT EXISTS {
295
+ { ?owner am:associatedWith $this . } UNION { $this am:associatedWith ?owner . }
296
+ { ?owner a am:BusinessActor . } UNION { ?owner a am:BusinessRole . }
297
+ }
298
+ }
299
+ """ ;
300
+ ] ;
301
+ .
302
+
303
+ :BusinessProcessOwnershipShape
304
+ a sh:NodeShape ;
305
+ sh:targetClass am:BusinessProcess ;
306
+ sh:severity sh:Warning ;
307
+ skos:prefLabel "Business Process Ownership"@en ;
308
+ skos:definition
309
+ '''Every business process should be assigned to at least one
310
+ business role or actor that is responsible for it.'''@en ;
311
+ sh:sparql [
312
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
313
+ sh:message "Business process {$this} has no assigned business role or actor."@en ;
314
+ sh:select """
315
+ SELECT $this
316
+ WHERE {
317
+ $this a am:BusinessProcess .
318
+ FILTER NOT EXISTS {
319
+ ?role am:assignedTo $this .
320
+ ?role rdf:type/rdfs:subClassOf* am:ActiveStructureElement .
321
+ ?role rdf:type/rdfs:subClassOf* am:BusinessLayerElement .
322
+ }
323
+ }
324
+ """ ;
325
+ ] ;
326
+ .
327
+
328
+ :DataObjectStewardshipShape
329
+ a sh:NodeShape ;
330
+ sh:targetClass am:DataObject ;
331
+ sh:severity sh:Warning ;
332
+ skos:prefLabel "Data Object Stewardship"@en ;
333
+ skos:definition
334
+ '''Critical data objects should have at least one application
335
+ component that accesses them, establishing a clear system of
336
+ record.'''@en ;
337
+ skos:scopeNote
338
+ '''The relationship tables permit an application component only to
339
+ access a data object — not to realize it, nor to be assigned to it,
340
+ which ArchiMate 4.0 adds.'''@en ;
341
+ sh:sparql [
342
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
343
+ sh:message "Data object {$this} has no application component accessing it. Assign a system of record."@en ;
344
+ sh:select """
345
+ SELECT $this
346
+ WHERE {
347
+ $this a am:DataObject .
348
+ FILTER NOT EXISTS {
349
+ ?app a am:ApplicationComponent ;
350
+ am:accesses $this .
351
+ }
352
+ }
353
+ """ ;
354
+ ] ;
355
+ .
356
+
357
+
358
+ #################################################################
359
+ #
360
+ # CATEGORY 4: SEPARATION OF CONCERNS
361
+ #
362
+ # Principle: Architecture layers should maintain clear boundaries.
363
+ # Business logic should not leak into technology, and technology
364
+ # concerns should not pollute business processes.
365
+ #
366
+ #################################################################
367
+
368
+ :BusinessProcessDirectTechnologyDependencyShape
369
+ a sh:NodeShape ;
370
+ sh:targetClass am:BusinessProcess ;
371
+ sh:severity sh:Warning ;
372
+ skos:prefLabel "Business Process Direct Technology Dependency"@en ;
373
+ skos:definition
374
+ '''Business processes should not directly depend on technology
375
+ layer elements. An application layer should mediate between
376
+ business and technology. The physical elements, part of the
377
+ Technology Layer, are left out: equipment may serve a process
378
+ directly.'''@en ;
379
+ sh:sparql [
380
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
381
+ sh:message "Business process {$this} has a direct serving/realization dependency on technology element {?tech}. Introduce an application layer mediator."@en ;
382
+ sh:select """
383
+ SELECT $this ?tech
384
+ WHERE {
385
+ $this a am:BusinessProcess .
386
+ {
387
+ ?tech am:serves $this .
388
+ } UNION {
389
+ ?tech am:realizes $this .
390
+ }
391
+ ?tech rdf:type/rdfs:subClassOf* am:TechnologyLayerElement .
392
+ FILTER NOT EXISTS { ?tech rdf:type/rdfs:subClassOf* am:PhysicalLayerElement }
393
+ }
394
+ """ ;
395
+ ] ;
396
+ .
397
+
398
+ :TechnologyServingBusinessDirectlyShape
399
+ a sh:NodeShape ;
400
+ sh:targetClass am:Node , am:Device , am:SystemSoftware ;
401
+ sh:severity sh:Warning ;
402
+ skos:prefLabel "Technology Serving Business Directly"@en ;
403
+ skos:definition
404
+ '''Nodes, devices and system software should not directly serve
405
+ business layer elements. Services should be exposed through the
406
+ application layer.'''@en ;
407
+ skos:scopeNote
408
+ '''A business process served directly by technology is reported by
409
+ BusinessProcessDirectTechnologyDependencyShape, from the process, and
410
+ not here, so that one relationship gives one result.'''@en ;
411
+ sh:sparql [
412
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
413
+ sh:message "Technology element {$this} directly serves business element {?biz}. Route through the application layer."@en ;
414
+ sh:select """
415
+ SELECT DISTINCT $this ?biz
416
+ WHERE {
417
+ $this a ?techType ;
418
+ am:serves ?biz .
419
+ FILTER(?techType IN (am:Node, am:Device, am:SystemSoftware))
420
+ ?biz rdf:type/rdfs:subClassOf* am:BusinessLayerElement .
421
+ FILTER NOT EXISTS { ?biz rdf:type/rdfs:subClassOf* am:BusinessProcess }
422
+ }
423
+ """ ;
424
+ ] ;
425
+ .
426
+
427
+
428
+ #################################################################
429
+ #
430
+ # CATEGORY 5: SERVICE ORIENTATION
431
+ #
432
+ # Principle: Application components should expose their
433
+ # functionality through services. Direct component-to-component
434
+ # dependencies create tight coupling.
435
+ #
436
+ #################################################################
437
+
438
+ :ApplicationComponentWithoutServiceShape
439
+ a sh:NodeShape ;
440
+ sh:targetClass am:ApplicationComponent ;
441
+ sh:severity sh:Info ;
442
+ skos:prefLabel "Application Component Without Service"@en ;
443
+ skos:definition
444
+ '''Application components should expose at least one application
445
+ service — realizing it, performing behaviour that realizes it, or
446
+ through an interface of theirs assigned to it. Components without
447
+ services may indicate missing service definitions or tightly
448
+ coupled integrations.'''@en ;
449
+ sh:sparql [
450
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
451
+ sh:message "Application component {$this} does not expose any application service."@en ;
452
+ sh:select """
453
+ SELECT $this
454
+ WHERE {
455
+ $this a am:ApplicationComponent .
456
+ FILTER NOT EXISTS {
457
+ ?svc a am:ApplicationService .
458
+ {
459
+ $this am:realizes ?svc .
460
+ } UNION {
461
+ # The application function or process it performs realizes the service.
462
+ $this am:assignedTo ?behaviour .
463
+ ?behaviour am:realizes ?svc .
464
+ } UNION {
465
+ # An interface it is composed of is assigned to the service.
466
+ $this am:composedOf ?interface .
467
+ ?interface a am:ApplicationInterface ;
468
+ am:assignedTo ?svc .
469
+ }
470
+ }
471
+ }
472
+ """ ;
473
+ ] ;
474
+ .
475
+
476
+ :DirectComponentToComponentServingShape
477
+ a sh:NodeShape ;
478
+ sh:targetClass am:ApplicationComponent ;
479
+ sh:severity sh:Warning ;
480
+ skos:prefLabel "Direct Component-to-Component Serving"@en ;
481
+ skos:definition
482
+ '''Application components should serve other components through
483
+ services, not directly. Direct serving creates tight coupling
484
+ that hinders independent evolution.'''@en ;
485
+ sh:sparql [
486
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
487
+ sh:message "Application component {$this} directly serves another application component {?target} without an intermediary service."@en ;
488
+ sh:select """
489
+ SELECT $this ?target
490
+ WHERE {
491
+ $this a am:ApplicationComponent .
492
+ $this am:serves ?target .
493
+ ?target a am:ApplicationComponent .
494
+ }
495
+ """ ;
496
+ ] ;
497
+ .
498
+
499
+
500
+ #################################################################
501
+ #
502
+ # CATEGORY 6: TECHNOLOGY STANDARDIZATION
503
+ #
504
+ # Principle: Technology choices should be standardized. Excessive
505
+ # technology diversity increases operational cost and risk.
506
+ #
507
+ #################################################################
508
+
509
+ :ExcessiveTechnologyDiversityPerServiceShape
510
+ a sh:NodeShape ;
511
+ sh:targetClass am:ApplicationService ;
512
+ sh:severity sh:Info ;
513
+ skos:prefLabel "Excessive Technology Diversity Per Service"@en ;
514
+ skos:definition
515
+ '''Application services realized by components that depend on
516
+ many different technology elements — nodes, devices, system
517
+ software, … — may indicate excessive technology diversity. The
518
+ physical elements, part of the Technology Layer, are not
519
+ counted.'''@en ;
520
+ sh:sparql [
521
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
522
+ sh:message "Application service {$this} depends on {?nodeCount} distinct technology elements. Consider standardizing."@en ;
523
+ sh:select """
524
+ SELECT $this (COUNT(DISTINCT ?node) AS ?nodeCount)
525
+ WHERE {
526
+ $this a am:ApplicationService .
527
+ ?app am:realizes $this .
528
+ ?app a am:ApplicationComponent .
529
+ # Technology it depends on: serving or realizing the component, or hosting
530
+ # what realizes it (a node assigned to an artifact or system software).
531
+ ?node (am:serves|am:realizes|am:assignedTo/am:realizes) ?app .
532
+ ?node rdf:type/rdfs:subClassOf* am:TechnologyLayerElement ,
533
+ am:ActiveStructureElement .
534
+ FILTER NOT EXISTS { ?node rdf:type/rdfs:subClassOf* am:PhysicalLayerElement }
535
+ }
536
+ GROUP BY $this
537
+ HAVING (COUNT(DISTINCT ?node) > 3)
538
+ """ ;
539
+ ] ;
540
+ .
541
+
542
+
543
+ #################################################################
544
+ #
545
+ # CATEGORY 7: SINGLE POINT OF FAILURE
546
+ #
547
+ # Principle: Critical services should not depend on a single piece
548
+ # of infrastructure without redundancy. Single points of failure
549
+ # threaten business continuity.
550
+ #
551
+ # Note: The rules here look at technology — the nodes, devices and
552
+ # system software that provide a service, and the nodes and devices
553
+ # an application component is deployed on. One application component
554
+ # realizing a service is not, by itself, a single point of failure:
555
+ # it may run on several nodes, which CriticalNodeSingleDeploymentShape
556
+ # checks.
557
+ #
558
+ #################################################################
559
+
560
+ :SinglePointOfFailureShape
561
+ a sh:NodeShape ;
562
+ sh:targetClass am:BusinessService , am:ApplicationService , am:TechnologyService ;
563
+ sh:severity sh:Info ;
564
+ skos:prefLabel "Single Point of Failure"@en ;
565
+ skos:definition
566
+ '''A service — business, application or technology — provided by
567
+ exactly one technology active structure element (a node, a device or
568
+ system software), whether directly or through the behaviour assigned
569
+ to it, has no redundancy and may be a single point of failure.'''@en ;
570
+ sh:sparql [
571
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
572
+ sh:message "Service {$this} is provided by only one technology element ({?infra}). Consider redundancy for critical infrastructure services."@en ;
573
+ sh:select """
574
+ SELECT $this (SAMPLE(?provider) AS ?infra)
575
+ WHERE {
576
+ $this rdf:type/rdfs:subClassOf* am:ExternalBehaviorElement .
577
+ # Provided by infrastructure: the element realizes the service, or is
578
+ # assigned to behaviour that does. Behaviour only: a device assigned to
579
+ # the system software that realizes the service hosts that one provider,
580
+ # and is not a second. The service's providers are counted, from the
581
+ # service: testing each against every other node, device and system
582
+ # software took Oxigraph from 0.3 s to 11 s, run to run, on a large model.
583
+ {
584
+ ?provider am:realizes $this .
585
+ } UNION {
586
+ ?behaviour am:realizes $this .
587
+ ?provider am:assignedTo ?behaviour .
588
+ ?behaviour rdf:type/rdfs:subClassOf* am:InternalBehaviorElement .
589
+ }
590
+ ?provider a ?type .
591
+ FILTER(?type IN (am:Node, am:Device, am:SystemSoftware))
592
+ }
593
+ GROUP BY $this
594
+ HAVING (COUNT(DISTINCT ?provider) = 1)
595
+ """ ;
596
+ ] ;
597
+ .
598
+
599
+ :CriticalNodeSingleDeploymentShape
600
+ a sh:NodeShape ;
601
+ sh:targetClass am:ApplicationComponent ;
602
+ sh:severity sh:Info ;
603
+ skos:prefLabel "Single Deployment Node"@en ;
604
+ skos:definition
605
+ '''Application components deployed on only one node or device
606
+ may lack resilience. Critical components should be deployed
607
+ across multiple nodes.'''@en ;
608
+ skos:scopeNote
609
+ '''System software is not counted as a host: it runs on a node or a
610
+ device, and counting both would make one machine two.'''@en ;
611
+ sh:sparql [
612
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
613
+ sh:message "Application component {$this} is deployed on only one node or device ({?node}). Consider multi-node deployment for resilience."@en ;
614
+ sh:select """
615
+ SELECT DISTINCT $this ?node
616
+ WHERE {
617
+ $this a am:ApplicationComponent .
618
+ # Deployed on a node or a device: it realizes the component, or is assigned
619
+ # to an artifact or system software that does.
620
+ ?node (am:realizes|am:assignedTo/am:realizes) $this ;
621
+ a ?hostType .
622
+ FILTER(?hostType IN (am:Node, am:Device))
623
+ FILTER NOT EXISTS {
624
+ ?node2 (am:realizes|am:assignedTo/am:realizes) $this ;
625
+ a ?hostType2 .
626
+ FILTER(?hostType2 IN (am:Node, am:Device))
627
+ FILTER(?node2 != ?node)
628
+ }
629
+ }
630
+ """ ;
631
+ ] ;
632
+ .
633
+
634
+
635
+ #################################################################
636
+ #
637
+ # CATEGORY 8: COMPLETENESS AND TRACEABILITY
638
+ #
639
+ # Principle: Architecture models should be complete enough to
640
+ # support governance. Key elements should have required
641
+ # relationships and documentation.
642
+ #
643
+ #################################################################
644
+
645
+ :BusinessServiceWithoutRealizationShape
646
+ a sh:NodeShape ;
647
+ sh:targetClass am:BusinessService ;
648
+ sh:severity sh:Warning ;
649
+ skos:prefLabel "Business Service Without Realization"@en ;
650
+ skos:definition
651
+ '''Every business service should be realized by at least one
652
+ business process or function. Unrealized services indicate
653
+ incomplete modeling.'''@en ;
654
+ sh:sparql [
655
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
656
+ sh:message "Business service {$this} is not realized by any business process or function."@en ;
657
+ sh:select """
658
+ SELECT $this
659
+ WHERE {
660
+ $this a am:BusinessService .
661
+ FILTER NOT EXISTS {
662
+ ?behavior am:realizes $this .
663
+ ?behavior rdf:type/rdfs:subClassOf* am:BehaviorElement .
664
+ ?behavior rdf:type/rdfs:subClassOf* am:BusinessLayerElement .
665
+ }
666
+ }
667
+ """ ;
668
+ ] ;
669
+ .
670
+
671
+ :ApplicationServiceWithoutRealizationShape
672
+ a sh:NodeShape ;
673
+ sh:targetClass am:ApplicationService ;
674
+ sh:severity sh:Warning ;
675
+ skos:prefLabel "Application Service Without Realization"@en ;
676
+ skos:definition
677
+ '''Every application service should be realized by at least one
678
+ application component. Unrealized services indicate incomplete
679
+ modeling or orphaned service definitions.'''@en ;
680
+ sh:sparql [
681
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
682
+ sh:message "Application service {$this} is not realized by any application component."@en ;
683
+ sh:select """
684
+ SELECT $this
685
+ WHERE {
686
+ $this a am:ApplicationService .
687
+ FILTER NOT EXISTS {
688
+ ?app am:realizes $this .
689
+ ?app a am:ApplicationComponent .
690
+ }
691
+ }
692
+ """ ;
693
+ ] ;
694
+ .
695
+
696
+ :CapabilityWithoutBehaviorRealizationShape
697
+ a sh:NodeShape ;
698
+ sh:targetClass am:Capability ;
699
+ sh:severity sh:Warning ;
700
+ skos:prefLabel "Capability Without Business Behavior Realization"@en ;
701
+ skos:definition
702
+ '''Capabilities should be realized by at least one business
703
+ behavior element (process, function, or interaction). A
704
+ capability without realization is aspirational only and
705
+ cannot be assessed for operational readiness.'''@en ;
706
+ sh:sparql [
707
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
708
+ sh:message "Capability {$this} is not realized by any business process, function, or interaction."@en ;
709
+ sh:select """
710
+ SELECT $this
711
+ WHERE {
712
+ $this a am:Capability .
713
+ FILTER NOT EXISTS {
714
+ ?behavior am:realizes $this .
715
+ ?behavior rdf:type/rdfs:subClassOf* am:BehaviorElement .
716
+ ?behavior rdf:type/rdfs:subClassOf* am:BusinessLayerElement .
717
+ }
718
+ }
719
+ """ ;
720
+ ] ;
721
+ .
722
+
723
+ :BusinessBehaviorRedundantApplicationRealizationShape
724
+ a sh:NodeShape ;
725
+ sh:targetClass am:BusinessProcess ;
726
+ sh:severity sh:Warning ;
727
+ skos:prefLabel "Business Behavior Realized by Multiple Application Components"@en ;
728
+ skos:definition
729
+ '''Detects business processes (or functions) realized by more
730
+ than one application component. Multiple components realizing
731
+ the same business behavior may indicate redundant automation
732
+ or unclear application ownership of the process.'''@en ;
733
+ sh:sparql [
734
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
735
+ sh:message "Business process {$this} is realized by multiple application components ({?app1} and {?app2}). Clarify which component is authoritative."@en ;
736
+ sh:select """
737
+ SELECT $this ?app1 ?app2
738
+ WHERE {
739
+ $this rdf:type/rdfs:subClassOf* am:BehaviorElement .
740
+ $this rdf:type/rdfs:subClassOf* am:BusinessLayerElement .
741
+ ?app1 a am:ApplicationComponent ;
742
+ am:realizes $this .
743
+ ?app2 a am:ApplicationComponent ;
744
+ am:realizes $this .
745
+ FILTER(STR(?app1) < STR(?app2))
746
+ }
747
+ """ ;
748
+ ] ;
749
+ .
750
+
751
+ :BusinessFunctionRedundantApplicationRealizationShape
752
+ a sh:NodeShape ;
753
+ sh:targetClass am:BusinessFunction ;
754
+ sh:severity sh:Warning ;
755
+ skos:prefLabel "Business Function Realized by Multiple Application Components"@en ;
756
+ skos:definition
757
+ '''Detects business functions realized by more than one
758
+ application component. Same concern as for processes —
759
+ multiple realizers indicate potential duplication or
760
+ unclear automation boundaries.'''@en ;
761
+ sh:sparql [
762
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
763
+ sh:message "Business function {$this} is realized by multiple application components ({?app1} and {?app2})."@en ;
764
+ sh:select """
765
+ SELECT $this ?app1 ?app2
766
+ WHERE {
767
+ $this a am:BusinessFunction .
768
+ ?app1 a am:ApplicationComponent ;
769
+ am:realizes $this .
770
+ ?app2 a am:ApplicationComponent ;
771
+ am:realizes $this .
772
+ FILTER(STR(?app1) < STR(?app2))
773
+ }
774
+ """ ;
775
+ ] ;
776
+ .
777
+
778
+ :OrphanedElementShape
779
+ a sh:NodeShape ;
780
+ # ArchiMate 3.2's elements only — the roots amelsh:ArchiMateElementShape targets, and
781
+ # the junctions — not arch:Element: in a graph holding other notations' models, or
782
+ # ArchiMate 4.0's beside 3.2's, this rule would judge their elements too, and an
783
+ # element would be reported once for each ArchiMate version loaded.
784
+ sh:targetClass am:CoreLayerElement ,
785
+ am:StrategyLayerElement ,
786
+ am:ImplementationAndMigrationLayerElement ,
787
+ am:MotivationElement ,
788
+ am:BehaviorElement ,
789
+ am:StructureElement ,
790
+ am:CompositeElement ,
791
+ am:Junction_And ,
792
+ am:Junction_Or ;
793
+ sh:severity sh:Info ;
794
+ skos:prefLabel "Orphaned Element"@en ;
795
+ skos:definition
796
+ '''Elements with no relationships to other elements may be
797
+ orphaned or incompletely modeled. Every element should
798
+ participate in at least one relationship.'''@en ;
799
+ sh:sparql [
800
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
801
+ sh:message "Element {$this} has no relationships to any other element."@en ;
802
+ sh:select """
803
+ SELECT $this
804
+ WHERE {
805
+ $this a/rdfs:subClassOf* arch:Element .
806
+ # MINUS, not FILTER NOT EXISTS: the same results, without testing every
807
+ # element against every other one — which grows with the square of the model.
808
+ MINUS { $this ?p ?other . ?other a ?otherType . ?otherType rdfs:subClassOf* arch:Element . }
809
+ MINUS { ?other ?p $this . ?other a ?otherType . ?otherType rdfs:subClassOf* arch:Element . }
810
+ }
811
+ """ ;
812
+ ] ;
813
+ .
814
+
815
+
816
+ #################################################################
817
+ #
818
+ # CATEGORY 9: MOTIVATION ALIGNMENT
819
+ #
820
+ # Principle: Architecture elements should be traceable to business
821
+ # goals and requirements. Untraceable elements may lack business
822
+ # justification.
823
+ #
824
+ #################################################################
825
+
826
+ :CapabilityWithoutGoalShape
827
+ a sh:NodeShape ;
828
+ sh:targetClass am:Capability ;
829
+ sh:severity sh:Info ;
830
+ skos:prefLabel "Capability Without Goal"@en ;
831
+ skos:definition
832
+ '''Capabilities should be linked to at least one goal or
833
+ outcome — realizing it, influencing it or associated with it —
834
+ to establish business justification.'''@en ;
835
+ sh:sparql [
836
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
837
+ sh:message "Capability {$this} is not linked to any goal or outcome."@en ;
838
+ sh:select """
839
+ SELECT $this
840
+ WHERE {
841
+ $this a am:Capability .
842
+ FILTER NOT EXISTS {
843
+ {
844
+ $this am:realizes ?goal .
845
+ { ?goal a am:Goal . } UNION { ?goal a am:Outcome . }
846
+ } UNION {
847
+ $this am:influences ?goal .
848
+ { ?goal a am:Goal . } UNION { ?goal a am:Outcome . }
849
+ } UNION {
850
+ $this am:associatedWith ?goal .
851
+ { ?goal a am:Goal . } UNION { ?goal a am:Outcome . }
852
+ }
853
+ }
854
+ }
855
+ """ ;
856
+ ] ;
857
+ .
858
+
859
+ :RequirementWithoutRealizationShape
860
+ a sh:NodeShape ;
861
+ sh:targetClass am:Requirement ;
862
+ sh:severity sh:Warning ;
863
+ skos:prefLabel "Requirement Without Realization"@en ;
864
+ skos:definition
865
+ '''Requirements should be realized by at least one core element.
866
+ Unrealized requirements indicate gaps in the architecture.'''@en ;
867
+ sh:sparql [
868
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
869
+ sh:message "Requirement {$this} is not realized by any architecture element."@en ;
870
+ sh:select """
871
+ SELECT $this
872
+ WHERE {
873
+ $this a am:Requirement .
874
+ FILTER NOT EXISTS {
875
+ ?element am:realizes $this .
876
+ FILTER NOT EXISTS {
877
+ ?element rdf:type/rdfs:subClassOf* am:MotivationElement .
878
+ }
879
+ }
880
+ }
881
+ """ ;
882
+ ] ;
883
+ .
884
+
885
+
886
+ ## ─── Composition: multiple-parent warning ────────────────────────────────
887
+ ## ArchiMate 3.2 §5.1.2 defines composition as expressing an existence
888
+ ## dependency ("if a composite is deleted, its parts are deleted as well").
889
+ ## This logically implies a part should belong to at most one composite —
890
+ ## otherwise deleting one composite would destroy parts still needed by
891
+ ## another. The spec does not explicitly enforce exclusivity, but the
892
+ ## existence dependency semantics make multiple-parent composition
893
+ ## logically inconsistent. This shape emits a warning when an element
894
+ ## is the target of composition from multiple sources.
895
+
896
+ :CompositionMultipleParentWarning
897
+ a sh:NodeShape ;
898
+ sh:targetObjectsOf am:composedOf ;
899
+ sh:severity sh:Warning ;
900
+ skos:prefLabel "Composition with Multiple Parents"@en ;
901
+ skos:definition
902
+ '''An element should be part of at most one composite: composition
903
+ is an existence dependency, so a part composed into several wholes
904
+ would be deleted with each of them.'''@en ;
905
+ sh:sparql [
906
+ sh:prefixes <https://meta.linked.archi/archimate3/principle-shapes#> ;
907
+ sh:message "Element {$this} is composed into multiple parents via am:composedOf. Composition implies existence dependency — a part with multiple composites may indicate a modelling issue (ArchiMate 3.2 §5.1.2)."@en ;
908
+ sh:select """
909
+ SELECT $this (COUNT(?parent) AS ?parentCount)
910
+ WHERE {
911
+ ?parent am:composedOf $this .
912
+ }
913
+ GROUP BY $this
914
+ HAVING (COUNT(?parent) > 1)
915
+ """ ;
916
+ ] ;
917
+ .