@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,582 @@
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 dcterms: <http://purl.org/dc/terms/> .
6
+ @prefix bibo: <http://purl.org/ontology/bibo/> .
7
+ @prefix vann: <http://purl.org/vocab/vann/> .
8
+ @prefix prov: <http://www.w3.org/ns/prov#> .
9
+ @prefix cc: <http://creativecommons.org/ns#> .
10
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
11
+
12
+ @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
13
+ @prefix arch: <https://meta.linked.archi/core#> .
14
+ @prefix ad: <https://meta.linked.archi/arch-decision#> .
15
+ @prefix : <https://meta.linked.archi/arch-decision-shapes#> .
16
+
17
+ #################################################################
18
+ # Ontology Declaration
19
+ #################################################################
20
+
21
+ <https://meta.linked.archi/arch-decision-shapes#>
22
+ rdf:type owl:Ontology ;
23
+ owl:imports <https://meta.linked.archi/core#>,
24
+ <https://meta.linked.archi/arch-decision#> ;
25
+ cc:license "http://creativecommons.org/licenses/by/4.0/" ;
26
+ vann:preferredNamespaceUri "https://meta.linked.archi/arch-decision-shapes#" ;
27
+ vann:preferredNamespacePrefix "adsh" ;
28
+ dcterms:creator "Kalin Maldzhanski"^^xsd:string ;
29
+ dcterms:title "Linked.Archi Architecture Decision SHACL Shapes"@en ;
30
+ dcterms:description '''SHACL shapes for validating architecture decision records built with the
31
+ Linked.Archi architecture decision extension. Closes the decision state vocabulary,
32
+ enforces the structural contract between a Decision and its Issue, Options and Forces,
33
+ and checks the Quality Attribute Scenario structure on quality attribute requirements.
34
+
35
+ These shapes complement core-shapes: the core file already requires a label on every
36
+ arch:Element and a source and target on every arch:QualifiedRelationship, so those
37
+ constraints are not repeated here except where a tighter rule applies.'''@en ;
38
+ dcterms:created "2026-08-03"^^xsd:date ;
39
+ dcterms:modified "2026-08-20"^^xsd:date ;
40
+ dcterms:publisher "Linked.Archi"@en,
41
+ <https://linked.archi> ;
42
+ dcterms:source <https://adr.github.io/madr/>,
43
+ <https://resources.sei.cmu.edu/library/asset-view.cfm?assetID=8147> ;
44
+ prov:wasDerivedFrom <https://adr.github.io/madr/>,
45
+ <https://resources.sei.cmu.edu/library/asset-view.cfm?assetID=8147> ;
46
+ rdfs:seeAlso <https://meta.linked.archi/arch-decision#> ;
47
+ bibo:status "draft" ;
48
+ owl:versionIRI <https://meta.linked.archi/arch-decision-shapes/0.2.0#> ;
49
+ owl:versionInfo "0.2.0"@en ;
50
+ owl:priorVersion <https://meta.linked.archi/arch-decision-shapes/0.1.0#> ;
51
+ skos:editorialNote '''Severity conventions. sh:Violation marks a structural error — the record
52
+ is malformed and queries over it will produce wrong answers. sh:Warning marks an
53
+ incomplete record that is still well-formed. Engines that ignore sh:severity treat both
54
+ as failures, so keep this in mind when validating partially populated models.
55
+
56
+ Constructs deliberately avoided: sh:disjoint (not implemented by the RDF4J ShaclSail used
57
+ in this repository) and sh:sparql (requires advanced SHACL features that are not enabled).
58
+ Conditional rules are therefore expressed in SHACL Core as sh:or ( [ sh:not A ] [ B ] ),
59
+ which is the standard encoding of the implication A implies B.'''@en ,
60
+
61
+ '''2026-08-20 (0.2.0): AcceptedDecisionSelectionShape no longer fires on a decision
62
+ that records no candidate options. Reported by a Structurizr converter lifting an !adrs block:
63
+ a document-based ADR — MADR, Nygard, or Structurizr — is a title, a status, a date and a
64
+ Markdown body, so its options are prose under a heading and there is nothing in the graph for
65
+ ad:hasSelectedOption to point at. Every correctly converted accepted record reported one
66
+ violation with no action available, which trains people to ignore the shape set.
67
+
68
+ Two fixes were rejected. Lowering the severity to sh:Info drops the check for authored records
69
+ too, and sh:Info is reserved here for divergence that is genuinely ambiguous in the data.
70
+ Accepting ad:justificationDocument as an alternative to ad:hasSelectedOption under-fixes and
71
+ over-exempts at once: a body lifted into ad:justification as a literal still fails, while a
72
+ record that lists alternatives and names no outcome is silenced by attaching a design document.
73
+ Rationale is evidence of why; a selected option is what was decided. AcceptedDecisionRationaleShape
74
+ owns the first question and this shape owns the second.
75
+
76
+ Provenance of the lift is deliberately not part of the condition. A lift marker belongs in the
77
+ provenance graph (DD-15), where a validator run over the semantic graph cannot see it, so
78
+ conformance would depend on how a consumer assembled the graph; and gating a check on
79
+ "a converter produced this" lets any converter silence any check. A hand-authored record whose
80
+ options live in a linked document is the same artifact and is judged the same way. See DD-26.'''@en ;
81
+ .
82
+
83
+ #################################################################
84
+ # Decision — structural contract
85
+ #
86
+ # The state vocabulary is closed here rather than in OWL. See DD-23:
87
+ # ad:decisionState is a plain owl:ObjectProperty, so neither the
88
+ # cardinality nor the value set is asserted in the ontology. Under the
89
+ # Open World Assumption an owl:FunctionalProperty would entail
90
+ # owl:sameAs between two state individuals instead of reporting the
91
+ # error, and owl:oneOf would close the vocabulary against downstream
92
+ # extension. Both belong in a shape a consumer can replace.
93
+ #################################################################
94
+
95
+ :DecisionShape
96
+ a sh:NodeShape ;
97
+ sh:targetClass ad:Decision ;
98
+ skos:prefLabel "Decision Shape"@en ;
99
+ skos:definition "Validates the structural contract of an architecture decision record."@en ;
100
+
101
+ sh:property [
102
+ sh:path skos:prefLabel ;
103
+ sh:minCount 1 ;
104
+ sh:datatype rdf:langString ;
105
+ sh:message "Every Decision must have a language-tagged skos:prefLabel — conventionally the ADR title."@en ;
106
+ sh:severity sh:Violation ;
107
+ ] ;
108
+
109
+ ## DD-23 — at most one current state, drawn from the published vocabulary.
110
+ sh:property [
111
+ sh:path ad:decisionState ;
112
+ sh:maxCount 1 ;
113
+ sh:nodeKind sh:IRI ;
114
+ sh:in ( ad:Proposed ad:Accepted ad:Rejected ad:Deprecated ad:Superseded ) ;
115
+ sh:message '''A Decision must carry at most one ad:decisionState, and it must be one of
116
+ ad:Proposed, ad:Accepted, ad:Rejected, ad:Deprecated or ad:Superseded. Record transition
117
+ history with prov:wasRevisionOf or dcterms:modified — decisionState holds only the current value.'''@en ;
118
+ sh:severity sh:Violation ;
119
+ ] ;
120
+
121
+ ## One option is selected; the rest stay attached as alternatives.
122
+ sh:property [
123
+ sh:path ad:hasSelectedOption ;
124
+ sh:maxCount 1 ;
125
+ sh:class ad:Option ;
126
+ sh:message "A Decision selects at most one Option, and the value must be an ad:Option."@en ;
127
+ sh:severity sh:Violation ;
128
+ ] ;
129
+
130
+ sh:property [
131
+ sh:path ad:hasAlternative ;
132
+ sh:class ad:Option ;
133
+ sh:message "Every value of ad:hasAlternative must be an ad:Option."@en ;
134
+ sh:severity sh:Violation ;
135
+ ] ;
136
+
137
+ sh:property [
138
+ sh:path ad:hasIssue ;
139
+ sh:class ad:Issue ;
140
+ sh:message "Every value of ad:hasIssue must be an ad:Issue."@en ;
141
+ sh:severity sh:Violation ;
142
+ ] ;
143
+
144
+ sh:property [
145
+ sh:path ad:replaces ;
146
+ sh:class ad:Decision ;
147
+ sh:message "ad:replaces must point to another Decision."@en ;
148
+ sh:severity sh:Violation ;
149
+ ] ;
150
+
151
+ sh:property [
152
+ sh:path ad:supersededBy ;
153
+ sh:class ad:Decision ;
154
+ sh:message "ad:supersededBy must point to another Decision."@en ;
155
+ sh:severity sh:Violation ;
156
+ ] ;
157
+
158
+ ## Force and concept links are IRIs, not literals. sh:class is deliberately
159
+ ## not used: ad:Force and arch:ModelConcept are abstract parents whose
160
+ ## instances are typed with a subclass, and the concept side is typed by the
161
+ ## modelling language (am:ApplicationComponent, c4:Container, ...) rather
162
+ ## than by the core ontology.
163
+ sh:property [
164
+ sh:path ad:influencedByForce ;
165
+ sh:nodeKind sh:IRI ;
166
+ sh:message "ad:influencedByForce must reference a Force by IRI, not a literal."@en ;
167
+ sh:severity sh:Violation ;
168
+ ] ;
169
+
170
+ sh:property [
171
+ sh:path ad:relatedConcept ;
172
+ sh:nodeKind sh:IRI ;
173
+ sh:message "ad:relatedConcept must reference a ModelConcept by IRI, not a literal."@en ;
174
+ sh:severity sh:Violation ;
175
+ ] ;
176
+
177
+ sh:property [
178
+ sh:path ad:pertainsTo ;
179
+ sh:nodeKind sh:IRI ;
180
+ sh:message "ad:pertainsTo must reference an arch:Consideration by IRI, not a literal."@en ;
181
+ sh:severity sh:Violation ;
182
+ ] ;
183
+
184
+ ## ad:justification is rationale prose. The ontology declares rdfs:range
185
+ ## xsd:string, but language-tagged rationale is both common and desirable,
186
+ ## so the shape checks only that the value is a literal.
187
+ sh:property [
188
+ sh:path ad:justification ;
189
+ sh:nodeKind sh:Literal ;
190
+ sh:message "ad:justification must be a literal — use ad:justificationDocument to point at an external document."@en ;
191
+ sh:severity sh:Violation ;
192
+ ] ;
193
+ .
194
+
195
+ #################################################################
196
+ # Decision state implications
197
+ #
198
+ # State is what separates an open deliberation from a settled record,
199
+ # so the obligations differ by state. A Proposed decision may have
200
+ # several live options and no selection; an Accepted one may not.
201
+ #################################################################
202
+
203
+ :AcceptedDecisionSelectionShape
204
+ a sh:NodeShape ;
205
+ sh:targetClass ad:Decision ;
206
+ skos:prefLabel "Accepted Decision Selection Shape"@en ;
207
+ skos:definition '''Requires that a Decision in state ad:Accepted which records candidate
208
+ options names the one it selected. While a decision is Proposed the options are still
209
+ candidates, so no selection is required; once accepted, a record that lists candidates and
210
+ no outcome does not say what was decided.
211
+
212
+ A record that lists no candidates at all is out of scope. That is what a document-based ADR
213
+ lifted from MADR, Nygard or a Structurizr !adrs block looks like: the options are prose inside
214
+ the body, and there is nothing in the graph to point ad:hasSelectedOption at. The absence is
215
+ then silence about whether options were weighed, not a claim that none were, and a converter
216
+ minting an ad:Option to satisfy this shape would be inventing model content. Rationale for such
217
+ a record is still required, by AcceptedDecisionRationaleShape.'''@en ;
218
+ sh:or (
219
+ [ sh:not [ sh:property [ sh:path ad:decisionState ; sh:hasValue ad:Accepted ] ] ]
220
+ [ sh:property [ sh:path ad:hasSelectedOption ; sh:minCount 1 ] ]
221
+ [ sh:property [ sh:path ad:hasAlternative ; sh:maxCount 0 ] ]
222
+ ) ;
223
+ sh:message '''A Decision in state ad:Accepted that records candidate options with
224
+ ad:hasAlternative must name the chosen one with ad:hasSelectedOption.'''@en ;
225
+ sh:severity sh:Violation ;
226
+ .
227
+
228
+ :AcceptedDecisionRationaleShape
229
+ a sh:NodeShape ;
230
+ sh:targetClass ad:Decision ;
231
+ skos:prefLabel "Accepted Decision Rationale Shape"@en ;
232
+ skos:definition '''Requires that a Decision in state ad:Accepted records why the choice was
233
+ made, either as rationale prose (ad:justification) or as a reference to an external
234
+ document (ad:justificationDocument). A binding decision without recorded rationale is the
235
+ document-based ADR problem this extension exists to solve.'''@en ;
236
+ sh:or (
237
+ [ sh:not [ sh:property [ sh:path ad:decisionState ; sh:hasValue ad:Accepted ] ] ]
238
+ [ sh:property [ sh:path ad:justification ; sh:minCount 1 ] ]
239
+ [ sh:property [ sh:path ad:justificationDocument ; sh:minCount 1 ] ]
240
+ ) ;
241
+ sh:message "A Decision in state ad:Accepted must record its rationale with ad:justification or ad:justificationDocument."@en ;
242
+ sh:severity sh:Violation ;
243
+ .
244
+
245
+ :SupersededDecisionShape
246
+ a sh:NodeShape ;
247
+ sh:targetClass ad:Decision ;
248
+ skos:prefLabel "Superseded Decision Shape"@en ;
249
+ skos:definition '''Requires that a Decision in state ad:Superseded names its replacement.
250
+ Superseded means "replaced by a later decision" — without the link, the state asserts that
251
+ a replacement exists but leaves it unfindable. Use ad:Deprecated for a decision that no
252
+ longer applies and has no replacement.'''@en ;
253
+ sh:or (
254
+ [ sh:not [ sh:property [ sh:path ad:decisionState ; sh:hasValue ad:Superseded ] ] ]
255
+ [ sh:property [ sh:path ad:supersededBy ; sh:minCount 1 ] ]
256
+ ) ;
257
+ sh:message "A Decision in state ad:Superseded must name its replacement with ad:supersededBy, or use ad:Deprecated instead."@en ;
258
+ sh:severity sh:Violation ;
259
+ .
260
+
261
+ #################################################################
262
+ # Decision State — the published state individuals
263
+ #################################################################
264
+
265
+ :DecisionStateShape
266
+ a sh:NodeShape ;
267
+ sh:targetClass ad:DecisionState ;
268
+ skos:prefLabel "Decision State Shape"@en ;
269
+ skos:definition '''Validates the state individuals themselves. A state is a dereferenceable
270
+ IRI carrying its own labels and definition — that is the whole reason for preferring named
271
+ individuals over string literals (DD-23), so an undocumented state individual defeats the
272
+ pattern.'''@en ;
273
+
274
+ sh:property [
275
+ sh:path skos:prefLabel ;
276
+ sh:minCount 1 ;
277
+ sh:datatype rdf:langString ;
278
+ sh:message "Every DecisionState individual must have a language-tagged skos:prefLabel."@en ;
279
+ sh:severity sh:Violation ;
280
+ ] ;
281
+
282
+ sh:property [
283
+ sh:path skos:definition ;
284
+ sh:minCount 1 ;
285
+ sh:datatype rdf:langString ;
286
+ sh:message "Every DecisionState individual must have a skos:definition explaining what the state means."@en ;
287
+ sh:severity sh:Violation ;
288
+ ] ;
289
+ .
290
+
291
+ #################################################################
292
+ # Issue — the problem that triggers a decision
293
+ #################################################################
294
+
295
+ :IssueShape
296
+ a sh:NodeShape ;
297
+ sh:targetClass ad:Issue ;
298
+ skos:prefLabel "Issue Shape"@en ;
299
+ skos:definition "Validates that an Issue states its problem and identifies who owns it."@en ;
300
+
301
+ sh:property [
302
+ sh:path skos:prefLabel ;
303
+ sh:minCount 1 ;
304
+ sh:datatype rdf:langString ;
305
+ sh:message "Every Issue must have a language-tagged skos:prefLabel."@en ;
306
+ sh:severity sh:Violation ;
307
+ ] ;
308
+
309
+ sh:property [
310
+ sh:path ad:problemStatement ;
311
+ sh:minCount 1 ;
312
+ sh:nodeKind sh:Literal ;
313
+ sh:message "An Issue should carry an ad:problemStatement describing the problem to be resolved."@en ;
314
+ sh:severity sh:Warning ;
315
+ ] ;
316
+
317
+ sh:property [
318
+ sh:path ad:issueOwner ;
319
+ sh:maxCount 1 ;
320
+ sh:class arch:Stakeholder ;
321
+ sh:message "ad:issueOwner names at most one responsible Stakeholder."@en ;
322
+ sh:severity sh:Violation ;
323
+ ] ;
324
+
325
+ sh:property [
326
+ sh:path ad:influencingForce ;
327
+ sh:nodeKind sh:IRI ;
328
+ sh:message "ad:influencingForce must reference a Force by IRI, not a literal."@en ;
329
+ sh:severity sh:Violation ;
330
+ ] ;
331
+
332
+ sh:property [
333
+ sh:path ad:issueCausedBy ;
334
+ sh:nodeKind sh:IRI ;
335
+ sh:message "ad:issueCausedBy must reference an Element by IRI, not a literal."@en ;
336
+ sh:severity sh:Violation ;
337
+ ] ;
338
+
339
+ sh:property [
340
+ sh:path ad:issueReportedBy ;
341
+ sh:nodeKind sh:IRI ;
342
+ sh:message "ad:issueReportedBy must reference an Element by IRI, not a literal."@en ;
343
+ sh:severity sh:Violation ;
344
+ ] ;
345
+ .
346
+
347
+ #################################################################
348
+ # Option — a candidate solution
349
+ #################################################################
350
+
351
+ :OptionShape
352
+ a sh:NodeShape ;
353
+ sh:targetClass ad:Option ;
354
+ skos:prefLabel "Option Shape"@en ;
355
+ skos:definition '''Validates that an Option is labelled and connected to the forces it is
356
+ meant to satisfy. An option that addresses no force cannot be compared against its
357
+ alternatives, which is the point of recording options at all.'''@en ;
358
+
359
+ sh:property [
360
+ sh:path skos:prefLabel ;
361
+ sh:minCount 1 ;
362
+ sh:datatype rdf:langString ;
363
+ sh:message "Every Option must have a language-tagged skos:prefLabel."@en ;
364
+ sh:severity sh:Violation ;
365
+ ] ;
366
+
367
+ sh:property [
368
+ sh:path ad:addressesForce ;
369
+ sh:minCount 1 ;
370
+ sh:nodeKind sh:IRI ;
371
+ sh:message "An Option should address at least one Force, otherwise it cannot be compared with the alternatives."@en ;
372
+ sh:severity sh:Warning ;
373
+ ] ;
374
+
375
+ sh:property [
376
+ sh:path ad:includesConcept ;
377
+ sh:nodeKind sh:IRI ;
378
+ sh:message "ad:includesConcept must reference a ModelConcept by IRI, not a literal."@en ;
379
+ sh:severity sh:Violation ;
380
+ ] ;
381
+
382
+ sh:property [
383
+ sh:path ad:affectsConcept ;
384
+ sh:nodeKind sh:IRI ;
385
+ sh:message "ad:affectsConcept and its sub-properties must reference a ModelConcept by IRI, not a literal."@en ;
386
+ sh:severity sh:Violation ;
387
+ ] ;
388
+
389
+ sh:property [
390
+ sh:path ad:hasRisk ;
391
+ sh:nodeKind sh:IRI ;
392
+ sh:message "ad:hasRisk must reference the risk by IRI so it can carry its own description and measures."@en ;
393
+ sh:severity sh:Violation ;
394
+ ] ;
395
+ .
396
+
397
+ #################################################################
398
+ # Force — anything that influences a decision
399
+ #################################################################
400
+
401
+ :ForceShape
402
+ a sh:NodeShape ;
403
+ sh:targetClass ad:Force ;
404
+ skos:prefLabel "Force Shape"@en ;
405
+ skos:definition "Validates that a Force is labelled and that its relations point at IRIs."@en ;
406
+
407
+ sh:property [
408
+ sh:path skos:prefLabel ;
409
+ sh:minCount 1 ;
410
+ sh:datatype rdf:langString ;
411
+ sh:message "Every Force must have a language-tagged skos:prefLabel."@en ;
412
+ sh:severity sh:Violation ;
413
+ ] ;
414
+
415
+ sh:property [
416
+ sh:path ad:supportedByStakeholder ;
417
+ sh:class arch:Stakeholder ;
418
+ sh:message "ad:supportedByStakeholder must point to an arch:Stakeholder."@en ;
419
+ sh:severity sh:Violation ;
420
+ ] ;
421
+
422
+ sh:property [
423
+ sh:path ad:opposingForce ;
424
+ sh:nodeKind sh:IRI ;
425
+ sh:message "ad:opposingForce must reference another Force by IRI."@en ;
426
+ sh:severity sh:Violation ;
427
+ ] ;
428
+
429
+ sh:property [
430
+ sh:path ad:complementaryForce ;
431
+ sh:nodeKind sh:IRI ;
432
+ sh:message "ad:complementaryForce must reference another Force by IRI."@en ;
433
+ sh:severity sh:Violation ;
434
+ ] ;
435
+ .
436
+
437
+ :RequirementShape
438
+ a sh:NodeShape ;
439
+ sh:targetClass ad:Requirement ;
440
+ skos:prefLabel "Requirement Shape"@en ;
441
+ skos:definition '''Validates the measures on a Requirement. Importance and difficulty are
442
+ single-valued: a requirement carrying two importance measures cannot be ranked against
443
+ the others when trading off options.'''@en ;
444
+
445
+ sh:property [
446
+ sh:path ad:hasImportanceMeasure ;
447
+ sh:maxCount 1 ;
448
+ sh:message "A Requirement carries at most one ad:hasImportanceMeasure."@en ;
449
+ sh:severity sh:Violation ;
450
+ ] ;
451
+
452
+ sh:property [
453
+ sh:path ad:hasDifficultyMeasure ;
454
+ sh:maxCount 1 ;
455
+ sh:message "A Requirement carries at most one ad:hasDifficultyMeasure."@en ;
456
+ sh:severity sh:Violation ;
457
+ ] ;
458
+
459
+ sh:property [
460
+ sh:path ad:requestedByStakeholder ;
461
+ sh:class arch:Stakeholder ;
462
+ sh:message "ad:requestedByStakeholder must point to an arch:Stakeholder."@en ;
463
+ sh:severity sh:Violation ;
464
+ ] ;
465
+ .
466
+
467
+ #################################################################
468
+ # Quality Attribute Requirement — the QAS six-tuple
469
+ #
470
+ # Source of Stimulus, Stimulus, Environment, Artifact, Response,
471
+ # Response Measure (Bass, Clements, Kazman). A scenario missing a
472
+ # response measure is not testable, which is the usual failure mode.
473
+ #################################################################
474
+
475
+ :QualityAttributeRequirementShape
476
+ a sh:NodeShape ;
477
+ sh:targetClass ad:QualityAttributeRequirement ;
478
+ skos:prefLabel "Quality Attribute Requirement Shape"@en ;
479
+ skos:definition '''Validates that a quality attribute requirement names the quality attribute
480
+ it constrains and expresses it as a complete Quality Attribute Scenario.'''@en ;
481
+
482
+ sh:property [
483
+ sh:path ad:onQualityAttribute ;
484
+ sh:minCount 1 ;
485
+ sh:nodeKind sh:IRI ;
486
+ sh:message '''A QualityAttributeRequirement must name the quality attribute it constrains
487
+ with ad:onQualityAttribute — for example an ISO 25010 or ML quality attribute individual.'''@en ;
488
+ sh:severity sh:Violation ;
489
+ ] ;
490
+
491
+ sh:property [
492
+ sh:path ad:qasSourceOfStimulus ;
493
+ sh:minCount 1 ;
494
+ sh:message "A complete Quality Attribute Scenario names the source of the stimulus."@en ;
495
+ sh:severity sh:Warning ;
496
+ ] ;
497
+
498
+ sh:property [
499
+ sh:path ad:qasStimulus ;
500
+ sh:minCount 1 ;
501
+ sh:message "A complete Quality Attribute Scenario names the stimulus."@en ;
502
+ sh:severity sh:Warning ;
503
+ ] ;
504
+
505
+ sh:property [
506
+ sh:path ad:qasEnvironment ;
507
+ sh:minCount 1 ;
508
+ sh:message "A complete Quality Attribute Scenario names the environment the stimulus occurs in."@en ;
509
+ sh:severity sh:Warning ;
510
+ ] ;
511
+
512
+ sh:property [
513
+ sh:path ad:qasArtifact ;
514
+ sh:minCount 1 ;
515
+ sh:message "A complete Quality Attribute Scenario names the artifact that is stimulated."@en ;
516
+ sh:severity sh:Warning ;
517
+ ] ;
518
+
519
+ sh:property [
520
+ sh:path ad:qasResponse ;
521
+ sh:minCount 1 ;
522
+ sh:message "A complete Quality Attribute Scenario names the response."@en ;
523
+ sh:severity sh:Warning ;
524
+ ] ;
525
+
526
+ sh:property [
527
+ sh:path ad:qasResponseMeasure ;
528
+ sh:minCount 1 ;
529
+ sh:message "A Quality Attribute Scenario without a response measure is not testable — add ad:qasResponseMeasure."@en ;
530
+ sh:severity sh:Warning ;
531
+ ] ;
532
+ .
533
+
534
+ #################################################################
535
+ # Force Influence — qualified Force-to-Decision relationship
536
+ #
537
+ # core-shapes already requires exactly one arch:source and one
538
+ # arch:target on every arch:QualifiedRelationship. Only the
539
+ # influence-specific measure is added here.
540
+ #################################################################
541
+
542
+ :ForceInfluenceShape
543
+ a sh:NodeShape ;
544
+ sh:targetClass ad:ForceInfluence ;
545
+ skos:prefLabel "Force Influence Shape"@en ;
546
+ skos:definition '''Validates the qualified relationship that records how strongly a Force
547
+ influenced a Decision.'''@en ;
548
+
549
+ sh:property [
550
+ sh:path ad:hasInfluenceMeasure ;
551
+ sh:maxCount 1 ;
552
+ sh:message "A ForceInfluence carries at most one ad:hasInfluenceMeasure."@en ;
553
+ sh:severity sh:Violation ;
554
+ ] ;
555
+ .
556
+
557
+ #################################################################
558
+ # Iteration — ADD-style grouping of decisions
559
+ #################################################################
560
+
561
+ :IterationShape
562
+ a sh:NodeShape ;
563
+ sh:targetClass ad:Iteration ;
564
+ skos:prefLabel "Iteration Shape"@en ;
565
+ skos:definition "Validates that an ADD iteration is labelled and states its goal."@en ;
566
+
567
+ sh:property [
568
+ sh:path skos:prefLabel ;
569
+ sh:minCount 1 ;
570
+ sh:datatype rdf:langString ;
571
+ sh:message "Every Iteration must have a language-tagged skos:prefLabel."@en ;
572
+ sh:severity sh:Violation ;
573
+ ] ;
574
+
575
+ sh:property [
576
+ sh:path ad:hasDecisionGoal ;
577
+ sh:minCount 1 ;
578
+ sh:nodeKind sh:IRI ;
579
+ sh:message "An Iteration should state its goal with ad:hasDecisionGoal."@en ;
580
+ sh:severity sh:Warning ;
581
+ ] ;
582
+ .