@canonical/design-system 0.1.0 → 0.1.2

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 (313) hide show
  1. package/.github/ISSUE_TEMPLATE/propose-changes-to-existing-ui-block.md +14 -0
  2. package/.github/ISSUE_TEMPLATE/propose-new-ui-block.md +26 -0
  3. package/.github/PULL_REQUEST_TEMPLATE.md +13 -0
  4. package/.github/workflows/ci.yml +39 -0
  5. package/.github/workflows/sync-coda-manual.yml +12 -0
  6. package/.github/workflows/sync-coda-scheduled.yml +13 -0
  7. package/.github/workflows/sync-coda.yml +38 -0
  8. package/.mcp.json +6 -2
  9. package/GEMINI.md +2 -0
  10. package/README.md +71 -51
  11. package/biome.json +1 -1
  12. package/bun.lock +38 -35
  13. package/data/apps/component/file_tree.ttl +6 -7
  14. package/data/apps/component/key_value_pair.ttl +6 -7
  15. package/data/apps/component/navigation.ttl +6 -7
  16. package/data/apps/component/notification.ttl +7 -0
  17. package/data/apps/component/skeleton_loading.ttl +6 -7
  18. package/data/apps/component/status_bar.ttl +6 -7
  19. package/data/apps/component/toolbar.ttl +6 -7
  20. package/data/apps/group/notifications.ttl +7 -0
  21. package/data/apps/layout/application_layout.ttl +8 -7
  22. package/data/apps/layout/content_layout.ttl +9 -0
  23. package/data/apps/layout/empty_layout.ttl +6 -7
  24. package/data/apps/layout/list_page_layout.ttl +6 -7
  25. package/data/apps/layout/settings_page_layout.ttl +6 -7
  26. package/data/apps/layout/view_layout.ttl +9 -0
  27. package/data/apps/pattern/code_diff.ttl +6 -7
  28. package/data/apps/pattern/data_table.ttl +6 -7
  29. package/data/apps/pattern/destructive_modal.ttl +6 -7
  30. package/data/apps/pattern/key_value_summary.ttl +6 -7
  31. package/data/apps/pattern/keyboard_shortcuts.ttl +6 -7
  32. package/data/apps/pattern/notification_center.ttl +6 -7
  33. package/data/apps/pattern/side_panel.ttl +6 -7
  34. package/data/apps/pattern/sidepanel_stacked.ttl +6 -7
  35. package/data/apps/subcomponent/file_tree-node.ttl +7 -0
  36. package/data/apps.ttl +3 -4
  37. package/data/apps_anbox/component/copy_to_clipboard.ttl +7 -0
  38. package/data/apps_anbox/pattern/side_menu.ttl +13 -0
  39. package/data/apps_anbox.ttl +4 -0
  40. package/data/apps_juju/pattern/single_select_multi_layered.ttl +7 -0
  41. package/data/apps_juju.ttl +4 -0
  42. package/data/apps_landscape/component/password_constraints.ttl +32 -0
  43. package/data/apps_landscape.ttl +4 -0
  44. package/data/apps_launchpad/component/badge.ttl +23 -0
  45. package/data/apps_launchpad/component/breadcrumbs.ttl +14 -0
  46. package/data/apps_launchpad/component/button.ttl +35 -0
  47. package/data/apps_launchpad/component/checkbox.ttl +28 -0
  48. package/data/apps_launchpad/component/chip.ttl +42 -0
  49. package/data/apps_launchpad/component/combobox.ttl +52 -0
  50. package/data/apps_launchpad/component/description_list.ttl +13 -0
  51. package/data/apps_launchpad/component/radio.ttl +34 -0
  52. package/data/apps_launchpad/component/select.ttl +34 -0
  53. package/data/apps_launchpad/component/switch.ttl +21 -0
  54. package/data/apps_launchpad/component/text_input.ttl +36 -0
  55. package/data/apps_launchpad/component/textarea.ttl +35 -0
  56. package/data/apps_launchpad/component/tooltip.ttl +28 -0
  57. package/data/apps_launchpad/component/user_avatar.ttl +25 -0
  58. package/data/apps_launchpad/subcomponent/combobox-checkbox_option.ttl +29 -0
  59. package/data/apps_launchpad/subcomponent/combobox-footer.ttl +13 -0
  60. package/data/apps_launchpad/subcomponent/combobox-group.ttl +20 -0
  61. package/data/apps_launchpad/subcomponent/combobox-helper.ttl +19 -0
  62. package/data/apps_launchpad/subcomponent/combobox-loading.ttl +13 -0
  63. package/data/apps_launchpad/subcomponent/combobox-no_results.ttl +13 -0
  64. package/data/apps_launchpad/subcomponent/combobox-radio_option.ttl +29 -0
  65. package/data/apps_launchpad/subcomponent/combobox-search.ttl +22 -0
  66. package/data/apps_launchpad/subcomponent/description_list-item.ttl +19 -0
  67. package/data/apps_launchpad.ttl +4 -0
  68. package/data/apps_lxd/component/confirmation_checkbox.ttl +7 -0
  69. package/data/apps_lxd/component/copy_to_clipboard.ttl +7 -0
  70. package/data/apps_lxd/view/network_topology.ttl +7 -0
  71. package/data/apps_lxd.ttl +4 -0
  72. package/data/apps_portal/component/badge.ttl +7 -0
  73. package/data/apps_portal.ttl +4 -0
  74. package/data/apps_workplace/component/label-highlight.ttl +7 -0
  75. package/data/apps_workplace.ttl +4 -0
  76. package/data/apps_wpe.ttl +3 -4
  77. package/data/documentation/layout/documentation_layout.ttl +6 -7
  78. package/data/documentation/pattern/library_side_navigation.ttl +7 -0
  79. package/data/documentation.ttl +3 -4
  80. package/data/global/component/accordion.ttl +11 -12
  81. package/data/global/component/announcement.ttl +6 -7
  82. package/data/global/component/badge.ttl +7 -8
  83. package/data/global/component/breadcrumbs.ttl +13 -0
  84. package/data/global/component/button.ttl +29 -17
  85. package/data/global/component/button_link.ttl +7 -0
  86. package/data/global/component/card.ttl +6 -7
  87. package/data/global/component/chip.ttl +6 -7
  88. package/data/global/component/code.ttl +7 -0
  89. package/data/global/component/code_snippet-content.ttl +7 -0
  90. package/data/global/component/code_snippet-header.ttl +7 -0
  91. package/data/global/component/code_snippet.ttl +6 -7
  92. package/data/global/component/contextual_menu.ttl +6 -7
  93. package/data/global/component/heading.ttl +12 -12
  94. package/data/global/component/icon.ttl +12 -12
  95. package/data/global/component/icon_in_container.ttl +6 -7
  96. package/data/global/component/keyboard_key.ttl +6 -7
  97. package/data/global/component/label.ttl +12 -13
  98. package/data/global/component/notification_inline.ttl +6 -7
  99. package/data/global/component/notification_toast.ttl +6 -7
  100. package/data/global/component/pagination.ttl +6 -7
  101. package/data/global/component/popover.ttl +6 -7
  102. package/data/global/component/rich_text_editor.ttl +6 -7
  103. package/data/global/component/search_bar.ttl +6 -7
  104. package/data/global/component/table.ttl +6 -7
  105. package/data/global/component/tabs.ttl +6 -7
  106. package/data/global/component/theme_switcher.ttl +6 -7
  107. package/data/global/component/tile.ttl +11 -12
  108. package/data/global/component/tooltip.ttl +201 -7
  109. package/data/global/group/buttons.ttl +6 -7
  110. package/data/global/group/cards.ttl +6 -7
  111. package/data/global/group/code_snippets.ttl +7 -0
  112. package/data/global/group/keyboard_keys.ttl +7 -0
  113. package/data/global/group/tiles.ttl +6 -7
  114. package/data/global/layout/error_layout.ttl +6 -7
  115. package/data/global/layout/form_layout.ttl +6 -7
  116. package/data/global/layout/identity_page_form.ttl +6 -7
  117. package/data/global/modifier/alpha.ttl +5 -5
  118. package/data/global/modifier/beta.ttl +5 -5
  119. package/data/global/modifier/caution.ttl +5 -5
  120. package/data/global/modifier/comfortable.ttl +5 -5
  121. package/data/global/modifier/completed.ttl +5 -5
  122. package/data/global/modifier/constructive.ttl +5 -5
  123. package/data/global/modifier/dark.ttl +5 -5
  124. package/data/global/modifier/dense.ttl +5 -5
  125. package/data/global/modifier/destructive.ttl +5 -5
  126. package/data/global/modifier/editable.ttl +5 -5
  127. package/data/global/modifier/elevated.ttl +5 -5
  128. package/data/global/modifier/error.ttl +5 -5
  129. package/data/global/modifier/experimental.ttl +5 -5
  130. package/data/global/modifier/failed.ttl +5 -5
  131. package/data/global/modifier/focused.ttl +5 -5
  132. package/data/global/modifier/highlighted.ttl +5 -5
  133. package/data/global/modifier/in_progress.ttl +5 -5
  134. package/data/global/modifier/information.ttl +5 -5
  135. package/data/global/modifier/light.ttl +5 -5
  136. package/data/global/modifier/loading.ttl +5 -5
  137. package/data/global/modifier/muted.ttl +5 -5
  138. package/data/global/modifier/paper.ttl +5 -5
  139. package/data/global/modifier/planned.ttl +5 -5
  140. package/data/global/modifier/primary.ttl +5 -5
  141. package/data/global/modifier/secondary.ttl +5 -5
  142. package/data/global/modifier/stable.ttl +5 -5
  143. package/data/global/modifier/success.ttl +5 -5
  144. package/data/global/modifier/tertiary.ttl +5 -5
  145. package/data/global/modifier/warning.ttl +5 -5
  146. package/data/global/modifier/wireframe.ttl +5 -5
  147. package/data/global/modifier_family/_color_luminosity.ttl +5 -6
  148. package/data/global/modifier_family/_emphasis.ttl +5 -6
  149. package/data/global/modifier_family/_other.ttl +5 -6
  150. package/data/global/modifier_family/anticipation.ttl +5 -6
  151. package/data/global/modifier_family/criticality.ttl +5 -6
  152. package/data/global/modifier_family/density.ttl +5 -6
  153. package/data/global/modifier_family/importance.ttl +5 -6
  154. package/data/global/modifier_family/lifecycle.ttl +5 -6
  155. package/data/global/modifier_family/release.ttl +5 -6
  156. package/data/global/pattern/dropdown_button.ttl +7 -0
  157. package/data/global/pattern/info_table.ttl +6 -7
  158. package/data/global/pattern/modal.ttl +6 -7
  159. package/data/global/pattern/navigation.ttl +6 -7
  160. package/data/global/pattern/stepper.ttl +6 -7
  161. package/data/global/pattern/table_of_contents.ttl +6 -7
  162. package/data/global/pattern/timeline.ttl +64 -12
  163. package/data/global/subcomponent/accordion-item.ttl +15 -16
  164. package/data/global/subcomponent/breadcrumbs-item.ttl +15 -16
  165. package/data/global/subcomponent/card-content.ttl +11 -12
  166. package/data/global/subcomponent/card-header.ttl +11 -12
  167. package/data/global/subcomponent/card-image.ttl +16 -17
  168. package/data/global/subcomponent/card-thumbnail.ttl +7 -0
  169. package/data/global/subcomponent/divider.ttl +6 -7
  170. package/data/global/subcomponent/modal-content.ttl +6 -7
  171. package/data/global/subcomponent/modal-footer.ttl +6 -7
  172. package/data/global/subcomponent/modal-header.ttl +6 -7
  173. package/data/global/subcomponent/spinner.ttl +6 -7
  174. package/data/global/subcomponent/table-cell.ttl +6 -7
  175. package/data/global/subcomponent/table-row.ttl +6 -7
  176. package/data/global/subcomponent/tile-content.ttl +11 -12
  177. package/data/global/subcomponent/tile-header.ttl +11 -12
  178. package/data/global/subcomponent/timeline-content.ttl +11 -12
  179. package/data/global/subcomponent/timeline-event.ttl +42 -27
  180. package/data/global/subcomponent/timeline-expansion_indicator.ttl +7 -0
  181. package/data/global/subcomponent/timeline-header.ttl +6 -7
  182. package/data/global/view/settings_view.ttl +7 -0
  183. package/data/global.ttl +3 -4
  184. package/data/global_form/component/checkbox_input.ttl +6 -7
  185. package/data/global_form/component/choices_input.ttl +6 -7
  186. package/data/global_form/component/combobox_input.ttl +6 -7
  187. package/data/global_form/component/custom_choices_input.ttl +6 -7
  188. package/data/global_form/component/datepicker_input.ttl +6 -7
  189. package/data/global_form/component/rating_input.ttl +6 -7
  190. package/data/global_form/component/rich_text_input.ttl +7 -0
  191. package/data/global_form/component/segmented_control_input.ttl +6 -7
  192. package/data/global_form/component/slider_input.ttl +6 -7
  193. package/data/global_form/component/switch_input.ttl +6 -7
  194. package/data/global_form/component/text_input.ttl +6 -7
  195. package/data/global_form/component/textarea_input.ttl +6 -7
  196. package/data/global_form/component/wysiwginput.ttl +6 -7
  197. package/data/global_form/pattern/field.ttl +6 -7
  198. package/data/global_form/pattern/form.ttl +6 -7
  199. package/data/global_form/subcomponent/field-description.ttl +6 -7
  200. package/data/global_form/subcomponent/field-label.ttl +6 -7
  201. package/data/global_form.ttl +3 -4
  202. package/data/site/component/blog_card.ttl +7 -0
  203. package/data/site/component/quote.ttl +6 -7
  204. package/data/site/component/rule.ttl +6 -7
  205. package/data/site/component/section.ttl +6 -7
  206. package/data/site/group/blog_cards.ttl +7 -0
  207. package/data/site/layout/blog_page_layout.ttl +7 -0
  208. package/data/site/layout/case_study_layout.ttl +7 -0
  209. package/data/site/layout/site_layout.ttl +6 -7
  210. package/data/site/pattern/hero-github.ttl +6 -7
  211. package/data/site/pattern/hero.ttl +6 -7
  212. package/data/site/pattern/info_table.ttl +6 -7
  213. package/data/site/pattern/pricing_section.ttl +7 -0
  214. package/data/site/pattern/pricing_table.ttl +7 -0
  215. package/data/site/pattern/read_more_section.ttl +7 -0
  216. package/data/site/pattern/skip_link.ttl +6 -7
  217. package/data/site.ttl +3 -4
  218. package/data/sites_webcomponentsprototype/component/blog_cards.ttl +7 -0
  219. package/data/sites_webcomponentsprototype/component/ctablock.ttl +7 -0
  220. package/data/sites_webcomponentsprototype/component/list.ttl +7 -0
  221. package/data/sites_webcomponentsprototype/component/tabs.ttl +7 -0
  222. package/data/sites_webcomponentsprototype/layout/site_layout.ttl +8 -0
  223. package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +7 -0
  224. package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +7 -0
  225. package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +7 -0
  226. package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +7 -0
  227. package/data/sites_webcomponentsprototype/pattern/hero.ttl +7 -0
  228. package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +7 -0
  229. package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +7 -0
  230. package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +7 -0
  231. package/data/sites_webcomponentsprototype.ttl +4 -0
  232. package/data/stores.ttl +3 -4
  233. package/definitions/ontology.ttl +132 -171
  234. package/package.json +8 -8
  235. package/skills/anatomy-author/SKILL.md +14 -9
  236. package/skills/component-specifier/SKILL.md +84 -85
  237. package/skills/design-auditor/SKILL.md +50 -45
  238. package/source.json +40 -33
  239. package/src/cli.ts +33 -33
  240. package/src/collect/generateTurtle.tests.ts +181 -193
  241. package/src/collect/generateTurtle.ts +189 -138
  242. package/src/collect/index.ts +5 -2
  243. package/src/collect/scanAnnotations.tests.ts +116 -110
  244. package/src/collect/scanAnnotations.ts +35 -33
  245. package/src/collect/types.ts +34 -33
  246. package/src/collect/validateCollectConfig.tests.ts +135 -112
  247. package/src/collect/validateCollectConfig.ts +60 -54
  248. package/src/collect-implementations.ts +101 -88
  249. package/src/commands/extract.tests.ts +31 -32
  250. package/src/commands/extract.ts +29 -27
  251. package/src/commands/index.ts +1 -1
  252. package/src/commands/list.tests.ts +13 -14
  253. package/src/commands/list.ts +9 -9
  254. package/src/commands/transform.tests.ts +21 -21
  255. package/src/commands/transform.ts +127 -99
  256. package/src/config/source.schema.json +9 -0
  257. package/src/config/types.ts +40 -33
  258. package/src/config/validateConfig.tests.ts +31 -31
  259. package/src/config/validateConfig.ts +9 -9
  260. package/src/constants.ts +7 -9
  261. package/src/graph/GraphStore.tests.ts +111 -111
  262. package/src/graph/GraphStore.ts +205 -189
  263. package/src/graph/PrefixMap.tests.ts +124 -122
  264. package/src/graph/PrefixMap.ts +77 -77
  265. package/src/graph/buildUri.tests.ts +119 -106
  266. package/src/graph/buildUri.ts +47 -35
  267. package/src/graph/index.ts +2 -2
  268. package/src/graph/types.ts +3 -3
  269. package/src/providers/CodaProvider.tests.ts +233 -233
  270. package/src/providers/CodaProvider.ts +145 -145
  271. package/src/providers/CodaProvider.types.generated.ts +12484 -12123
  272. package/src/providers/index.ts +13 -13
  273. package/src/serializers/JSONSerializer.tests.ts +65 -68
  274. package/src/serializers/JSONSerializer.ts +51 -51
  275. package/src/serializers/TTLSerializer.tests.ts +46 -48
  276. package/src/serializers/TTLSerializer.ts +66 -59
  277. package/src/serializers/index.ts +4 -1
  278. package/src/serializers/types.ts +3 -3
  279. package/src/transform/resolveReferences.tests.ts +47 -43
  280. package/src/transform/resolveReferences.ts +18 -18
  281. package/src/transform/resolveValue.tests.ts +55 -49
  282. package/src/transform/resolveValue.ts +48 -48
  283. package/src/transform/transform.tests.ts +90 -79
  284. package/src/transform/transform.ts +77 -75
  285. package/src/transform/transformRow.tests.ts +373 -258
  286. package/src/transform/transformRow.ts +228 -173
  287. package/src/transform/types.ts +4 -4
  288. package/tsconfig.json +2 -1
  289. package/data/global/component/link.ttl +0 -8
  290. package/data/global/pattern/breadcrumbs.ttl +0 -14
  291. package/data/global/pattern/select_button.ttl +0 -8
  292. package/data/global/subcomponent/timeline-footer.ttl +0 -8
  293. package/session/A.DSL.md +0 -429
  294. package/session/B.NOTES.md +0 -84
  295. package/session/global.component.accordion.yaml +0 -13
  296. package/session/global.component.button.yaml +0 -26
  297. package/session/global.component.card.yaml +0 -24
  298. package/session/global.component.icon.yaml +0 -7
  299. package/session/global.component.label.yaml +0 -7
  300. package/session/global.component.tile.yaml +0 -21
  301. package/session/global.component.timeline.yaml +0 -20
  302. package/session/global.pattern.breadcrumbs.yaml +0 -13
  303. package/session/global.subcomponent.accordion-item.yaml +0 -37
  304. package/session/global.subcomponent.breadcrumbs-item.yaml +0 -21
  305. package/session/global.subcomponent.card-content.yaml +0 -7
  306. package/session/global.subcomponent.card-header.yaml +0 -22
  307. package/session/global.subcomponent.card-image.yaml +0 -7
  308. package/session/global.subcomponent.tile-content.yaml +0 -7
  309. package/session/global.subcomponent.tile-header.yaml +0 -8
  310. package/session/global.subcomponent.timeline-content.yaml +0 -13
  311. package/session/global.subcomponent.timeline-event.yaml +0 -20
  312. package/session/global.subcomponent.timeline-footer.yaml +0 -9
  313. package/session/global.subcomponent.timeline-header.yaml +0 -18
