@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,851 @@
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 prov: <http://www.w3.org/ns/prov#> .
10
+ @prefix cc: <http://creativecommons.org/ns#> .
11
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
12
+
13
+ @prefix arch: <https://meta.linked.archi/core#> .
14
+ @prefix arch-vis: <https://meta.linked.archi/core-vis#> .
15
+ @prefix : <https://meta.linked.archi/core-vis-shapes#> .
16
+
17
+ #################################################################
18
+ # Ontology Declaration
19
+ #################################################################
20
+
21
+ <https://meta.linked.archi/core-vis-shapes#>
22
+ rdf:type owl:Ontology ;
23
+ owl:imports <https://meta.linked.archi/core-vis#>,
24
+ <https://meta.linked.archi/core-shapes#> ;
25
+ cc:license "http://creativecommons.org/licenses/by/4.0/" ;
26
+ vann:preferredNamespaceUri "https://meta.linked.archi/core-vis-shapes#" ;
27
+ vann:preferredNamespacePrefix "archvissh" ;
28
+ dcterms:creator "Kalin Maldzhanski"^^xsd:string ;
29
+ dcterms:title "Linked.Archi Core Visual Notation SHACL Shapes"@en ;
30
+ dcterms:description '''SHACL shapes for the Linked.Archi diagram and visual notation
31
+ layer (core-vis). Constrains the diagram interchange classes — ArchNode, LabelNode,
32
+ ViewReferenceNode, ContainerNode, Link, Point, PointList — and the type-level notation classes NotationSet,
33
+ VisualNotation and Style.
34
+
35
+ Until 0.1.0 the diagram layer had no shapes at all: a validate run loaded the notation's
36
+ own shapes and the core shapes, none of which target a core-vis class, so nothing checked
37
+ that a diagram node referenced a model element, that it belonged to a view, or that an edge
38
+ had endpoints. A corpus of 447 malformed diagram resources across 20 diagrams validated
39
+ clean. The two load-bearing rules here are ArchNodeShape (a diagram node that claims to
40
+ stand for a model element must say which one) and PlacedDiagElementShape (a shape or edge
41
+ must belong to exactly one view); the remainder is cardinality and datatype hygiene.'''@en ;
42
+ dcterms:created "2026-08-13"^^xsd:date ;
43
+ dcterms:modified "2026-12-02"^^xsd:date ;
44
+ dcterms:publisher "Linked.Archi"@en,
45
+ <https://linked.archi> ;
46
+ bibo:status "draft" ;
47
+ owl:versionIRI <https://meta.linked.archi/core-vis-shapes/0.6.1#> ;
48
+ owl:versionInfo "0.6.1"@en ;
49
+ owl:priorVersion <https://meta.linked.archi/core-vis-shapes/0.6.0#> ;
50
+ skos:historyNote '''0.6.1 — NestedNodeShape's query joins arch-vis:inNode inside each branch of its
51
+ union: the same findings, without pairing every node that has a view with every other first (115 s on a model
52
+ of 365 000 triples with 5 213 nested nodes, in Oxigraph; 21 ms after).
53
+ 0.6.0 — NodeOrderShape: a node's arch-vis:zOrder, which core-vis 0.10 adds, is
54
+ a single xsd:integer.
55
+
56
+ 0.5.0 — ViewReferenceNodeShape: a reference to another view, which
57
+ core-vis 0.9 adds, opens exactly one arch:View, named by IRI through arch-vis:referencesView, and carries
58
+ no arch-vis:archElement, as a LabelNode carries none.
59
+ 0.4.0 — StyleShape checks arch-vis:useElementPicture, which core-vis 0.8
60
+ adds: a single xsd:boolean.
61
+
62
+ 0.3.0 — StyleShape checks the style terms core-vis 0.7 adds:
63
+ lineWidth a positive integer, fontStyle the keywords bold, italic and underline, textAlignment,
64
+ textPosition and gradient members of their enumerations, iconColor a single string, image a single
65
+ xsd:anyURI, imagePosition an IconPlacement, labelAnchor a LabelAnchor — and, as a line's own style
66
+ may now say them, lineStyle, sourceDecor and targetDecor members of theirs. A VisualNotation's
67
+ arch-vis:alternativeStyle is a Style. A LabelExpression has one expression, a string, and is for at
68
+ most one presentation context (core's arch:inPresentationContext); whatever arch-vis:labelExpression is
69
+ said of — a Style, a VisualNotation, a presentation context — it points to LabelExpressions. A diagram
70
+ element may have several styles — at most one for every presentation context and one for each — where
71
+ arch-vis:style was at most one; a Style is for at most one presentation context.
72
+
73
+ 0.2.0 — LinkShape accepts a Link as well as a Node at either end of
74
+ a Link, following core-vis 0.6: the edge of a relationship whose source or target is a
75
+ relationship ends on that relationship's edge.'''@en ;
76
+ sh:declare [
77
+ sh:prefix "arch-vis" ;
78
+ sh:namespace "https://meta.linked.archi/core-vis#"^^xsd:anyURI ;
79
+ ] , [
80
+ sh:prefix "arch" ;
81
+ sh:namespace "https://meta.linked.archi/core#"^^xsd:anyURI ;
82
+ ] ;
83
+ dcterms:source <https://meta.linked.archi/core-vis#> ;
84
+ prov:wasDerivedFrom <https://meta.linked.archi/core-vis#> ;
85
+ rdfs:seeAlso <https://meta.linked.archi/core-vis#>,
86
+ <https://meta.linked.archi/core-shapes#> ;
87
+ skos:editorialNote '''Carries NO label rule, for the same reason core-shapes does
88
+ not — see the labelling contract in core-shapes.ttl. A LabelNode holds text, but a
89
+ ContainerNode, a Point and most Links are legitimately unlabelled, and a diagram is not the
90
+ place to enforce a naming policy that belongs to the notation. arch-vis:label is constrained
91
+ here only in cardinality and range.
92
+
93
+ Disjointness of Node, Link and Point is asserted in the ontology
94
+ (arch-vis:NodeLinkPointDisjoint), not here: it is a fact about the vocabulary that a
95
+ reasoner should use, not a closed-world check.'''@en ;
96
+ .
97
+
98
+
99
+ #################################################################
100
+ # THE DIAGRAM LAYER CONTRACT — read this before writing a converter
101
+ #
102
+ # A diagram in Linked.Archi is a set of arch-vis:DiagElement resources
103
+ # that each belong to exactly one arch:View. Three mistakes account for
104
+ # nearly all malformed diagram output:
105
+ #
106
+ # 1. Minting diagram resources outside the model namespace. The IRIs
107
+ # are yours to choose, but they must be in the graph the model is
108
+ # loaded into, or arch-vis:view points nowhere and the shape below
109
+ # reports it. SHACL cannot check "same namespace" usefully, so this
110
+ # is caught indirectly, through the view and archElement references.
111
+ #
112
+ # 2. Typing a label as arch-vis:ArchNode. A LabelNode is not an
113
+ # ArchNode: it carries rendered text, it does not stand for a model
114
+ # element. Typing it ArchNode means it must produce an
115
+ # arch-vis:archElement, and there is none to give. Use
116
+ # arch-vis:LabelNode and attach it with arch-vis:label.
117
+ #
118
+ # 3. Attaching an edge label as though the edge were a shape. Since
119
+ # core-vis 0.3 arch-vis:label has rdfs:domain arch-vis:DiagElement,
120
+ # so arch-vis:label on a Link is correct and expected — BPMN's
121
+ # BPMNEdge-label, a named sequence flow. Before 0.3 the domain was
122
+ # Node and asserting it on an edge entailed that the edge was a
123
+ # Node, which the disjointness axiom now contradicts.
124
+ #
125
+ # 4. Inventing a node for a line. A relationship whose source or target
126
+ # is a relationship is drawn as a Link whose arch-vis:source or
127
+ # arch-vis:target is the Link drawn for that relationship (core-vis
128
+ # 0.6). Point the end at that Link; do not mint a Node for it.
129
+ #
130
+ # 5. Giving a drawing a model concept. A group, a plain shape, a
131
+ # free-standing note and a line from a note stand for nothing in
132
+ # the model: a group or a shape is an
133
+ # arch-vis:ContainerNode, a note an arch-vis:LabelNode no element's
134
+ # arch-vis:label points at — their text their skos:prefLabel, their
135
+ # colours their arch-vis:style's — and a line from a note an
136
+ # arch-vis:Link with no arch-vis:archRelationship. None carries
137
+ # arch-vis:archElement or arch-vis:archRelationship, and none puts
138
+ # anything in the view's arch:inView. Do not mint a model element
139
+ # to give an Exchange file's Container or Label node somewhere to
140
+ # hang.
141
+ #
142
+ # 6. Reading a reference to another view as a note. An Exchange Label
143
+ # node with a viewRef, a reference to another view, is the
144
+ # appearance of the view it names, as an ArchNode is an element's:
145
+ # an arch-vis:ViewReferenceNode, not a LabelNode, whose
146
+ # arch-vis:referencesView is that view. Unlike a note it stands for
147
+ # a model concept, and that view is presented in this one: state its
148
+ # arch:inView too, as for an element an ArchNode draws, so the
149
+ # presence survives when the diagram layer is dropped. A viewRef
150
+ # naming no view leaves a note.
151
+ #
152
+ # Bounds are not required. A LabelNode whose position a renderer derives
153
+ # from its owner has no bounds of its own, and a notation is free to
154
+ # leave geometry to the layout engine. Where bounds are present all four
155
+ # components must be xsd:double.
156
+ #################################################################
157
+
158
+
159
+ #################################################################
160
+ # ArchNode — must say which model element it stands for
161
+ #################################################################
162
+
163
+ :ArchNodeShape
164
+ a sh:NodeShape ;
165
+ sh:targetClass arch-vis:ArchNode ;
166
+ rdfs:label "ArchNode shape"@en ;
167
+ sh:property [
168
+ sh:path arch-vis:archElement ;
169
+ sh:minCount 1 ;
170
+ sh:maxCount 1 ;
171
+ sh:nodeKind sh:IRI ;
172
+ sh:message '''An ArchNode is the diagram appearance of a model element, so it must
173
+ carry exactly one arch-vis:archElement naming that element by IRI. A diagram node with no
174
+ archElement is a ContainerNode (group, pool, lane, plain shape), a LabelNode (a label, a
175
+ note) or a ViewReferenceNode (a reference to another view) — type it as one of those instead.'''@en ;
176
+ ] ;
177
+ .
178
+
179
+
180
+ #################################################################
181
+ # Placed elements — a shape or an edge belongs to exactly one view
182
+ #
183
+ # Targets Node and Link rather than DiagElement: a Point is route
184
+ # geometry owned by a Link through arch-vis:points, not an independently
185
+ # placed element, and requiring a view on every waypoint would force
186
+ # converters to emit it on geometry that has no meaning without its Link.
187
+ #################################################################
188
+
189
+ :PlacedDiagElementShape
190
+ a sh:NodeShape ;
191
+ sh:targetClass arch-vis:Node,
192
+ arch-vis:Link ;
193
+ rdfs:label "Placed diagram element shape"@en ;
194
+ sh:property [
195
+ sh:path arch-vis:view ;
196
+ sh:minCount 1 ;
197
+ sh:maxCount 1 ;
198
+ sh:nodeKind sh:IRI ;
199
+ sh:class arch:View ;
200
+ sh:message '''Every diagram shape and edge belongs to exactly one arch:View, named by
201
+ IRI through arch-vis:view. A DiagElement with no view is unreachable: nothing can render it
202
+ and no query scoped to a diagram will find it.'''@en ;
203
+ ] ;
204
+ .
205
+
206
+
207
+ #################################################################
208
+ # DiagElement — properties shared by shapes, edges and points
209
+ #################################################################
210
+
211
+ :DiagElementShape
212
+ a sh:NodeShape ;
213
+ sh:targetClass arch-vis:DiagElement ;
214
+ rdfs:label "DiagElement shape"@en ;
215
+ sh:property [
216
+ sh:path arch-vis:view ;
217
+ sh:maxCount 1 ;
218
+ sh:nodeKind sh:IRI ;
219
+ sh:class arch:View ;
220
+ sh:message "A DiagElement appears on at most one view. Draw it twice and it is two DiagElements."@en ;
221
+ ] ;
222
+ sh:property [
223
+ sh:path arch-vis:label ;
224
+ sh:maxCount 1 ;
225
+ sh:nodeKind sh:IRI ;
226
+ sh:class arch-vis:LabelNode ;
227
+ sh:message '''arch-vis:label points to at most one arch-vis:LabelNode. Both shapes and
228
+ edges may be labelled — the domain is DiagElement since core-vis 0.3.'''@en ;
229
+ ] ;
230
+ sh:property [
231
+ sh:path arch-vis:style ;
232
+ sh:class arch-vis:Style ;
233
+ sh:message "arch-vis:style points to arch-vis:Styles."@en ;
234
+ ] ;
235
+ # At most one style for every presentation context, and one for each context (core-vis 0.7).
236
+ sh:sparql [
237
+ sh:prefixes <https://meta.linked.archi/core-vis-shapes#> ;
238
+ sh:message "{$this} has {?count} styles for {?scope}: at most one for every presentation context, and one for each."@en ;
239
+ sh:select """
240
+ SELECT $this ?scope (COUNT(DISTINCT ?style) AS ?count)
241
+ WHERE {
242
+ $this arch-vis:style ?style .
243
+ OPTIONAL { ?style arch:inPresentationContext ?context }
244
+ BIND(COALESCE(STR(?context), "every presentation context") AS ?scope)
245
+ }
246
+ GROUP BY $this ?scope
247
+ HAVING (COUNT(DISTINCT ?style) > 1)
248
+ """ ;
249
+ ] ;
250
+ .
251
+
252
+
253
+ #################################################################
254
+ # Node — bounds, where present, are four doubles
255
+ #################################################################
256
+
257
+ :NodeBoundsShape
258
+ a sh:NodeShape ;
259
+ sh:targetClass arch-vis:Node ;
260
+ rdfs:label "Node bounds shape"@en ;
261
+ sh:property [
262
+ sh:path arch-vis:bounds-x ;
263
+ sh:maxCount 1 ;
264
+ sh:datatype xsd:double ;
265
+ sh:message "bounds-x must be a single xsd:double."@en ;
266
+ ] ;
267
+ sh:property [
268
+ sh:path arch-vis:bounds-y ;
269
+ sh:maxCount 1 ;
270
+ sh:datatype xsd:double ;
271
+ sh:message "bounds-y must be a single xsd:double."@en ;
272
+ ] ;
273
+ sh:property [
274
+ sh:path arch-vis:bounds-w ;
275
+ sh:maxCount 1 ;
276
+ sh:datatype xsd:double ;
277
+ sh:message "bounds-w must be a single xsd:double."@en ;
278
+ ] ;
279
+ sh:property [
280
+ sh:path arch-vis:bounds-h ;
281
+ sh:maxCount 1 ;
282
+ sh:datatype xsd:double ;
283
+ sh:message "bounds-h must be a single xsd:double."@en ;
284
+ ] ;
285
+ .
286
+
287
+ :NodeOrderShape
288
+ a sh:NodeShape ;
289
+ sh:targetClass arch-vis:Node ;
290
+ rdfs:label "Node drawing order shape"@en ;
291
+ sh:property [
292
+ sh:path arch-vis:zOrder ;
293
+ sh:maxCount 1 ;
294
+ sh:datatype xsd:integer ;
295
+ sh:message "A node has at most one drawing order (arch-vis:zOrder), an xsd:integer."@en ;
296
+ ] ;
297
+ .
298
+
299
+
300
+ #################################################################
301
+ # Nested node — inside one other node, on the same view
302
+ #################################################################
303
+
304
+ :NestedNodeShape
305
+ a sh:NodeShape ;
306
+ sh:targetSubjectsOf arch-vis:inNode ;
307
+ rdfs:label "Nested node shape"@en ;
308
+ sh:property [
309
+ sh:path arch-vis:inNode ;
310
+ sh:maxCount 1 ;
311
+ sh:nodeKind sh:IRI ;
312
+ sh:class arch-vis:Node ;
313
+ sh:message "A node is drawn inside at most one other node (arch-vis:inNode), named by IRI."@en ;
314
+ ] ;
315
+ sh:sparql [
316
+ sh:prefixes <https://meta.linked.archi/core-vis-shapes#> ;
317
+ sh:message "A node is drawn inside a node of its own view, and never inside itself or a node it contains."@en ;
318
+ sh:select """
319
+ SELECT $this ?value
320
+ WHERE {
321
+ # arch-vis:inNode inside each branch rather than joined to the union: an engine that
322
+ # evaluates the union on its own (Oxigraph does) pairs every node with a view with
323
+ # every other first, which took minutes on a model of nine thousand nodes.
324
+ {
325
+ $this arch-vis:inNode ?value .
326
+ $this arch-vis:view ?view .
327
+ ?value arch-vis:view ?other .
328
+ FILTER(?view != ?other)
329
+ } UNION {
330
+ $this arch-vis:inNode ?value .
331
+ $this arch-vis:inNode+ $this .
332
+ }
333
+ }
334
+ """ ;
335
+ ] ;
336
+ .
337
+
338
+
339
+ #################################################################
340
+ # LabelNode — text, not structure
341
+ #################################################################
342
+
343
+ :LabelNodeShape
344
+ a sh:NodeShape ;
345
+ sh:targetClass arch-vis:LabelNode ;
346
+ rdfs:label "LabelNode shape"@en ;
347
+ sh:property [
348
+ sh:path arch-vis:label ;
349
+ sh:maxCount 0 ;
350
+ sh:message '''A LabelNode does not carry a label of its own. If you have nested label
351
+ nodes, the outer one is the labelled element and should be typed for what it is.'''@en ;
352
+ ] ;
353
+ sh:property [
354
+ sh:path arch-vis:archElement ;
355
+ sh:maxCount 0 ;
356
+ sh:message '''A LabelNode carries rendered text; it does not stand for a model element,
357
+ so it must not carry arch-vis:archElement. Typing a label as ArchNode to give it somewhere
358
+ to hang is the single most common diagram-layer defect.'''@en ;
359
+ ] ;
360
+ .
361
+
362
+
363
+ #################################################################
364
+ # ViewReferenceNode — must say which view it stands for
365
+ #################################################################
366
+
367
+ :ViewReferenceNodeShape
368
+ a sh:NodeShape ;
369
+ sh:targetClass arch-vis:ViewReferenceNode ;
370
+ rdfs:label "ViewReferenceNode shape"@en ;
371
+ sh:property [
372
+ sh:path arch-vis:referencesView ;
373
+ sh:minCount 1 ;
374
+ sh:maxCount 1 ;
375
+ sh:nodeKind sh:IRI ;
376
+ sh:class arch:View ;
377
+ sh:message '''A ViewReferenceNode is the appearance of a view on another diagram, so it must
378
+ carry exactly one arch-vis:referencesView naming that view by IRI. Text that opens no view is a note:
379
+ type it arch-vis:LabelNode instead.'''@en ;
380
+ ] ;
381
+ sh:property [
382
+ sh:path arch-vis:archElement ;
383
+ sh:maxCount 0 ;
384
+ sh:message '''A ViewReferenceNode stands for a view, not a model element, so it must not carry
385
+ arch-vis:archElement. A box that draws an element is an ArchNode, whatever it opens.'''@en ;
386
+ ] ;
387
+ .
388
+
389
+
390
+ #################################################################
391
+ # Link — endpoints and route
392
+ #################################################################
393
+
394
+ :LinkShape
395
+ a sh:NodeShape ;
396
+ sh:targetClass arch-vis:Link ;
397
+ rdfs:label "Link shape"@en ;
398
+ sh:property [
399
+ sh:path arch-vis:source ;
400
+ sh:minCount 1 ;
401
+ sh:maxCount 1 ;
402
+ sh:nodeKind sh:IRI ;
403
+ sh:or ( [ sh:class arch-vis:Node ] [ sh:class arch-vis:Link ] ) ;
404
+ sh:message "A Link has exactly one arch-vis:source, and it must be a Node or another Link."@en ;
405
+ ] ;
406
+ sh:property [
407
+ sh:path arch-vis:target ;
408
+ sh:minCount 1 ;
409
+ sh:maxCount 1 ;
410
+ sh:nodeKind sh:IRI ;
411
+ sh:or ( [ sh:class arch-vis:Node ] [ sh:class arch-vis:Link ] ) ;
412
+ sh:message "A Link has exactly one arch-vis:target, and it must be a Node or another Link."@en ;
413
+ ] ;
414
+ sh:property [
415
+ sh:path arch-vis:points ;
416
+ sh:maxCount 1 ;
417
+ sh:message '''A Link has at most one arch-vis:points route. The route is an ordered
418
+ PointList, so extra waypoints go in the list, not in a second points assertion.'''@en ;
419
+ ] ;
420
+ sh:property [
421
+ sh:path arch-vis:archRelationship ;
422
+ sh:maxCount 1 ;
423
+ sh:nodeKind sh:IRI ;
424
+ sh:class arch:QualifiedRelationship ;
425
+ sh:message '''arch-vis:archRelationship points to at most one qualified relationship.
426
+ It is optional: a Link may be pure diagram decoration with no model relationship behind
427
+ it.'''@en ;
428
+ ] ;
429
+ .
430
+
431
+
432
+ #################################################################
433
+ # Point — a waypoint has both coordinates
434
+ #################################################################
435
+
436
+ :PointShape
437
+ a sh:NodeShape ;
438
+ sh:targetClass arch-vis:Point ;
439
+ rdfs:label "Point shape"@en ;
440
+ sh:property [
441
+ sh:path arch-vis:point-x ;
442
+ sh:minCount 1 ;
443
+ sh:maxCount 1 ;
444
+ sh:datatype xsd:double ;
445
+ sh:message "A Point has exactly one point-x, as an xsd:double."@en ;
446
+ ] ;
447
+ sh:property [
448
+ sh:path arch-vis:point-y ;
449
+ sh:minCount 1 ;
450
+ sh:maxCount 1 ;
451
+ sh:datatype xsd:double ;
452
+ sh:message "A Point has exactly one point-y, as an xsd:double."@en ;
453
+ ] ;
454
+ .
455
+
456
+
457
+ #################################################################
458
+ # Style — appearance primitives
459
+ #################################################################
460
+
461
+ :StyleShape
462
+ a sh:NodeShape ;
463
+ sh:targetClass arch-vis:Style ;
464
+ rdfs:label "Style shape"@en ;
465
+ sh:property [
466
+ sh:path arch:inPresentationContext ;
467
+ sh:maxCount 1 ;
468
+ sh:nodeKind sh:IRI ;
469
+ sh:message "A Style is for at most one presentation context (arch:inPresentationContext); with none, for every one."@en ;
470
+ ] ;
471
+ sh:property [
472
+ sh:path arch-vis:fillColor ;
473
+ sh:maxCount 1 ;
474
+ sh:datatype xsd:string ;
475
+ sh:message "fillColor is a single CSS colour string, e.g. #ffffb5 or rgba(255,255,181,0.5)."@en ;
476
+ ] ;
477
+ sh:property [
478
+ sh:path arch-vis:lineColor ;
479
+ sh:maxCount 1 ;
480
+ sh:datatype xsd:string ;
481
+ sh:message "lineColor is a single CSS colour string."@en ;
482
+ ] ;
483
+ sh:property [
484
+ sh:path arch-vis:fontColor ;
485
+ sh:maxCount 1 ;
486
+ sh:datatype xsd:string ;
487
+ sh:message "fontColor is a single CSS colour string."@en ;
488
+ ] ;
489
+ sh:property [
490
+ sh:path arch-vis:fontName ;
491
+ sh:maxCount 1 ;
492
+ sh:datatype xsd:string ;
493
+ sh:message "fontName is a single string."@en ;
494
+ ] ;
495
+ sh:property [
496
+ sh:path arch-vis:fontSize ;
497
+ sh:maxCount 1 ;
498
+ sh:datatype xsd:integer ;
499
+ sh:message "fontSize is a single xsd:integer."@en ;
500
+ ] ;
501
+ sh:property [
502
+ sh:path arch-vis:shapeType ;
503
+ sh:maxCount 1 ;
504
+ sh:nodeKind sh:IRI ;
505
+ sh:class arch-vis:ShapeType ;
506
+ sh:message '''shapeType must be a single member of the ShapeType enumeration
507
+ (arch-vis:RoundedRectangle, Rectangle, Octagon, Ellipse, Circle, Hexagon, Diamond,
508
+ Parallelogram), or a ShapeType a notation declares itself with a fallback and its geometry.'''@en ;
509
+ ] ;
510
+ sh:property [
511
+ sh:path arch-vis:iconSymbol ;
512
+ sh:maxCount 1 ;
513
+ sh:datatype xsd:anyURI ;
514
+ sh:message "iconSymbol is a single xsd:anyURI naming the glyph to render."@en ;
515
+ ] ;
516
+ sh:property [
517
+ sh:path arch-vis:useElementPicture ;
518
+ sh:maxCount 1 ;
519
+ sh:datatype xsd:boolean ;
520
+ sh:message "useElementPicture is a single xsd:boolean: whether the element's own picture is the icon."@en ;
521
+ ] ;
522
+ sh:property [
523
+ sh:path arch-vis:iconPlacement ;
524
+ sh:maxCount 1 ;
525
+ sh:nodeKind sh:IRI ;
526
+ sh:class arch-vis:IconPlacement ;
527
+ sh:message '''iconPlacement must be a single member of the IconPlacement enumeration
528
+ (arch-vis:TopRight, TopLeft, TopCenter, Center, BottomCenter).'''@en ;
529
+ ] ;
530
+ sh:property [
531
+ sh:path arch-vis:renderingMode ;
532
+ sh:maxCount 1 ;
533
+ sh:nodeKind sh:IRI ;
534
+ sh:class arch-vis:RenderingMode ;
535
+ sh:message '''renderingMode must be a single member of the RenderingMode enumeration
536
+ (arch-vis:ShapeWithBadge, arch-vis:IconCentric, arch-vis:ShapeOnly). Absent means
537
+ ShapeWithBadge.'''@en ;
538
+ ] ;
539
+ sh:property [
540
+ sh:path arch-vis:defaultWidth ;
541
+ sh:maxCount 1 ;
542
+ sh:datatype xsd:double ;
543
+ sh:message "defaultWidth is a single xsd:double."@en ;
544
+ ] ;
545
+ sh:property [
546
+ sh:path arch-vis:defaultHeight ;
547
+ sh:maxCount 1 ;
548
+ sh:datatype xsd:double ;
549
+ sh:message "defaultHeight is a single xsd:double."@en ;
550
+ ] ;
551
+ sh:property [
552
+ sh:path arch-vis:borderStyle ;
553
+ sh:maxCount 1 ;
554
+ sh:nodeKind sh:IRI ;
555
+ sh:class arch-vis:LineStyle ;
556
+ sh:message '''borderStyle must be a single member of the LineStyle enumeration
557
+ (arch-vis:SolidLine, arch-vis:DashedLine, arch-vis:DottedLine). Absent means solid.'''@en ;
558
+ ] ;
559
+ sh:property [
560
+ sh:path arch-vis:fontStyle ;
561
+ sh:maxCount 1 ;
562
+ sh:datatype xsd:string ;
563
+ sh:pattern "^(bold|italic|underline)( (bold|italic|underline))*$" ;
564
+ sh:message '''fontStyle is a single string of the keywords bold, italic and underline,
565
+ separated by spaces, e.g. "bold italic".'''@en ;
566
+ ] ;
567
+ sh:property [
568
+ sh:path arch-vis:lineWidth ;
569
+ sh:maxCount 1 ;
570
+ sh:datatype xsd:integer ;
571
+ sh:minInclusive 1 ;
572
+ sh:message "lineWidth is a single positive xsd:integer."@en ;
573
+ ] ;
574
+ sh:property [
575
+ sh:path arch-vis:textAlignment ;
576
+ sh:maxCount 1 ;
577
+ sh:nodeKind sh:IRI ;
578
+ sh:class arch-vis:TextAlignment ;
579
+ sh:message '''textAlignment must be a single member of the TextAlignment enumeration
580
+ (arch-vis:AlignLeft, AlignCenter, AlignRight).'''@en ;
581
+ ] ;
582
+ sh:property [
583
+ sh:path arch-vis:textPosition ;
584
+ sh:maxCount 1 ;
585
+ sh:nodeKind sh:IRI ;
586
+ sh:class arch-vis:TextPosition ;
587
+ sh:message '''textPosition must be a single member of the TextPosition enumeration
588
+ (arch-vis:PositionTop, PositionMiddle, PositionBottom).'''@en ;
589
+ ] ;
590
+ sh:property [
591
+ sh:path arch-vis:gradient ;
592
+ sh:maxCount 1 ;
593
+ sh:nodeKind sh:IRI ;
594
+ sh:class arch-vis:Gradient ;
595
+ sh:message '''gradient must be a single member of the Gradient enumeration
596
+ (arch-vis:GradientTop, GradientLeft, GradientRight, GradientBottom).'''@en ;
597
+ ] ;
598
+ sh:property [
599
+ sh:path arch-vis:iconColor ;
600
+ sh:maxCount 1 ;
601
+ sh:datatype xsd:string ;
602
+ sh:message "iconColor is a single CSS colour string."@en ;
603
+ ] ;
604
+ sh:property [
605
+ sh:path arch-vis:image ;
606
+ sh:maxCount 1 ;
607
+ sh:datatype xsd:anyURI ;
608
+ sh:message "image is a single xsd:anyURI: an http(s) URL, or a data: URI of an image."@en ;
609
+ ] ;
610
+ sh:property [
611
+ sh:path arch-vis:imagePosition ;
612
+ sh:maxCount 1 ;
613
+ sh:nodeKind sh:IRI ;
614
+ sh:class arch-vis:IconPlacement ;
615
+ sh:message '''imagePosition must be a single member of the IconPlacement enumeration
616
+ (arch-vis:TopLeft, TopCenter, TopRight, MiddleLeft, Center, MiddleRight, BottomLeft, BottomCenter,
617
+ BottomRight, Fill).'''@en ;
618
+ ] ;
619
+ sh:property [
620
+ sh:path arch-vis:labelAnchor ;
621
+ sh:maxCount 1 ;
622
+ sh:nodeKind sh:IRI ;
623
+ sh:class arch-vis:LabelAnchor ;
624
+ sh:message '''labelAnchor must be a single member of the LabelAnchor enumeration
625
+ (arch-vis:AnchorSource, AnchorMiddle, AnchorTarget).'''@en ;
626
+ ] ;
627
+ sh:property [
628
+ sh:path arch-vis:lineStyle ;
629
+ sh:maxCount 1 ;
630
+ sh:nodeKind sh:IRI ;
631
+ sh:class arch-vis:LineStyle ;
632
+ sh:message '''lineStyle must be a single member of the LineStyle enumeration
633
+ (arch-vis:SolidLine, arch-vis:DashedLine, arch-vis:DottedLine).'''@en ;
634
+ ] ;
635
+ sh:property [
636
+ sh:path arch-vis:sourceDecor ;
637
+ sh:maxCount 1 ;
638
+ sh:nodeKind sh:IRI ;
639
+ sh:class arch-vis:Decoration ;
640
+ sh:message "sourceDecor must be a single member of the Decoration enumeration (arch-vis:NoDecoration, OpenArrowhead, …)."@en ;
641
+ ] ;
642
+ sh:property [
643
+ sh:path arch-vis:targetDecor ;
644
+ sh:maxCount 1 ;
645
+ sh:nodeKind sh:IRI ;
646
+ sh:class arch-vis:Decoration ;
647
+ sh:message "targetDecor must be a single member of the Decoration enumeration (arch-vis:NoDecoration, OpenArrowhead, …)."@en ;
648
+ ] ;
649
+ .
650
+
651
+
652
+ #################################################################
653
+ # Decoration — the marker a notation renders at a connector end
654
+ #################################################################
655
+
656
+ :DecorationShape
657
+ a sh:NodeShape ;
658
+ sh:targetClass arch-vis:Decoration ;
659
+ rdfs:label "Decoration shape"@en ;
660
+ sh:property [
661
+ sh:path arch-vis:decorSymbol ;
662
+ sh:maxCount 1 ;
663
+ sh:datatype xsd:anyURI ;
664
+ sh:message "decorSymbol is a single xsd:anyURI naming the SVG marker."@en ;
665
+ ] ;
666
+ .
667
+
668
+
669
+ #################################################################
670
+ # Type-level notation — NotationSet and VisualNotation
671
+ #################################################################
672
+
673
+ :VisualNotationShape
674
+ a sh:NodeShape ;
675
+ sh:targetClass arch-vis:VisualNotation ;
676
+ rdfs:label "VisualNotation shape"@en ;
677
+ sh:property [
678
+ sh:path arch-vis:notationFor ;
679
+ sh:minCount 1 ;
680
+ sh:maxCount 1 ;
681
+ sh:nodeKind sh:IRI ;
682
+ sh:message '''A VisualNotation describes exactly one ModelConcept, named by IRI through
683
+ arch-vis:notationFor. Without it the descriptor cannot be found by the palette generator
684
+ that needs it.'''@en ;
685
+ ] ;
686
+ sh:property [
687
+ sh:path arch-vis:inNotationSet ;
688
+ sh:minCount 1 ;
689
+ sh:nodeKind sh:IRI ;
690
+ sh:class arch-vis:NotationSet ;
691
+ sh:message '''A VisualNotation belongs to at least one NotationSet. A descriptor in no
692
+ set is unreachable: arch:notationSet and arch:usesNotationSet are the only routes into
693
+ it.'''@en ;
694
+ ] ;
695
+ sh:property [
696
+ sh:path arch-vis:defaultStyle ;
697
+ sh:maxCount 1 ;
698
+ sh:class arch-vis:Style ;
699
+ sh:message "arch-vis:defaultStyle points to at most one arch-vis:Style."@en ;
700
+ ] ;
701
+ sh:property [
702
+ sh:path arch-vis:alternativeStyle ;
703
+ sh:class arch-vis:Style ;
704
+ sh:message "arch-vis:alternativeStyle points to an arch-vis:Style: another figure the concept may be drawn as."@en ;
705
+ ] ;
706
+ sh:property [
707
+ sh:path arch-vis:labelAnchor ;
708
+ sh:maxCount 1 ;
709
+ sh:nodeKind sh:IRI ;
710
+ sh:class arch-vis:LabelAnchor ;
711
+ sh:message '''labelAnchor must be a single member of the LabelAnchor enumeration
712
+ (arch-vis:AnchorSource, AnchorMiddle, AnchorTarget).'''@en ;
713
+ ] ;
714
+ sh:property [
715
+ sh:path arch-vis:nestedEnd ;
716
+ sh:maxCount 2 ;
717
+ sh:in ( arch-vis:SourceEnd arch-vis:TargetEnd ) ;
718
+ sh:message "arch-vis:nestedEnd names the end drawn inside: arch-vis:SourceEnd, arch-vis:TargetEnd, or both."@en ;
719
+ ] ;
720
+ .
721
+
722
+
723
+ #################################################################
724
+ # Relationship line notation
725
+ #
726
+ # Targets arch:QualifiedRelationship because that is where core-vis puts
727
+ # lineStyle, sourceDecor and targetDecor. Cardinality and range only —
728
+ # no relationship is required to declare its own line notation, since the
729
+ # NotationSet supplies the default.
730
+ #################################################################
731
+
732
+ :RelationshipLineNotationShape
733
+ a sh:NodeShape ;
734
+ sh:targetClass arch:QualifiedRelationship ;
735
+ rdfs:label "Relationship line notation shape"@en ;
736
+ sh:property [
737
+ sh:path arch-vis:lineStyle ;
738
+ sh:maxCount 1 ;
739
+ sh:nodeKind sh:IRI ;
740
+ sh:class arch-vis:LineStyle ;
741
+ sh:message '''lineStyle must be a single member of the LineStyle enumeration
742
+ (arch-vis:SolidLine, arch-vis:DashedLine, arch-vis:DottedLine).'''@en ;
743
+ ] ;
744
+ sh:property [
745
+ sh:path arch-vis:sourceDecor ;
746
+ sh:maxCount 1 ;
747
+ sh:nodeKind sh:IRI ;
748
+ sh:class arch-vis:Decoration ;
749
+ sh:message "sourceDecor must be a single member of the Decoration enumeration."@en ;
750
+ ] ;
751
+ sh:property [
752
+ sh:path arch-vis:targetDecor ;
753
+ sh:maxCount 1 ;
754
+ sh:nodeKind sh:IRI ;
755
+ sh:class arch-vis:Decoration ;
756
+ sh:message "targetDecor must be a single member of the Decoration enumeration."@en ;
757
+ ] ;
758
+ .
759
+
760
+
761
+ #################################################################
762
+ # A notation's own shape — a fallback and its geometry
763
+ #################################################################
764
+
765
+ :NotationShapeTypeShape
766
+ a sh:NodeShape ;
767
+ rdfs:label "Notation shape type shape"@en ;
768
+ rdfs:comment '''A shape a notation declares with its geometry (arch-vis:outlinePath) names a
769
+ core shape to fall back to and gives each template once.'''@en ;
770
+ sh:targetSubjectsOf arch-vis:outlinePath ;
771
+ sh:class arch-vis:ShapeType ;
772
+ sh:property [
773
+ sh:path arch-vis:fallbackShape ;
774
+ sh:minCount 1 ;
775
+ sh:maxCount 1 ;
776
+ sh:in ( arch-vis:RoundedRectangle arch-vis:Rectangle arch-vis:Octagon arch-vis:Ellipse
777
+ arch-vis:Circle arch-vis:Hexagon arch-vis:Diamond arch-vis:Parallelogram ) ;
778
+ sh:message '''A notation's own shape names exactly one core shape as its arch-vis:fallbackShape,
779
+ for renderers that cannot draw it.'''@en ;
780
+ ] ;
781
+ sh:property [
782
+ sh:path arch-vis:outlinePath ;
783
+ sh:maxCount 1 ;
784
+ sh:datatype xsd:string ;
785
+ sh:message "arch-vis:outlinePath is a single path template (xsd:string)."@en ;
786
+ ] ;
787
+ sh:property [
788
+ sh:path arch-vis:detailPath ;
789
+ sh:maxCount 1 ;
790
+ sh:datatype xsd:string ;
791
+ sh:message "arch-vis:detailPath is a single path template (xsd:string)."@en ;
792
+ ] ;
793
+ sh:property [
794
+ sh:path arch-vis:shapeVariables ;
795
+ sh:maxCount 1 ;
796
+ sh:datatype xsd:string ;
797
+ sh:message "arch-vis:shapeVariables is a single string of assignments."@en ;
798
+ ] ;
799
+ sh:property [
800
+ sh:path arch-vis:contentBox ;
801
+ sh:maxCount 1 ;
802
+ sh:datatype xsd:string ;
803
+ sh:message 'arch-vis:contentBox is a single "x y width height" string.'@en ;
804
+ ] ;
805
+ sh:property [
806
+ sh:path arch-vis:labelBox ;
807
+ sh:maxCount 1 ;
808
+ sh:datatype xsd:string ;
809
+ sh:message 'arch-vis:labelBox is a single "x y width height" string.'@en ;
810
+ ] ;
811
+ .
812
+
813
+
814
+ #################################################################
815
+ # Label expressions (core-vis 0.7)
816
+ #
817
+ # What a label says, as text with placeholders: one expression, a string,
818
+ # and at most one presentation context it is for (core's
819
+ # arch:inPresentationContext). A diagram element's style, a concept's notation
820
+ # and a presentation context may each give label expressions.
821
+ #################################################################
822
+
823
+ :LabelExpressionShape
824
+ a sh:NodeShape ;
825
+ sh:targetClass arch-vis:LabelExpression ;
826
+ rdfs:label "LabelExpression shape"@en ;
827
+ sh:property [
828
+ sh:path arch-vis:expression ;
829
+ sh:minCount 1 ;
830
+ sh:maxCount 1 ;
831
+ sh:datatype xsd:string ;
832
+ sh:message "A LabelExpression has exactly one arch-vis:expression, a string: the label's text with its {…} placeholders."@en ;
833
+ ] ;
834
+ sh:property [
835
+ sh:path arch:inPresentationContext ;
836
+ sh:maxCount 1 ;
837
+ sh:nodeKind sh:IRI ;
838
+ sh:message "A LabelExpression is for at most one presentation context (arch:inPresentationContext); with none, for every one."@en ;
839
+ ] ;
840
+ .
841
+
842
+ :LabelExpressionUseShape
843
+ a sh:NodeShape ;
844
+ sh:targetSubjectsOf arch-vis:labelExpression ;
845
+ rdfs:label "Label expression use shape"@en ;
846
+ sh:property [
847
+ sh:path arch-vis:labelExpression ;
848
+ sh:class arch-vis:LabelExpression ;
849
+ sh:message "labelExpression points to an arch-vis:LabelExpression."@en ;
850
+ ] ;
851
+ .