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