@@ -7,12 +7,12 @@
7
7
 
8
8
  # Ontology Declaration
9
9
  ds: a owl:Ontology ;
10
- owl:versionInfo "2.0.0" ;
10
+ owl:versionInfo "3.0.0" ;
11
11
  rdfs:label "Design System Ontology" ;
12
12
  skos:definition "OWL ontology for UI design system based on schema diagram" .
13
13
 
14
14
  ###############################################################################
15
- # METADATA PROPERTY FOR ACCEPTANCE CRITERIA
15
+ # METADATA PROPERTIES
16
16
  ###############################################################################
17
17
 
18
18
  ds:acceptanceCriteria
@@ -22,18 +22,16 @@ ds:acceptanceCriteria
22
22
  rdfs:domain rdf:Property ;
23
23
  rdfs:range xsd:string .
24
24
 
25
+ ds:completionGuidance
26
+ a owl:AnnotationProperty ;
27
+ rdfs:label "completionGuidance" ;
28
+ skos:definition "Completion guidance for this property. This will be shown in an interface for the contributors." ;
29
+ rdfs:domain rdf:Property ;
30
+ rdfs:range xsd:string .
25
31
 
26
- ####
32
+ ###############################################################################
27
33
  # DATATYPES
28
- ####
29
-
30
- ds:URIString
31
- a rdfs:Datatype ;
32
- owl:onDatatype xsd:string ;
33
- owl:withRestrictions (
34
- [ xsd:pattern "^ds:[a-zA-Z]+:[a-zA-Z]+:[a-zA-Z][a-zA-Z0-9]*:[0-9]+\\.[0-9]+\\.[0-9]+(-[a-zA-Z0-9]+)?(\\+[a-zA-Z0-9]+)?$" ]
35
- ) ;
36
- skos:definition "URI string following pattern ds:[tier]:[class]:[name]:[version]" .
34
+ ###############################################################################
37
35
 
38
36
  ds:SemverString
39
37
  a rdfs:Datatype ;
@@ -43,16 +41,20 @@ ds:SemverString
43
41
  ) ;
44
42
  skos:definition "Semantic version string following semver specification (MAJOR.MINOR.PATCH)" .
45
43
 
46
-
47
-
48
44
  ###############################################################################
49
45
  # 1. CORE CLASSES
50
46
  ###############################################################################
51
47
 
48
+ ds:Entity
49
+ a owl:Class ;
50
+ rdfs:label "Entity" ;
51
+ skos:definition "Abstract root class for all design system entities. Provides common properties (name, summary) inherited by all classes." .
52
+
52
53
  ds:UIElement
53
54
  a owl:Class ;
55
+ rdfs:subClassOf ds:Entity ;
54
56
  rdfs:label "UI Element" ;
55
- skos:definition "Root class for all design system entities" .
57
+ skos:definition "Base class for all visual and interactive design system elements" .
56
58
 
57
59
  ds:UIBlock
58
60
  a owl:Class ;
@@ -86,7 +88,7 @@ ds:Subcomponent
86
88
  a owl:Class ;
87
89
  rdfs:subClassOf ds:UIBlock ;
88
90
  rdfs:label "Subcomponent" ;
89
- skos:definition "" . #TODO
91
+ skos:definition "A named part of a Component that has design-system identity but is typically not used independently outside its parent" .
90
92
 
91
93
  ###############################################################################
92
94
  # 3. OTHER CORE CLASSES
@@ -96,7 +98,7 @@ ds:Modifier
96
98
  a owl:Class ;
97
99
  rdfs:subClassOf ds:UIElement ;
98
100
  rdfs:label "Modifier" ;
99
- skos:definition "" . #TODO
101
+ skos:definition "A named variant value within a ModifierFamily that alters the appearance or behaviour of a UIBlock (e.g. 'primary', 'secondary' within the 'importance' family)" .
100
102
 
101
103
  ds:ModifierFamily
102
104
  a owl:Class ;
@@ -106,85 +108,70 @@ ds:ModifierFamily
106
108
 
107
109
  ds:Property
108
110
  a owl:Class ;
111
+ rdfs:subClassOf ds:Entity ;
109
112
  rdfs:label "Property" ;
110
113
  skos:definition "A configurable property of a UI Block" .
111
114
 
112
- ds:Token
113
- a owl:Class ;
114
- rdfs:label "Token" ;
115
- skos:definition "" . #TODO
116
-
117
115
  ds:Tier
118
116
  a owl:Class ;
117
+ rdfs:subClassOf ds:Entity ;
119
118
  rdfs:label "Tier" ;
120
- skos:definition "" . #TODO
121
-
122
- ds:Label
123
- a owl:Class ;
124
- rdfs:label "Label" ;
125
- skos:definition "" . #TODO
119
+ skos:definition "A scope level in the design system hierarchy that determines where UIBlocks are intended to be used (e.g. global, apps, site)" .
126
120
 
127
121
  ds:ImplementationObject
128
122
  a owl:Class ;
123
+ rdfs:subClassOf ds:Entity ;
129
124
  rdfs:label "Implementation Object" ;
130
125
  skos:definition "Platform-specific implementation of a UI Block" .
131
126
 
132
127
  ds:ImplementationLibrary
133
128
  a owl:Class ;
129
+ rdfs:subClassOf ds:Entity ;
134
130
  rdfs:label "Implementation Library" ;
135
- skos:definition "" . #TODO
136
-
137
- ds:Affordance
138
- a owl:Class ;
139
- rdfs:label "Affordance" ;
140
- skos:definition "" . #TODO
131
+ skos:definition "A code library or package that provides platform-specific implementations of UIBlocks" .
141
132
 
142
133
  ###############################################################################
143
- # 4. PROPERTIES - UIElement Base Properties
134
+ # 4. PROPERTIES - Entity Base Properties
144
135
  ###############################################################################
145
136
 
146
137
  ds:name
147
138
  a owl:DatatypeProperty ;
148
- rdfs:domain ds:UIElement ;
139
+ rdfs:domain ds:Entity ;
149
140
  rdfs:range xsd:string ;
150
141
  rdfs:label "name" ;
151
- skos:definition "" ; #TODO
152
- ds:acceptanceCriteria "" . #TODO
142
+ skos:definition "A human-readable text for the entity. The primary identifier, used for referencing and display purposes." ;
143
+ ds:acceptanceCriteria "Must be a concise, descriptive name that clearly identifies the entity. Should be unique within the design system and avoid generic terms like 'button' or 'input' without context." ;
144
+ ds:completionGuidance "Provide a clear and descriptive name for the entity that accurately reflects its purpose and functionality within the design system." .
153
145
 
154
- ds:description
146
+ ds:summary
155
147
  a owl:DatatypeProperty ;
156
- rdfs:domain ds:UIElement ;
148
+ rdfs:domain ds:Entity ;
157
149
  rdfs:range xsd:string ;
158
- rdfs:label "description" ;
159
- skos:definition "" ; #TODO
160
- ds:acceptanceCriteria "" . #TODO
150
+ rdfs:label "summary" ;
151
+ skos:definition "A comprehensive paragraph of text that states the singular purpose of the entity." ;
152
+ ds:acceptanceCriteria "Concise paragraph (3-5 sentences) that clearly describes the purpose of the entity, lists at least 2-3 use cases, and is written in a clear and accessible way. Enables readers to quickly determine if this is the right component for their needs." ;
153
+ ds:completionGuidance "Write an introduction that gives a quick overview of the entity. Start with the primary purpose and list all the main use cases. Make sure to include information that can help users decide if this is the right element they need." .
161
154
 
162
155
  ds:version
163
156
  a owl:DatatypeProperty, owl:FunctionalProperty ;
164
- rdfs:domain ds:UIElement ;
157
+ rdfs:domain ds:Entity ;
165
158
  rdfs:range ds:SemverString ;
166
159
  rdfs:label "version" ;
167
- skos:definition "Semantic version of the UI element following semver specification" ;
168
- ds:acceptanceCriteria "Must follow semantic versioning format: MAJOR.MINOR.PATCH with optional pre-release and build metadata" .
169
-
170
- ds:uri
171
- a owl:DatatypeProperty, owl:InverseFunctionalProperty ;
172
- rdfs:domain ds:UIElement ;
173
- rdfs:range ds:URIString ;
174
- rdfs:label "URI" ;
175
- skos:definition "Unique identifier for the UI element" ;
176
- ds:acceptanceCriteria "" . #TODO
160
+ skos:definition "Semantic version of the entity following semver specification" ;
161
+ ds:acceptanceCriteria "Must follow semantic versioning format: MAJOR.MINOR.PATCH with optional pre-release and build metadata" ;
162
+ ds:completionGuidance "Provide a semantic version number following the MAJOR.MINOR.PATCH format (e.g., 1.0.0, 2.1.3). Include optional pre-release identifiers (e.g., 1.0.0-alpha) and build metadata (e.g., 1.0.0+build.123456789)." .
177
163
 
178
164
  ds:decisionLog
179
165
  a owl:DatatypeProperty ;
180
- rdfs:domain ds:UIElement ;
166
+ rdfs:domain ds:Entity ;
181
167
  rdfs:range xsd:string ;
182
168
  rdfs:label "decisionLog" ;
183
169
  skos:definition "Log of decisions with [date][author][content]" ;
184
- ds:acceptanceCriteria "[date] Contains the date of the decision made, [author] Links to the decision maker, [content] Contains the reasons of change, is clear on what the change is" .
170
+ ds:acceptanceCriteria "[date] Contains the date of the decision made, [author] Links to the decision maker, [content] Contains the reasons of change, is clear on what the change is" ;
171
+ ds:completionGuidance "Document any decisions made regarding the entity, including the date of the decision, the author responsible for the decision, and a clear explanation of the change or decision made. This log helps maintain a history of changes and the rationale behind them." .
185
172
 
186
173
  ###############################################################################
187
- # 6. PROPERTIES - UIBlock Specific
174
+ # 5. PROPERTIES - UIBlock Specific
188
175
  ###############################################################################
189
176
 
190
177
  ds:tier
@@ -193,39 +180,24 @@ ds:tier
193
180
  rdfs:range ds:Tier ;
194
181
  rdfs:label "tier" ;
195
182
  skos:definition "The tier to which the UI block belongs to" ;
196
- ds:acceptanceCriteria "" . #TODO
197
-
198
- ds:nextRequiredStep
199
- a owl:DatatypeProperty ;
200
- rdfs:domain ds:UIBlock ;
201
- rdfs:range xsd:string ;
202
- rdfs:label "nextRequiredStep" ;
203
- skos:definition "" ; #TODO
204
- ds:acceptanceCriteria "" . #TODO
183
+ ds:acceptanceCriteria "Has to be mandatory and singular. Must be one of the predefined tier values (core, global, global_form, apps, site, etc.)." ;
184
+ ds:completionGuidance "Assign the UI block to a specific tier within the design system. Choose from predefined tier values such as core, global, global_form, apps, site, etc. This property is mandatory and should have only one value." .
205
185
 
206
186
  ds:figmaLink
207
187
  a owl:DatatypeProperty ;
208
188
  rdfs:domain ds:UIBlock ;
209
189
  rdfs:range xsd:anyURI ;
210
190
  rdfs:label "figmaLink" ;
211
- skos:definition "" ; #TODO
212
- ds:acceptanceCriteria "" . #TODO
213
-
214
- ds:wireframeLink
215
- a owl:DatatypeProperty ;
216
- rdfs:domain ds:UIBlock ;
217
- rdfs:range xsd:anyURI ;
218
- rdfs:label "wireframeLink" ;
219
- skos:definition "" ; #TODO
220
- ds:acceptanceCriteria "" . #TODO
191
+ skos:definition "Link to the Figma design file for this UI block" ;
192
+ ds:acceptanceCriteria "Must be a valid URL pointing to the Figma design file for this UI block. The URL should be accessible and correctly formatted." .
221
193
 
222
194
  ds:anatomyClassic
223
195
  a owl:DatatypeProperty ;
224
196
  rdfs:domain ds:UIBlock ;
225
197
  rdfs:range xsd:string ;
226
198
  rdfs:label "anatomyClassic" ;
227
- skos:definition "Legacy anatomy field (free-form text). Superseded by ds:anatomyDsl." ;
228
- ds:acceptanceCriteria "" . #TODO
199
+ skos:definition "DEPRECATED. Legacy anatomy field (free-form text). Superseded by ds:anatomyDsl." ;
200
+ ds:acceptanceCriteria "Identifies all significant UI block parts and their relationships. Parts are decomposed only to the level where they are meaningful and reusable (e.g., if a component is made of other published components, reference those components instead of redescribing them). Each part is assigned a descriptive name, visual slot and description of its role in the overall component structure. Relationships between parts are documented: cardinality (1, 0..1, 1..*) and nesting (which parts are contained within others). Includes visual annotations or diagrams showing the anatomical structure. Both visual representation and text list align and describe the same parts. No orphaned or unnamed parts—every element in the anatomy is accounted for" .
229
201
 
230
202
  ds:anatomyDsl
231
203
  a owl:DatatypeProperty ;
@@ -240,68 +212,32 @@ ds:whenToUse
240
212
  rdfs:domain ds:UIBlock ;
241
213
  rdfs:range xsd:string ;
242
214
  rdfs:label "whenToUse" ;
243
- skos:definition "" ; #TODO
244
- ds:acceptanceCriteria "" . #TODO
215
+ skos:definition "Describes the use cases and contexts where this UI block is most appropriate. Provides guidance for deciding when to use and when not to use the component." ;
216
+ ds:acceptanceCriteria "Must be a clear and concise description of when this UI block should be used. Should include all possible use cases where the component is appropriate. Each use case should be clearly defined and distinct from others. All variants of the UI block should be considered in this description. Examples should be taken from real-world and released usage scenarios to illustrate the use cases effectively." ;
217
+ ds:completionGuidance "Provide a clear and concise description of the use cases and contexts where this UI block is most appropriate. Include all possible scenarios where the component should be used, ensuring that each use case is clearly defined and distinct from others. This information will help users understand when to choose this component for their design needs. All variants of the UI block should be considered in this description. All examples should be taken from real-world and released usage scenarios." .
245
218
 
246
219
  ds:whenNotToUse
247
220
  a owl:DatatypeProperty ;
248
221
  rdfs:domain ds:UIBlock ;
249
222
  rdfs:range xsd:string ;
250
223
  rdfs:label "whenNotToUse" ;
251
- skos:definition "" ; #TODO
252
- ds:acceptanceCriteria "" . #TODO
253
-
254
- ds:properties
255
- a owl:DatatypeProperty ;
256
- rdfs:domain ds:UIBlock ;
257
- rdfs:range xsd:string ;
258
- rdfs:label "properties" ;
259
- skos:definition "" ; #TODO
260
- ds:acceptanceCriteria "" . #TODO
224
+ skos:definition "Describes the use cases and contexts where this UI block is NOT appropriate. Provides guidance for deciding when NOT to use the component and what to use instead." ;
225
+ ds:acceptanceCriteria "Must be a clear and concise description of when this UI block should NOT be used. Should include all possible use cases where the component is inappropriate. Each use case should be clearly defined and distinct from others. All variants of the UI block should be considered in this description. Examples should be taken from real-world and released usage scenarios to illustrate the use cases effectively." ;
226
+ ds:completionGuidance "Provide a clear and concise description of the use cases and contexts where this UI block is NOT appropriate. Include all reasonable possible scenarios where the component should not be used, ensuring that each use case is clearly defined and distinct from others. This information will help users understand when NOT to choose this component for their design needs. All variants of the UI block should be considered in this description. All examples should be taken from real-world and released usage scenarios." .
261
227
 
262
228
  ds:guidelines
263
229
  a owl:DatatypeProperty ;
264
230
  rdfs:domain ds:UIBlock ;
265
231
  rdfs:range xsd:string ;
266
232
  rdfs:label "guidelines" ;
267
- skos:definition "" ; #TODO
268
- ds:acceptanceCriteria "" . #TODO
269
-
270
- ds:variants
271
- a owl:DatatypeProperty ;
272
- rdfs:domain ds:UIBlock ;
273
- rdfs:range xsd:string ;
274
- rdfs:label "variants" ;
275
- skos:definition "" ; #TODO
276
- ds:acceptanceCriteria "" . #TODO
233
+ skos:definition "Detailed specification for correctly using and implementing the UI block." ;
234
+ ds:acceptanceCriteria "These guidelines should contain the best practices for accessibility, responsiveness, content handling, localization, animation and keyboard interaction of this UI block. They should be comprehensive and cover all important aspects of using and implementing the component correctly." ;
235
+ ds:completionGuidance "Provide detailed guidelines for correctly using and implementing the UI block. Include best practices for accessibility, responsiveness, content handling, localization, animation, and keyboard interaction. Ensure that the guidelines are comprehensive and cover all important aspects of using and implementing the component correctly." .
277
236
 
278
237
  ###############################################################################
279
- # 7. PROPERTIES - Relationships
238
+ # 6. PROPERTIES - Relationships
280
239
  ###############################################################################
281
240
 
282
- ds:usesToken
283
- a owl:ObjectProperty ;
284
- rdfs:domain ds:UIBlock ;
285
- rdfs:range ds:Token ;
286
- rdfs:label "usesToken" ;
287
- skos:definition "" ; #TODO
288
- ds:acceptanceCriteria "" . #TODO
289
-
290
- ds:hasAffordance
291
- a owl:ObjectProperty ;
292
- rdfs:domain ds:UIBlock ;
293
- rdfs:range ds:Affordance ;
294
- rdfs:label "hasAffordance" ;
295
- skos:definition "" . #TODO
296
-
297
- ds:hasLabel
298
- a owl:ObjectProperty ;
299
- rdfs:domain ds:UIBlock ;
300
- rdfs:range ds:Label ;
301
- rdfs:label "hasLabel" ;
302
- skos:definition "" ; #TODO
303
- ds:acceptanceCriteria "" . #TODO
304
-
305
241
  ds:hasModifierFamily
306
242
  a owl:ObjectProperty ;
307
243
  rdfs:domain ds:UIBlock ;
@@ -331,15 +267,8 @@ ds:hasModifier
331
267
  rdfs:label "hasModifier" ;
332
268
  skos:definition "Modifiers belonging to this modifier family" .
333
269
 
334
- ds:labelReason # Move to reification
335
- a owl:DatatypeProperty ;
336
- rdfs:domain ds:UIBlock ;
337
- rdfs:range xsd:string ;
338
- rdfs:label "" ; #TODO
339
- skos:definition "" . #TODO
340
-
341
270
  ###############################################################################
342
- # 8. PROPERTIES -
271
+ # 7. PROPERTIES - Class-Specific
343
272
  ###############################################################################
344
273
 
345
274
  # Subcomponent
@@ -349,16 +278,16 @@ ds:standalone
349
278
  rdfs:domain ds:Subcomponent ;
350
279
  rdfs:range xsd:boolean ;
351
280
  rdfs:label "standalone" ;
352
- skos:definition "" ; #TODO
353
- ds:acceptanceCriteria "" . #TODO
281
+ skos:definition "Whether this subcomponent can be used independently outside its parent component" ;
282
+ ds:acceptanceCriteria "Must be true or false. When true, the subcomponent may appear in UIs without its parent." .
354
283
 
355
284
  ds:parentComponent
356
285
  a owl:ObjectProperty ;
357
286
  rdfs:domain ds:Subcomponent ;
358
287
  rdfs:range ds:Component ;
359
288
  rdfs:label "parentComponent" ;
360
- skos:definition "Parent component if not standalone" ;
361
- ds:acceptanceCriteria "" . #TODO
289
+ skos:definition "The component to which this subcomponent structurally belongs" ;
290
+ ds:acceptanceCriteria "Must reference a valid ds:Component instance" .
362
291
 
363
292
  ds:hasSubcomponent
364
293
  a owl:ObjectProperty ;
@@ -366,8 +295,8 @@ ds:hasSubcomponent
366
295
  rdfs:range ds:Subcomponent ;
367
296
  owl:inverseOf ds:parentComponent ;
368
297
  rdfs:label "hasSubcomponent" ;
369
- skos:definition "" ; #TODO
370
- ds:acceptanceCriteria "" . #TODO
298
+ skos:definition "Subcomponents that are structural parts of this component" ;
299
+ ds:acceptanceCriteria "Inverse of ds:parentComponent. Each referenced entity must be a ds:Subcomponent." .
371
300
 
372
301
  # Layout
373
302
 
@@ -376,32 +305,66 @@ ds:grid
376
305
  rdfs:domain ds:Layout ;
377
306
  rdfs:range xsd:string ;
378
307
  rdfs:label "grid" ;
379
- skos:definition "" ; #TODO
380
- ds:acceptanceCriteria "" . #TODO
308
+ skos:definition "CSS grid template definition for this layout" ;
309
+ ds:acceptanceCriteria "Must be a valid CSS grid-template value or shorthand" .
381
310
 
382
311
  ds:domain
383
312
  a owl:DatatypeProperty ;
384
313
  rdfs:domain ds:Layout ;
385
314
  rdfs:range xsd:string ;
386
315
  rdfs:label "domain" ;
387
- skos:definition "The domain of information associated with the layout." ; #TODO
388
- ds:acceptanceCriteria "" . #TODO
316
+ skos:definition "The information domain this layout is designed to navigate" ;
317
+ ds:acceptanceCriteria "Should describe the category of content the layout organises (e.g. documentation, dashboard, settings)" .
389
318
 
390
319
  ds:gridAreas
391
320
  a owl:DatatypeProperty ;
392
321
  rdfs:domain ds:Layout ;
393
322
  rdfs:range xsd:string ;
394
323
  rdfs:label "gridAreas" ;
395
- skos:definition "" ; #TODO
396
- ds:acceptanceCriteria "" . #TODO
324
+ skos:definition "Named CSS grid areas defined by this layout" ;
325
+ ds:acceptanceCriteria "Must be valid CSS grid-area names matching the grid template" .
397
326
 
398
327
  ds:targetDevices
399
328
  a owl:DatatypeProperty ;
400
329
  rdfs:domain ds:Layout ;
401
330
  rdfs:range xsd:string ;
402
331
  rdfs:label "targetDevices" ;
403
- skos:definition "" ; #TODO
404
- ds:acceptanceCriteria "" . #TODO
332
+ skos:definition "Device form factors this layout targets" ;
333
+ ds:acceptanceCriteria "Comma-separated list of device categories (e.g. desktop, tablet, mobile)" .
334
+
335
+ # Property
336
+
337
+ ds:propertyType
338
+ a owl:DatatypeProperty ;
339
+ rdfs:domain ds:Property ;
340
+ rdfs:range xsd:string ;
341
+ rdfs:label "propertyType" ;
342
+ skos:definition "The data type of this configurable property (e.g. text, choice, boolean, node)" ;
343
+ ds:acceptanceCriteria "Must be one of the recognised type values used across the design system" .
344
+
345
+ ds:optional
346
+ a owl:DatatypeProperty, owl:FunctionalProperty ;
347
+ rdfs:domain ds:Property ;
348
+ rdfs:range xsd:boolean ;
349
+ rdfs:label "optional" ;
350
+ skos:definition "Whether this property is optional when configuring the UI Block" ;
351
+ ds:acceptanceCriteria "Must be true or false" .
352
+
353
+ ds:defaultValue
354
+ a owl:DatatypeProperty ;
355
+ rdfs:domain ds:Property ;
356
+ rdfs:range xsd:string ;
357
+ rdfs:label "defaultValue" ;
358
+ skos:definition "The default value for this property when not explicitly set by the consumer" ;
359
+ ds:acceptanceCriteria "Must be a valid value for the property's type" .
360
+
361
+ ds:constraints
362
+ a owl:DatatypeProperty ;
363
+ rdfs:domain ds:Property ;
364
+ rdfs:range xsd:string ;
365
+ rdfs:label "constraints" ;
366
+ skos:definition "Constraints on valid values for this property. For choice types, lists allowed values (e.g. '[primary, secondary, tertiary]'). For numbers, specifies ranges. For objects, describes required structure." ;
367
+ ds:acceptanceCriteria "Should describe the valid value space for this property. Format varies by property type." .
405
368
 
406
369
  # Implementation Object
407
370
 
@@ -410,89 +373,87 @@ ds:implementsBlock
410
373
  rdfs:domain ds:ImplementationObject ;
411
374
  rdfs:range ds:UIBlock ;
412
375
  rdfs:label "implementsBlock" ;
413
- skos:definition "" . #TODO
376
+ skos:definition "The UIBlock that this implementation realises in code" ;
377
+ ds:acceptanceCriteria "Must reference a valid ds:UIBlock instance" .
414
378
 
415
379
  ds:implementationVersion
416
380
  a owl:DatatypeProperty, owl:FunctionalProperty ;
417
381
  rdfs:domain ds:ImplementationObject ;
418
382
  rdfs:range xsd:string ;
419
383
  rdfs:label "implementationVersion" ;
420
- skos:definition "" . #TODO
384
+ skos:definition "Version of this specific implementation, independent of the UIBlock version" ;
385
+ ds:acceptanceCriteria "Should follow semver format" .
421
386
 
422
387
  ds:library
423
388
  a owl:ObjectProperty, owl:FunctionalProperty ;
424
389
  rdfs:domain ds:ImplementationObject ;
425
390
  rdfs:range ds:ImplementationLibrary ;
426
391
  rdfs:label "library" ;
427
- skos:definition "" . #TODO
392
+ skos:definition "The implementation library that contains this implementation" ;
393
+ ds:acceptanceCriteria "Must reference a valid ds:ImplementationLibrary instance" .
428
394
 
429
395
  ds:headLink
430
396
  a owl:DatatypeProperty ;
431
397
  rdfs:domain ds:ImplementationObject ;
432
398
  rdfs:range xsd:anyURI ;
433
399
  rdfs:label "headLink" ;
434
- skos:definition "" . #TODO
400
+ skos:definition "URL to the latest/HEAD version of this implementation in source control" ;
401
+ ds:acceptanceCriteria "Must be a valid URL" .
435
402
 
436
403
  ds:versionedLink
437
404
  a owl:DatatypeProperty ;
438
405
  rdfs:domain ds:ImplementationObject ;
439
406
  rdfs:range xsd:string ;
440
407
  rdfs:label "versionedLink" ;
441
- skos:definition "" . #TODO
408
+ skos:definition "URL to a specific tagged version of this implementation in source control" ;
409
+ ds:acceptanceCriteria "Must be a valid URL including version tag" .
442
410
 
443
411
  ds:isDraft
444
412
  a owl:DatatypeProperty ;
445
413
  rdfs:domain ds:ImplementationObject ;
446
414
  rdfs:range xsd:boolean ;
447
415
  rdfs:label "isDraft" ;
448
- skos:definition "" ; #TODO
449
- ds:acceptanceCriteria "" . #TODO
416
+ skos:definition "Whether this implementation is in draft state and not yet ready for production use" ;
417
+ ds:acceptanceCriteria "Must be true or false" .
450
418
 
451
- # Implementation Library
419
+ # Implementation Library
452
420
 
453
421
  ds:libraryName
454
422
  a owl:DatatypeProperty ;
455
423
  rdfs:domain ds:ImplementationLibrary ;
456
424
  rdfs:range xsd:string ;
457
425
  rdfs:label "libraryName" ;
458
- skos:definition "" ; #TODO
459
- ds:acceptanceCriteria "" . #TODO
426
+ skos:definition "The package or library name as published (e.g. npm package name)" ;
427
+ ds:acceptanceCriteria "Must match the published package identifier" .
460
428
 
461
429
  ds:platform
462
430
  a owl:DatatypeProperty ;
463
431
  rdfs:domain ds:ImplementationLibrary ;
464
432
  rdfs:range xsd:string ;
465
433
  rdfs:label "platform" ;
466
- skos:definition "" ; #TODO
467
- ds:acceptanceCriteria "" . #TODO
468
-
469
- ds:libraryDescription
470
- a owl:DatatypeProperty ;
471
- rdfs:domain ds:ImplementationLibrary ;
472
- rdfs:range xsd:string ;
473
- rdfs:label "libraryDescription" ;
474
- skos:definition "Describes the tier of DS implemented" ;
475
- ds:acceptanceCriteria "" . #TODO
434
+ skos:definition "The platform or technology this library targets (e.g. React, Web Components, Flutter)" ;
435
+ ds:acceptanceCriteria "Should be a recognised platform name" .
476
436
 
477
437
  ds:link
478
438
  a owl:DatatypeProperty ;
479
439
  rdfs:domain ds:ImplementationLibrary ;
480
440
  rdfs:range xsd:anyURI ;
481
441
  rdfs:label "link" ;
482
- skos:definition "Link to main artifact" ;
483
- ds:acceptanceCriteria "" . #TODO
442
+ skos:definition "URL to the library's main artifact or repository" ;
443
+ ds:acceptanceCriteria "Must be a valid URL" .
484
444
 
485
445
  ds:documentation
486
446
  a owl:DatatypeProperty ;
487
447
  rdfs:domain ds:ImplementationLibrary ;
488
448
  rdfs:range xsd:anyURI ;
489
449
  rdfs:label "documentation" ;
490
- skos:definition "Documentation link if different from main" ;
491
- ds:acceptanceCriteria "" . #TODO
450
+ skos:definition "Documentation link if different from main artifact" ;
451
+ ds:acceptanceCriteria "Must be a valid URL" .
492
452
 
493
453
  ds:libraryTier
494
454
  a owl:ObjectProperty ;
495
455
  rdfs:domain ds:ImplementationLibrary ;
496
456
  rdfs:range ds:Tier ;
497
457
  rdfs:label "libraryTier" ;
498
- ds:acceptanceCriteria "" . #TODO
458
+ skos:definition "The design system tier that this library implements" ;
459
+ ds:acceptanceCriteria "Must reference a valid ds:Tier instance" .
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "types": "src/index.ts",
5
5
  "type": "module",
6
6
  "license": "LGPL-3.0",
7
- "version": "0.1.0",
7
+ "version": "0.1.2",
8
8
  "bin": {
9
9
  "collect-implementations": "./src/collect-implementations.ts"
10
10
  },
@@ -24,19 +24,19 @@
24
24
  "generate:coda-types": "openapi-typescript https://coda.io/apis/v1/openapi.json -o src/providers/CodaProvider.types.generated.ts"
25
25
  },
26
26
  "devDependencies": {
27
- "@biomejs/biome": "^2.3.8",
28
- "@canonical/biome-config": "^0.10.0-experimental.4",
29
- "@canonical/typescript-config-react": "^0.10.0-experimental.4",
27
+ "@biomejs/biome": "^2.3.14",
28
+ "@canonical/biome-config": "^0.12.0",
29
+ "@canonical/typescript-config-react": "^0.12.0",
30
30
  "@types/bun": "latest",
31
31
  "@types/jsonld": "^1.5.15",
32
32
  "@types/n3": "^1.26.1",
33
- "openapi-typescript": "^7.10.1",
34
- "vite-tsconfig-paths": "^5.1.4",
35
- "vitest": "^4.0.15"
33
+ "openapi-typescript": "^7.12.0",
34
+ "vite-tsconfig-paths": "^6.1.0",
35
+ "vitest": "^4.0.18"
36
36
  },
37
37
  "dependencies": {
38
38
  "ajv": "^8.17.1",
39
39
  "jsonld": "^9.0.0",
40
- "n3": "^1.26.0"
40
+ "n3": "^2.0.1"
41
41
  }
42
42
  }
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: anatomy-author
3
+ description: Write component anatomy specifications using the Design System Anatomy DSL
4
+ ---
5
+
1
6
  # Anatomy Author
2
7
 
3
8
  Write component anatomy specifications using the Design System Anatomy DSL. This skill combines semantic discovery (understanding existing components) with procedural authoring (creating well-formed YAML specifications).
@@ -25,13 +30,13 @@ This skill helps you author these specifications correctly and consistently.
25
30
  Before writing an anatomy, understand the component's context:
26
31
 
27
32
  ```
28
- 1. sem_lookup(type: "dso:Component", filters: {"dso:tier": "ds:global"})
33
+ 1. sem_lookup(type: "ds:Component", filters: {"ds:tier": "ds:global"})
29
34
  -> Find existing components in the target tier
30
35
 
31
36
  2. sem_context(node: "ds:global.component.button")
32
37
  -> See modifier families and relationships
33
38
 
34
- 3. sem_lookup(type: "dso:Subcomponent", filters: {"dso:parentComponent": "ds:global.component.card"})
39
+ 3. sem_lookup(type: "ds:Subcomponent", filters: {"ds:parentComponent": "ds:global.component.card"})
35
40
  -> Find existing subcomponents for composition patterns
36
41
  ```
37
42
 
@@ -40,18 +45,18 @@ Before writing an anatomy, understand the component's context:
40
45
  **Find components by tier:**
41
46
  ```sparql
42
47
  SELECT ?component ?name WHERE {
43
- ?component a dso:Component ;
44
- dso:name ?name ;
45
- dso:tier ds:global .
48
+ ?component a ds:Component ;
49
+ ds:name ?name ;
50
+ ds:tier ds:global .
46
51
  }
47
52
  ```
48
53
 
49
54
  **Find subcomponents of a component:**
50
55
  ```sparql
51
56
  SELECT ?sub ?name WHERE {
52
- ?sub a dso:Subcomponent ;
53
- dso:name ?name ;
54
- dso:parentComponent ds:global.component.card .
57
+ ?sub a ds:Subcomponent ;
58
+ ds:name ?name ;
59
+ ds:parentComponent ds:global.component.card .
55
60
  }
56
61
  ```
57
62
 
@@ -576,7 +581,7 @@ node:
576
581
  First, determine if the component exists in the design system:
577
582
 
578
583
  ```
579
- sem_lookup(type: "dso:Component", filters: {"dso:name": "Button"})
584
+ sem_lookup(type: "ds:Component", filters: {"ds:name": "Button"})
580
585
  ```
581
586
 
582
587
  If it exists, gather context: