@canonical/design-system 0.49.0-experimental.0 → 0.50.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 (72) hide show
  1. package/README.md +55 -1
  2. package/data/documentation/pattern/library_side_navigation.ttl +1 -1
  3. package/data/global/component/badge.ttl +1 -1
  4. package/data/global/modifier/achromat.ttl +1 -0
  5. package/data/global/modifier/alpha.ttl +1 -0
  6. package/data/global/modifier/beta.ttl +1 -0
  7. package/data/global/modifier/branded.ttl +1 -0
  8. package/data/global/modifier/caution.ttl +1 -0
  9. package/data/global/modifier/comfortable.ttl +1 -0
  10. package/data/global/modifier/completed.ttl +1 -0
  11. package/data/global/modifier/constructive.ttl +1 -0
  12. package/data/global/modifier/contrasted.ttl +1 -0
  13. package/data/global/modifier/dark.ttl +1 -0
  14. package/data/global/modifier/dense.ttl +1 -0
  15. package/data/global/modifier/deprecated.ttl +1 -0
  16. package/data/global/modifier/destructive.ttl +1 -0
  17. package/data/global/modifier/deutan.ttl +1 -0
  18. package/data/global/modifier/end_of_life.ttl +1 -0
  19. package/data/global/modifier/error.ttl +1 -0
  20. package/data/global/modifier/experimental.ttl +1 -0
  21. package/data/global/modifier/failed.ttl +1 -0
  22. package/data/global/modifier/highlighted.ttl +1 -0
  23. package/data/global/modifier/in_progress.ttl +1 -0
  24. package/data/global/modifier/information.ttl +2 -1
  25. package/data/global/modifier/layer1.ttl +1 -0
  26. package/data/global/modifier/layer2.ttl +1 -0
  27. package/data/global/modifier/layer3.ttl +1 -0
  28. package/data/global/modifier/less.ttl +1 -0
  29. package/data/global/modifier/light.ttl +1 -0
  30. package/data/global/modifier/lts.ttl +1 -0
  31. package/data/global/modifier/more.ttl +1 -0
  32. package/data/global/modifier/muted.ttl +1 -0
  33. package/data/global/modifier/planned.ttl +1 -0
  34. package/data/global/modifier/primary.ttl +1 -0
  35. package/data/global/modifier/protan.ttl +1 -0
  36. package/data/global/modifier/secondary.ttl +1 -0
  37. package/data/global/modifier/stable.ttl +1 -0
  38. package/data/global/modifier/standard.ttl +1 -0
  39. package/data/global/modifier/tertiary.ttl +1 -0
  40. package/data/global/modifier/tritan.ttl +1 -0
  41. package/data/global/modifier/typical.ttl +1 -0
  42. package/data/global/modifier/warning.ttl +1 -0
  43. package/data/global/modifier_family/anticipation.ttl +1 -0
  44. package/data/global/modifier_family/color.ttl +1 -0
  45. package/data/global/modifier_family/color_vision.ttl +1 -0
  46. package/data/global/modifier_family/contrast.ttl +1 -0
  47. package/data/global/modifier_family/density.ttl +1 -0
  48. package/data/global/modifier_family/emphasis.ttl +1 -0
  49. package/data/global/modifier_family/importance.ttl +1 -0
  50. package/data/global/modifier_family/lifecycle.ttl +1 -0
  51. package/data/global/modifier_family/release.ttl +1 -0
  52. package/data/global/modifier_family/severity.ttl +1 -0
  53. package/data/global/modifier_family/support.ttl +1 -0
  54. package/data/global/modifier_family/surface.ttl +2 -1
  55. package/data/global/state/editable.ttl +2 -1
  56. package/data/global/state/focused.ttl +2 -1
  57. package/data/global/state/invalid.ttl +2 -1
  58. package/data/global/state/loading.ttl +2 -1
  59. package/data/global/state/valid.ttl +2 -1
  60. package/data/global/state/wireframe.ttl +2 -1
  61. package/data/global_dataviews/modifier/exclusion.ttl +1 -0
  62. package/data/global_dataviews/modifier/inclusion.ttl +1 -0
  63. package/data/global_dataviews/modifier/match.ttl +1 -0
  64. package/data/global_dataviews/modifier/presence.ttl +1 -0
  65. package/data/global_dataviews/modifier/range.ttl +1 -0
  66. package/data/global_dataviews/modifier_family/condition.ttl +1 -0
  67. package/data/sites/component/store_card.ttl +1 -1
  68. package/definitions/ontology.ttl +9 -0
  69. package/definitions/shapes.ttl +1079 -0
  70. package/package.json +7 -6
  71. package/skills/adoption-a2-components/SKILL.md +45 -2
  72. package/skills/design-auditor/SKILL.md +2 -1
@@ -0,0 +1,1079 @@
1
+ @prefix ds: <https://ds.canonical.com/> .
2
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
3
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
5
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
6
+ @prefix owl: <http://www.w3.org/2002/07/owl#> .
7
+ @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
8
+ # A token binding's style key and interaction state are anatomy terms, reused
9
+ # rather than minted as ds: twins (see ontology.ttl, section 8).
10
+ @prefix anatomy: <https://anatomy.canonical.com/> .
11
+
12
+ # ═══════════════════════════════════════════════════════════════
13
+ # SHACL SHAPES FOR THE DESIGN SYSTEM ONTOLOGY
14
+ # ═══════════════════════════════════════════════════════════════
15
+ #
16
+ # What a valid block, modifier, tier and their neighbours look like.
17
+ # Semantic definitions live in ontology.ttl; constraints live here.
18
+ #
19
+ # Every requirement comes from the ontology itself: a definition or an
20
+ # acceptance criterion in ontology.ttl, or its rdfs:range and
21
+ # owl:FunctionalProperty axioms. Nothing is required here only because
22
+ # today's data happens to have it, and nothing is added for the sake of a
23
+ # tool that reads these shapes.
24
+ #
25
+ # Cardinality:
26
+ # sh:maxCount 1 — only where the ontology says "at most one": an
27
+ # owl:FunctionalProperty axiom, or a definition that says so.
28
+ # Where a shape states no maximum, a reader keeps the
29
+ # property's own default.
30
+ # sh:minCount 1 — only where a definition or an acceptance criterion says
31
+ # the value is carried. The one exception is ds:name: the
32
+ # ontology calls it "the primary identifier" without saying it
33
+ # is mandatory, and it is required, at violation severity, on
34
+ # the classes where every instance has one.
35
+ #
36
+ # Severity:
37
+ # sh:Violation (the default) — stated by the ontology and met by every
38
+ # instance in data/ today. The package test fails on it, so a
39
+ # sync from the source document that breaks one fails CI.
40
+ # sh:Warning — stated by the ontology but not yet met by the data, or a
41
+ # reading of the ontology that no data tests yet. The package
42
+ # test prints these and passes. A warning states no
43
+ # cardinality to a reader that derives a schema from shapes.
44
+ #
45
+ # Presentation: sh:name, sh:order and sh:group say how a property is shown
46
+ # on a page, a card or a table. They do not validate anything. The groups
47
+ # are declared once, below, and shared by every shape.
48
+ #
49
+ # Shapes:
50
+ # UIBlockShape — name, tier, documentation, structure, lifecycle
51
+ # SubcomponentShape — its parent component, standalone
52
+ # LayoutShape — grid, domain, grid areas, target devices
53
+ # ModifierShape — name, family
54
+ # ModifierFamilyShape — name, modifier type, values, tier
55
+ # TierShape — name, sort
56
+ # StateShape — name, tier
57
+ # ConceptShape — name, content, concept type, tier
58
+ # ConceptTypeShape — name
59
+ # TagShape — name, category, apply and remove guidance
60
+ # TagCategoryShape — name, sort
61
+ # PropertyShape — a block's configurable property
62
+ # ChangeLogEntryShape — a dated change record
63
+ # TokenBindingShape — the derived (block, node, key, state, rank) record
64
+ # DeclaredClassShape — every design-system class an instance is typed with
65
+ # ═══════════════════════════════════════════════════════════════
66
+
67
+ # ───────────────────────────────────────────────────────────────
68
+ # PROPERTY GROUPS
69
+ # ───────────────────────────────────────────────────────────────
70
+
71
+ ds:property_group.identity a sh:PropertyGroup ;
72
+ rdfs:label "Identity"@en ;
73
+ sh:order 1 .
74
+
75
+ ds:property_group.documentation a sh:PropertyGroup ;
76
+ rdfs:label "Documentation"@en ;
77
+ sh:order 2 .
78
+
79
+ ds:property_group.structure a sh:PropertyGroup ;
80
+ rdfs:label "Structure"@en ;
81
+ sh:order 3 .
82
+
83
+ ds:property_group.design a sh:PropertyGroup ;
84
+ rdfs:label "Design"@en ;
85
+ sh:order 4 .
86
+
87
+ ds:property_group.lifecycle a sh:PropertyGroup ;
88
+ rdfs:label "Lifecycle"@en ;
89
+ sh:order 5 .
90
+
91
+ # ───────────────────────────────────────────────────────────────
92
+ # UI BLOCK (and so Component, Pattern, Layout, Subcomponent, Group, Variant)
93
+ # ───────────────────────────────────────────────────────────────
94
+
95
+ ds:UIBlockShape a sh:NodeShape ;
96
+ sh:targetClass ds:UIBlock ;
97
+ rdfs:label "UI Block Shape" ;
98
+ skos:definition "What every component, pattern, layout, subcomponent, group and variant carries." ;
99
+
100
+ sh:property [
101
+ sh:path ds:name ;
102
+ sh:name "Name"@en ;
103
+ sh:group ds:property_group.identity ;
104
+ sh:order 1 ;
105
+ sh:minCount 1 ;
106
+ sh:datatype xsd:string ;
107
+ sh:minLength 1 ;
108
+ sh:message "A block needs a name, as non-empty text." ;
109
+ ] ;
110
+
111
+ # "Has to be mandatory and singular", and owl:FunctionalProperty.
112
+ sh:property [
113
+ sh:path ds:tier ;
114
+ sh:name "Tier"@en ;
115
+ sh:group ds:property_group.identity ;
116
+ sh:order 2 ;
117
+ sh:minCount 1 ;
118
+ sh:maxCount 1 ;
119
+ sh:class ds:Tier ;
120
+ sh:message "A block needs exactly one tier, and it must be one of the design system's tiers." ;
121
+ ] ;
122
+
123
+ sh:property [
124
+ sh:path ds:summary ;
125
+ sh:name "Summary"@en ;
126
+ sh:group ds:property_group.documentation ;
127
+ sh:order 3 ;
128
+ sh:datatype xsd:string ;
129
+ sh:message "A block's summary must be text." ;
130
+ ] ;
131
+
132
+ sh:property [
133
+ sh:path ds:usage ;
134
+ sh:name "Usage"@en ;
135
+ sh:group ds:property_group.documentation ;
136
+ sh:order 4 ;
137
+ sh:datatype xsd:string ;
138
+ sh:message "A block's usage must be text, in Markdown." ;
139
+ ] ;
140
+
141
+ sh:property [
142
+ sh:path ds:guidelines ;
143
+ sh:name "Guidelines"@en ;
144
+ sh:group ds:property_group.documentation ;
145
+ sh:order 5 ;
146
+ sh:datatype xsd:string ;
147
+ sh:message "A block's guidelines must be text." ;
148
+ ] ;
149
+
150
+ # The ontology says a parent reference must name a ds:Component. Today
151
+ # many subcomponents name a pattern or another subcomponent as their
152
+ # parent, so this is a warning until the source is fixed.
153
+ sh:property [
154
+ sh:path ds:parentComponent ;
155
+ sh:name "Parent"@en ;
156
+ sh:group ds:property_group.structure ;
157
+ sh:order 6 ;
158
+ sh:class ds:Component ;
159
+ sh:severity sh:Warning ;
160
+ sh:message "A block's parent should be a component." ;
161
+ ] ;
162
+
163
+ # The ontology says a subcomponent reference must name a ds:Subcomponent.
164
+ # Today some components and layouts list other components or layouts
165
+ # here, so this is a warning until the source is fixed.
166
+ sh:property [
167
+ sh:path ds:hasSubcomponent ;
168
+ sh:name "Subcomponents"@en ;
169
+ sh:group ds:property_group.structure ;
170
+ sh:order 7 ;
171
+ sh:class ds:Subcomponent ;
172
+ sh:severity sh:Warning ;
173
+ sh:message "A block's subcomponents should each be a subcomponent." ;
174
+ ] ;
175
+
176
+ sh:property [
177
+ sh:path ds:hasModifierFamily ;
178
+ sh:name "Modifier families"@en ;
179
+ sh:group ds:property_group.structure ;
180
+ sh:order 8 ;
181
+ sh:class ds:ModifierFamily ;
182
+ sh:message "A block's modifier families must each be a modifier family." ;
183
+ ] ;
184
+
185
+ sh:property [
186
+ sh:path ds:hasProperty ;
187
+ sh:name "Properties"@en ;
188
+ sh:group ds:property_group.structure ;
189
+ sh:order 9 ;
190
+ sh:class ds:Property ;
191
+ sh:message "A block's properties must each be a property record." ;
192
+ ] ;
193
+
194
+ sh:property [
195
+ sh:path ds:inheritsFrom ;
196
+ sh:name "Inherits from"@en ;
197
+ sh:group ds:property_group.structure ;
198
+ sh:order 10 ;
199
+ sh:class ds:UIBlock ;
200
+ sh:message "A block can only inherit from another block." ;
201
+ ] ;
202
+
203
+ sh:property [
204
+ sh:path ds:specializedBy ;
205
+ sh:name "Specialised by"@en ;
206
+ sh:group ds:property_group.structure ;
207
+ sh:order 10.5 ;
208
+ sh:class ds:UIBlock ;
209
+ sh:message "A block can only be specialised by another block." ;
210
+ ] ;
211
+
212
+ sh:property [
213
+ sh:path ds:variantOf ;
214
+ sh:name "Variant of"@en ;
215
+ sh:group ds:property_group.structure ;
216
+ sh:order 11 ;
217
+ sh:class ds:UIBlock ;
218
+ sh:message "A block can only be a variant of another block." ;
219
+ ] ;
220
+
221
+ # The range of hasVariant is ds:UIBlock. Every variant meets it today, but
222
+ # the source table can type a block with a kind the ontology does not
223
+ # declare (it already types two as ds:View), so this is a warning until
224
+ # every kind it uses is declared.
225
+ sh:property [
226
+ sh:path ds:hasVariant ;
227
+ sh:name "Variants"@en ;
228
+ sh:group ds:property_group.structure ;
229
+ sh:order 11.5 ;
230
+ sh:class ds:UIBlock ;
231
+ sh:severity sh:Warning ;
232
+ sh:message "A block's variants should each be a block." ;
233
+ ] ;
234
+
235
+ sh:property [
236
+ sh:path ds:anatomyDsl ;
237
+ sh:name "Anatomy"@en ;
238
+ sh:group ds:property_group.design ;
239
+ sh:order 12 ;
240
+ sh:datatype xsd:string ;
241
+ sh:message "A block's anatomy must be Anatomy DSL YAML text." ;
242
+ ] ;
243
+
244
+ sh:property [
245
+ sh:path ds:anatomyClassic ;
246
+ sh:name "Classic anatomy"@en ;
247
+ sh:group ds:property_group.design ;
248
+ sh:order 12.5 ;
249
+ sh:datatype xsd:string ;
250
+ sh:message "A block's classic anatomy must be text." ;
251
+ ] ;
252
+
253
+ # The ontology asks for "a valid URL pointing to the Figma design file";
254
+ # the host and path below are a reading of that, and no block has a Figma
255
+ # link yet to test it, so it is a warning.
256
+ sh:property [
257
+ sh:path ds:figmaLink ;
258
+ sh:name "Figma"@en ;
259
+ sh:group ds:property_group.design ;
260
+ sh:order 13 ;
261
+ sh:pattern "^https://([a-z0-9-]+\\.)*figma\\.com/" ;
262
+ sh:severity sh:Warning ;
263
+ sh:message "A block's Figma link should be an https URL on figma.com." ;
264
+ ] ;
265
+
266
+ # The ontology types the link as xsd:anyURI; the sync writes plain text.
267
+ sh:property [
268
+ sh:path ds:figmaLink ;
269
+ sh:datatype xsd:anyURI ;
270
+ sh:severity sh:Warning ;
271
+ sh:message "A block's Figma link should be typed as a URL (xsd:anyURI), not plain text." ;
272
+ ] ;
273
+
274
+ # owl:FunctionalProperty. The range is ds:SemverString, a restriction of
275
+ # xsd:string by the pattern below, so the pattern is checked and either
276
+ # datatype is accepted.
277
+ sh:property [
278
+ sh:path ds:version ;
279
+ sh:name "Version"@en ;
280
+ sh:group ds:property_group.lifecycle ;
281
+ sh:order 14 ;
282
+ sh:maxCount 1 ;
283
+ sh:nodeKind sh:Literal ;
284
+ sh:pattern "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?$" ;
285
+ sh:message "A block has at most one version, written as a semantic version (MAJOR.MINOR.PATCH)." ;
286
+ ] ;
287
+
288
+ sh:property [
289
+ sh:path ds:documentationStage ;
290
+ sh:name "Documentation stage"@en ;
291
+ sh:group ds:property_group.lifecycle ;
292
+ sh:order 15 ;
293
+ sh:class ds:Tag ;
294
+ sh:message "A block's documentation stage must be a tag." ;
295
+ ] ;
296
+
297
+ # The ontology names the facet, not the category's IRI, which the sync
298
+ # generates from the source table's name; a warning, so a renamed
299
+ # category is reported rather than failing every block.
300
+ sh:property [
301
+ sh:path ds:documentationStage ;
302
+ sh:node ds:DocumentationStageTagShape ;
303
+ sh:severity sh:Warning ;
304
+ sh:message "A block's documentation stage should be a tag of the documentation-status category." ;
305
+ ] ;
306
+
307
+ sh:property [
308
+ sh:path ds:changeLog ;
309
+ sh:name "Change log"@en ;
310
+ sh:group ds:property_group.lifecycle ;
311
+ sh:order 16 ;
312
+ sh:class ds:ChangeLogEntry ;
313
+ sh:message "A block's change log must hold change log entries." ;
314
+ ] ;
315
+
316
+ sh:property [
317
+ sh:path ds:decisionLog ;
318
+ sh:name "Decision log"@en ;
319
+ sh:group ds:property_group.lifecycle ;
320
+ sh:order 17 ;
321
+ sh:datatype xsd:string ;
322
+ sh:message "A block's decision log must be text." ;
323
+ ] ;
324
+
325
+ sh:property [
326
+ sh:path ds:hasTokenBinding ;
327
+ sh:name "Token bindings"@en ;
328
+ sh:group ds:property_group.design ;
329
+ sh:order 18 ;
330
+ sh:class ds:TokenBinding ;
331
+ sh:message "A block's token bindings must be token binding records." ;
332
+ ] .
333
+
334
+ # A documentation stage is one facet of the tag vocabulary: a tag whose
335
+ # category is the documentation-status category. Referenced from
336
+ # UIBlockShape; it targets nothing on its own.
337
+ ds:DocumentationStageTagShape a sh:NodeShape ;
338
+ rdfs:label "Documentation Stage Tag Shape" ;
339
+ skos:definition "A tag in the documentation-status category." ;
340
+ sh:property [
341
+ sh:path ds:category ;
342
+ sh:hasValue ds:tagcategory.design--documentation-status ;
343
+ sh:message "A documentation stage should be a tag of the documentation-status category." ;
344
+ ] .
345
+
346
+ # ───────────────────────────────────────────────────────────────
347
+ # SUBCOMPONENT
348
+ # ───────────────────────────────────────────────────────────────
349
+
350
+ ds:SubcomponentShape a sh:NodeShape ;
351
+ sh:targetClass ds:Subcomponent ;
352
+ rdfs:label "Subcomponent Shape" ;
353
+ skos:definition "A named part of a component, and the component it belongs to." ;
354
+
355
+ # A subcomponent is "a named part of a Component"; 40 have no parent
356
+ # today, so this is a warning until the source is filled in.
357
+ sh:property [
358
+ sh:path ds:parentComponent ;
359
+ sh:minCount 1 ;
360
+ sh:severity sh:Warning ;
361
+ sh:message "A subcomponent should name the component it belongs to." ;
362
+ ] ;
363
+
364
+ # owl:FunctionalProperty.
365
+ sh:property [
366
+ sh:path ds:standalone ;
367
+ sh:name "Standalone"@en ;
368
+ sh:group ds:property_group.structure ;
369
+ sh:order 7.5 ;
370
+ sh:maxCount 1 ;
371
+ sh:datatype xsd:boolean ;
372
+ sh:message "A subcomponent's standalone flag is at most one true or false." ;
373
+ ] .
374
+
375
+ # ───────────────────────────────────────────────────────────────
376
+ # LAYOUT
377
+ # ───────────────────────────────────────────────────────────────
378
+
379
+ ds:LayoutShape a sh:NodeShape ;
380
+ sh:targetClass ds:Layout ;
381
+ rdfs:label "Layout Shape" ;
382
+ skos:definition "The grid and the information domain a layout divides space for." ;
383
+
384
+ sh:property [
385
+ sh:path ds:domain ;
386
+ sh:name "Information domain"@en ;
387
+ sh:group ds:property_group.design ;
388
+ sh:order 12.1 ;
389
+ sh:datatype xsd:string ;
390
+ sh:message "A layout's information domain must be text." ;
391
+ ] ;
392
+
393
+ sh:property [
394
+ sh:path ds:grid ;
395
+ sh:name "Grid template"@en ;
396
+ sh:group ds:property_group.design ;
397
+ sh:order 12.2 ;
398
+ sh:datatype xsd:string ;
399
+ sh:message "A layout's grid template must be text." ;
400
+ ] ;
401
+
402
+ sh:property [
403
+ sh:path ds:gridAreas ;
404
+ sh:name "Grid areas"@en ;
405
+ sh:group ds:property_group.design ;
406
+ sh:order 12.3 ;
407
+ sh:datatype xsd:string ;
408
+ sh:message "A layout's grid areas must be text." ;
409
+ ] ;
410
+
411
+ sh:property [
412
+ sh:path ds:targetDevices ;
413
+ sh:name "Target devices"@en ;
414
+ sh:group ds:property_group.design ;
415
+ sh:order 12.4 ;
416
+ sh:datatype xsd:string ;
417
+ sh:message "A layout's target devices must be text." ;
418
+ ] .
419
+
420
+ # ───────────────────────────────────────────────────────────────
421
+ # MODIFIER (and so its four types)
422
+ # ───────────────────────────────────────────────────────────────
423
+
424
+ ds:ModifierShape a sh:NodeShape ;
425
+ sh:targetClass ds:Modifier ;
426
+ rdfs:label "Modifier Shape" ;
427
+ skos:definition "A value of a modifier family." ;
428
+
429
+ sh:property [
430
+ sh:path ds:name ;
431
+ sh:name "Name"@en ;
432
+ sh:group ds:property_group.identity ;
433
+ sh:order 1 ;
434
+ sh:minCount 1 ;
435
+ sh:datatype xsd:string ;
436
+ sh:minLength 1 ;
437
+ sh:message "A modifier needs a name, as non-empty text." ;
438
+ ] ;
439
+
440
+ # owl:FunctionalProperty. The ontology does not say a modifier must
441
+ # name its family, so the family is not required.
442
+ sh:property [
443
+ sh:path ds:modifierFamily ;
444
+ sh:name "Family"@en ;
445
+ sh:group ds:property_group.identity ;
446
+ sh:order 2 ;
447
+ sh:maxCount 1 ;
448
+ sh:class ds:ModifierFamily ;
449
+ sh:message "A modifier has at most one modifier family." ;
450
+ ] ;
451
+
452
+ sh:property [
453
+ sh:path ds:sort ;
454
+ sh:name "Sort"@en ;
455
+ sh:group ds:property_group.identity ;
456
+ sh:order 3 ;
457
+ sh:maxCount 1 ;
458
+ sh:or ( [ sh:datatype xsd:decimal ] [ sh:datatype xsd:integer ] ) ;
459
+ sh:message "A modifier has at most one sort position, as a number." ;
460
+ ] ;
461
+
462
+ sh:property [
463
+ sh:path ds:summary ;
464
+ sh:name "Summary"@en ;
465
+ sh:group ds:property_group.documentation ;
466
+ sh:order 4 ;
467
+ sh:datatype xsd:string ;
468
+ sh:message "A modifier's summary must be text." ;
469
+ ] .
470
+
471
+ # ───────────────────────────────────────────────────────────────
472
+ # MODIFIER FAMILY
473
+ # ───────────────────────────────────────────────────────────────
474
+
475
+ ds:ModifierFamilyShape a sh:NodeShape ;
476
+ sh:targetClass ds:ModifierFamily ;
477
+ rdfs:label "Modifier Family Shape" ;
478
+ skos:definition "An aspect of a block, partitioned by its modifier values, all of one modifier type." ;
479
+
480
+ sh:property [
481
+ sh:path ds:name ;
482
+ sh:name "Name"@en ;
483
+ sh:group ds:property_group.identity ;
484
+ sh:order 1 ;
485
+ sh:minCount 1 ;
486
+ sh:datatype xsd:string ;
487
+ sh:minLength 1 ;
488
+ sh:message "A modifier family needs a name, as non-empty text." ;
489
+ ] ;
490
+
491
+ # owl:FunctionalProperty.
492
+ sh:property [
493
+ sh:path ds:tier ;
494
+ sh:name "Tier"@en ;
495
+ sh:group ds:property_group.identity ;
496
+ sh:order 2 ;
497
+ sh:maxCount 1 ;
498
+ sh:class ds:Tier ;
499
+ sh:message "A modifier family has at most one tier, and it must be one of the design system's tiers." ;
500
+ ] ;
501
+
502
+ # owl:FunctionalProperty, and the definition names the four types. The
503
+ # ontology does not say a family must state its type, so it is not
504
+ # required.
505
+ sh:property [
506
+ sh:path ds:modifierType ;
507
+ sh:name "Modifier type"@en ;
508
+ sh:group ds:property_group.identity ;
509
+ sh:order 3 ;
510
+ sh:maxCount 1 ;
511
+ sh:in ( ds:ThemeModifier ds:ModeModifier ds:SurfaceModifier ds:SemanticModifier ) ;
512
+ sh:message "A modifier family has at most one modifier type: theme, mode, surface or semantic." ;
513
+ ] ;
514
+
515
+ sh:property [
516
+ sh:path ds:sort ;
517
+ sh:name "Sort"@en ;
518
+ sh:group ds:property_group.identity ;
519
+ sh:order 4 ;
520
+ sh:maxCount 1 ;
521
+ sh:or ( [ sh:datatype xsd:decimal ] [ sh:datatype xsd:integer ] ) ;
522
+ sh:message "A modifier family has at most one sort position, as a number." ;
523
+ ] ;
524
+
525
+ sh:property [
526
+ sh:path ds:summary ;
527
+ sh:name "Summary"@en ;
528
+ sh:group ds:property_group.documentation ;
529
+ sh:order 5 ;
530
+ sh:datatype xsd:string ;
531
+ sh:message "A modifier family's summary must be text." ;
532
+ ] ;
533
+
534
+ sh:property [
535
+ sh:path ds:hasModifier ;
536
+ sh:name "Values"@en ;
537
+ sh:group ds:property_group.structure ;
538
+ sh:order 6 ;
539
+ sh:class ds:Modifier ;
540
+ sh:message "A modifier family's values must each be a modifier." ;
541
+ ] .
542
+
543
+ # ───────────────────────────────────────────────────────────────
544
+ # TIER
545
+ # ───────────────────────────────────────────────────────────────
546
+
547
+ ds:TierShape a sh:NodeShape ;
548
+ sh:targetClass ds:Tier ;
549
+ rdfs:label "Tier Shape" ;
550
+ skos:definition "A scope level that says where blocks are intended to be used." ;
551
+
552
+ sh:property [
553
+ sh:path ds:name ;
554
+ sh:name "Name"@en ;
555
+ sh:group ds:property_group.identity ;
556
+ sh:order 1 ;
557
+ sh:minCount 1 ;
558
+ sh:datatype xsd:string ;
559
+ sh:minLength 1 ;
560
+ sh:message "A tier needs a name, as non-empty text." ;
561
+ ] ;
562
+
563
+ # owl:FunctionalProperty.
564
+ sh:property [
565
+ sh:path ds:sort ;
566
+ sh:name "Sort"@en ;
567
+ sh:group ds:property_group.identity ;
568
+ sh:order 2 ;
569
+ sh:maxCount 1 ;
570
+ sh:or ( [ sh:datatype xsd:decimal ] [ sh:datatype xsd:integer ] ) ;
571
+ sh:message "A tier has at most one sort position, as a number." ;
572
+ ] .
573
+
574
+ # ───────────────────────────────────────────────────────────────
575
+ # STATE
576
+ # ───────────────────────────────────────────────────────────────
577
+
578
+ ds:StateShape a sh:NodeShape ;
579
+ sh:targetClass ds:State ;
580
+ rdfs:label "State Shape" ;
581
+ skos:definition "A condition of a block that changes or signals the availability, progress or history of its content." ;
582
+
583
+ sh:property [
584
+ sh:path ds:name ;
585
+ sh:name "Name"@en ;
586
+ sh:group ds:property_group.identity ;
587
+ sh:order 1 ;
588
+ sh:minCount 1 ;
589
+ sh:datatype xsd:string ;
590
+ sh:minLength 1 ;
591
+ sh:message "A state needs a name, as non-empty text." ;
592
+ ] ;
593
+
594
+ # owl:FunctionalProperty.
595
+ sh:property [
596
+ sh:path ds:tier ;
597
+ sh:name "Tier"@en ;
598
+ sh:group ds:property_group.identity ;
599
+ sh:order 2 ;
600
+ sh:maxCount 1 ;
601
+ sh:class ds:Tier ;
602
+ sh:message "A state has at most one tier, and it must be one of the design system's tiers." ;
603
+ ] ;
604
+
605
+ # owl:FunctionalProperty.
606
+ sh:property [
607
+ sh:path ds:sort ;
608
+ sh:name "Sort"@en ;
609
+ sh:group ds:property_group.identity ;
610
+ sh:order 3 ;
611
+ sh:maxCount 1 ;
612
+ sh:or ( [ sh:datatype xsd:decimal ] [ sh:datatype xsd:integer ] ) ;
613
+ sh:message "A state has at most one sort position, as a number." ;
614
+ ] ;
615
+
616
+ sh:property [
617
+ sh:path ds:summary ;
618
+ sh:name "Summary"@en ;
619
+ sh:group ds:property_group.documentation ;
620
+ sh:order 4 ;
621
+ sh:datatype xsd:string ;
622
+ sh:message "A state's summary must be text." ;
623
+ ] .
624
+
625
+ # ───────────────────────────────────────────────────────────────
626
+ # CONCEPT
627
+ # ───────────────────────────────────────────────────────────────
628
+
629
+ ds:ConceptShape a sh:NodeShape ;
630
+ sh:targetClass ds:Concept ;
631
+ rdfs:label "Concept Shape" ;
632
+ skos:definition "A standalone piece of documentation: a Markdown body, an optional summary, a concept type and a tier." ;
633
+
634
+ sh:property [
635
+ sh:path ds:name ;
636
+ sh:name "Name"@en ;
637
+ sh:group ds:property_group.identity ;
638
+ sh:order 1 ;
639
+ sh:minCount 1 ;
640
+ sh:datatype xsd:string ;
641
+ sh:minLength 1 ;
642
+ sh:message "A concept needs a name, as non-empty text." ;
643
+ ] ;
644
+
645
+ sh:property [
646
+ sh:path ds:conceptType ;
647
+ sh:name "Type"@en ;
648
+ sh:group ds:property_group.identity ;
649
+ sh:order 2 ;
650
+ sh:class ds:ConceptType ;
651
+ sh:message "A concept's concept type must be one of the concept types." ;
652
+ ] ;
653
+
654
+ # The ontology says a concept carries a concept type; two do not yet.
655
+ sh:property [
656
+ sh:path ds:conceptType ;
657
+ sh:minCount 1 ;
658
+ sh:severity sh:Warning ;
659
+ sh:message "A concept should have a concept type." ;
660
+ ] ;
661
+
662
+ # A concept "carries ... a tier"; and owl:FunctionalProperty.
663
+ sh:property [
664
+ sh:path ds:tier ;
665
+ sh:name "Tier"@en ;
666
+ sh:group ds:property_group.identity ;
667
+ sh:order 3 ;
668
+ sh:minCount 1 ;
669
+ sh:maxCount 1 ;
670
+ sh:class ds:Tier ;
671
+ sh:message "A concept needs exactly one tier, and it must be one of the design system's tiers." ;
672
+ ] ;
673
+
674
+ sh:property [
675
+ sh:path ds:summary ;
676
+ sh:name "Summary"@en ;
677
+ sh:group ds:property_group.documentation ;
678
+ sh:order 4 ;
679
+ sh:datatype xsd:string ;
680
+ sh:message "A concept's summary must be text." ;
681
+ ] ;
682
+
683
+ # A concept "carries a long-form Markdown body (content)".
684
+ sh:property [
685
+ sh:path ds:content ;
686
+ sh:name "Content"@en ;
687
+ sh:group ds:property_group.documentation ;
688
+ sh:order 5 ;
689
+ sh:minCount 1 ;
690
+ sh:datatype xsd:string ;
691
+ sh:message "A concept needs a content body, as Markdown text." ;
692
+ ] ;
693
+
694
+ sh:property [
695
+ sh:path ds:knownEdgeCases ;
696
+ sh:name "Known edge cases"@en ;
697
+ sh:group ds:property_group.documentation ;
698
+ sh:order 6 ;
699
+ sh:datatype xsd:string ;
700
+ sh:message "A concept's known edge cases note must be text." ;
701
+ ] .
702
+
703
+ # ───────────────────────────────────────────────────────────────
704
+ # CONCEPT TYPE
705
+ # ───────────────────────────────────────────────────────────────
706
+
707
+ ds:ConceptTypeShape a sh:NodeShape ;
708
+ sh:targetClass ds:ConceptType ;
709
+ rdfs:label "Concept Type Shape" ;
710
+ skos:definition "A controlled-vocabulary classification of a concept." ;
711
+
712
+ sh:property [
713
+ sh:path ds:name ;
714
+ sh:name "Name"@en ;
715
+ sh:group ds:property_group.identity ;
716
+ sh:order 1 ;
717
+ sh:minCount 1 ;
718
+ sh:datatype xsd:string ;
719
+ sh:minLength 1 ;
720
+ sh:message "A concept type needs a name, as non-empty text." ;
721
+ ] ;
722
+
723
+ sh:property [
724
+ sh:path ds:summary ;
725
+ sh:name "Summary"@en ;
726
+ sh:group ds:property_group.documentation ;
727
+ sh:order 2 ;
728
+ sh:datatype xsd:string ;
729
+ sh:message "A concept type's summary must be text." ;
730
+ ] .
731
+
732
+ # ───────────────────────────────────────────────────────────────
733
+ # TAG
734
+ # ───────────────────────────────────────────────────────────────
735
+
736
+ ds:TagShape a sh:NodeShape ;
737
+ sh:targetClass ds:Tag ;
738
+ rdfs:label "Tag Shape" ;
739
+ skos:definition "A controlled-vocabulary label: its name, its category, and when to apply and remove it." ;
740
+
741
+ sh:property [
742
+ sh:path ds:name ;
743
+ sh:name "Name"@en ;
744
+ sh:group ds:property_group.identity ;
745
+ sh:order 1 ;
746
+ sh:minCount 1 ;
747
+ sh:datatype xsd:string ;
748
+ sh:minLength 1 ;
749
+ sh:message "A tag needs a name, as non-empty text." ;
750
+ ] ;
751
+
752
+ # "A Tag carries its name, category, and apply/remove guidance."
753
+ sh:property [
754
+ sh:path ds:category ;
755
+ sh:name "Category"@en ;
756
+ sh:group ds:property_group.identity ;
757
+ sh:order 2 ;
758
+ sh:minCount 1 ;
759
+ sh:class ds:TagCategory ;
760
+ sh:message "A tag needs a tag category." ;
761
+ ] ;
762
+
763
+ sh:property [
764
+ sh:path ds:whenToApply ;
765
+ sh:name "When to apply"@en ;
766
+ sh:group ds:property_group.documentation ;
767
+ sh:order 3 ;
768
+ sh:minCount 1 ;
769
+ sh:datatype xsd:string ;
770
+ sh:message "A tag needs guidance text on when to apply it." ;
771
+ ] ;
772
+
773
+ sh:property [
774
+ sh:path ds:whenToRemove ;
775
+ sh:name "When to remove"@en ;
776
+ sh:group ds:property_group.documentation ;
777
+ sh:order 4 ;
778
+ sh:minCount 1 ;
779
+ sh:datatype xsd:string ;
780
+ sh:message "A tag needs guidance text on when to remove it." ;
781
+ ] .
782
+
783
+ # ───────────────────────────────────────────────────────────────
784
+ # TAG CATEGORY
785
+ # ───────────────────────────────────────────────────────────────
786
+
787
+ ds:TagCategoryShape a sh:NodeShape ;
788
+ sh:targetClass ds:TagCategory ;
789
+ rdfs:label "Tag Category Shape" ;
790
+ skos:definition "A facet that groups related tags." ;
791
+
792
+ sh:property [
793
+ sh:path ds:name ;
794
+ sh:name "Name"@en ;
795
+ sh:group ds:property_group.identity ;
796
+ sh:order 1 ;
797
+ sh:minCount 1 ;
798
+ sh:datatype xsd:string ;
799
+ sh:minLength 1 ;
800
+ sh:message "A tag category needs a name, as non-empty text." ;
801
+ ] ;
802
+
803
+ # owl:FunctionalProperty.
804
+ sh:property [
805
+ sh:path ds:sort ;
806
+ sh:name "Sort"@en ;
807
+ sh:group ds:property_group.identity ;
808
+ sh:order 2 ;
809
+ sh:maxCount 1 ;
810
+ sh:or ( [ sh:datatype xsd:decimal ] [ sh:datatype xsd:integer ] ) ;
811
+ sh:message "A tag category has at most one sort position, as a number." ;
812
+ ] .
813
+
814
+ # ───────────────────────────────────────────────────────────────
815
+ # PROPERTY (a block's configurable property)
816
+ # ───────────────────────────────────────────────────────────────
817
+
818
+ ds:PropertyShape a sh:NodeShape ;
819
+ sh:targetClass ds:Property ;
820
+ rdfs:label "Property Shape" ;
821
+ skos:definition "A configurable property of a block, shown as a row of the block's property table." ;
822
+
823
+ sh:property [
824
+ sh:path ds:name ;
825
+ sh:name "Name"@en ;
826
+ sh:order 1 ;
827
+ sh:datatype xsd:string ;
828
+ sh:message "A block property's name must be text." ;
829
+ ] ;
830
+
831
+ # The name is "the primary identifier"; three property rows have none.
832
+ sh:property [
833
+ sh:path ds:name ;
834
+ sh:minCount 1 ;
835
+ sh:severity sh:Warning ;
836
+ sh:message "A block property should have a name." ;
837
+ ] ;
838
+
839
+ sh:property [
840
+ sh:path ds:propertyType ;
841
+ sh:name "Type"@en ;
842
+ sh:order 2 ;
843
+ sh:datatype xsd:string ;
844
+ sh:message "A block property's type must be text." ;
845
+ ] ;
846
+
847
+ # owl:FunctionalProperty.
848
+ sh:property [
849
+ sh:path ds:optional ;
850
+ sh:name "Optional"@en ;
851
+ sh:order 3 ;
852
+ sh:maxCount 1 ;
853
+ sh:message "A block property has at most one optional flag." ;
854
+ ] ;
855
+
856
+ # The ontology says true or false; the sync writes the source document's
857
+ # text ("true", "false", "Yes", "No").
858
+ sh:property [
859
+ sh:path ds:optional ;
860
+ sh:datatype xsd:boolean ;
861
+ sh:severity sh:Warning ;
862
+ sh:message "A block property's optional flag should be a boolean (true or false), not text." ;
863
+ ] ;
864
+
865
+ sh:property [
866
+ sh:path ds:defaultValue ;
867
+ sh:name "Default"@en ;
868
+ sh:order 4 ;
869
+ sh:datatype xsd:string ;
870
+ sh:message "A block property's default value must be text." ;
871
+ ] ;
872
+
873
+ sh:property [
874
+ sh:path ds:constraints ;
875
+ sh:name "Constraints"@en ;
876
+ sh:order 5 ;
877
+ sh:datatype xsd:string ;
878
+ sh:message "A block property's constraints must be text." ;
879
+ ] ;
880
+
881
+ sh:property [
882
+ sh:path ds:summary ;
883
+ sh:name "Summary"@en ;
884
+ sh:order 6 ;
885
+ sh:datatype xsd:string ;
886
+ sh:message "A block property's summary must be text." ;
887
+ ] .
888
+
889
+ # ───────────────────────────────────────────────────────────────
890
+ # CHANGE LOG ENTRY
891
+ # ───────────────────────────────────────────────────────────────
892
+
893
+ ds:ChangeLogEntryShape a sh:NodeShape ;
894
+ sh:targetClass ds:ChangeLogEntry ;
895
+ rdfs:label "Change Log Entry Shape" ;
896
+ skos:definition "A dated record of a change to a block: timestamp, change, owner, optional GitHub link and change type." ;
897
+
898
+ # "A single dated record ... with a timestamp".
899
+ sh:property [
900
+ sh:path ds:timestamp ;
901
+ sh:name "Date"@en ;
902
+ sh:order 1 ;
903
+ sh:minCount 1 ;
904
+ sh:message "A change log entry needs a timestamp." ;
905
+ ] ;
906
+
907
+ # The ontology says a valid ISO-8601 dateTime; the sync writes the
908
+ # timestamp as plain text.
909
+ sh:property [
910
+ sh:path ds:timestamp ;
911
+ sh:datatype xsd:dateTime ;
912
+ sh:severity sh:Warning ;
913
+ sh:message "A change log entry's timestamp should be typed as a date and time (xsd:dateTime), not plain text." ;
914
+ ] ;
915
+
916
+ sh:property [
917
+ sh:path ds:changeType ;
918
+ sh:name "Type"@en ;
919
+ sh:order 2 ;
920
+ sh:datatype xsd:string ;
921
+ sh:message "A change log entry's change type must be text." ;
922
+ ] ;
923
+
924
+ sh:property [
925
+ sh:path ds:changeType ;
926
+ sh:minCount 1 ;
927
+ sh:severity sh:Warning ;
928
+ sh:message "A change log entry should say what type of change it records." ;
929
+ ] ;
930
+
931
+ sh:property [
932
+ sh:path ds:change ;
933
+ sh:name "Change"@en ;
934
+ sh:order 3 ;
935
+ sh:datatype xsd:string ;
936
+ sh:message "A change log entry's change must be text." ;
937
+ ] ;
938
+
939
+ sh:property [
940
+ sh:path ds:change ;
941
+ sh:minCount 1 ;
942
+ sh:severity sh:Warning ;
943
+ sh:message "A change log entry should describe what changed." ;
944
+ ] ;
945
+
946
+ sh:property [
947
+ sh:path ds:owner ;
948
+ sh:name "Owner"@en ;
949
+ sh:order 4 ;
950
+ sh:datatype xsd:string ;
951
+ sh:message "A change log entry's owner must be text." ;
952
+ ] ;
953
+
954
+ sh:property [
955
+ sh:path ds:owner ;
956
+ sh:minCount 1 ;
957
+ sh:severity sh:Warning ;
958
+ sh:message "A change log entry should name the person responsible for the change." ;
959
+ ] ;
960
+
961
+ # The ontology asks for "a link to a GitHub issue, PR or discussion"; the
962
+ # host below is a reading of that (it leaves out www.github.com), so it
963
+ # is a warning.
964
+ sh:property [
965
+ sh:path ds:githubLink ;
966
+ sh:name "GitHub"@en ;
967
+ sh:order 5 ;
968
+ sh:pattern "^https://github\\.com/" ;
969
+ sh:severity sh:Warning ;
970
+ sh:message "A change log entry's GitHub link should be an https URL on github.com." ;
971
+ ] ;
972
+
973
+ sh:property [
974
+ sh:path ds:githubLink ;
975
+ sh:datatype xsd:anyURI ;
976
+ sh:severity sh:Warning ;
977
+ sh:message "A change log entry's GitHub link should be typed as a URL (xsd:anyURI), not plain text." ;
978
+ ] .
979
+
980
+ # ───────────────────────────────────────────────────────────────
981
+ # TOKEN BINDING (derived by the transform, never authored)
982
+ # ───────────────────────────────────────────────────────────────
983
+
984
+ # A binding's "identity is the six-tuple (block, viaBlock, node, styleKey,
985
+ # styleState, rank)" and it consumes "exactly one" symbol, so each part is
986
+ # exactly one.
987
+ ds:TokenBindingShape a sh:NodeShape ;
988
+ sh:targetClass ds:TokenBinding ;
989
+ rdfs:label "Token Binding Shape" ;
990
+ skos:definition "Each part of a binding's identity (block, via block, node, style key, interaction state, rank) and its consumed symbol, exactly once." ;
991
+
992
+ sh:property [
993
+ sh:path [ sh:inversePath ds:hasTokenBinding ] ;
994
+ sh:minCount 1 ;
995
+ sh:maxCount 1 ;
996
+ sh:message "A token binding belongs to exactly one block." ;
997
+ ] ;
998
+
999
+ sh:property [
1000
+ sh:path ds:viaBlock ;
1001
+ sh:minCount 1 ;
1002
+ sh:maxCount 1 ;
1003
+ sh:nodeKind sh:IRI ;
1004
+ sh:message "A token binding needs exactly one via block." ;
1005
+ ] ;
1006
+
1007
+ # The range of viaBlock is ds:UIBlock. Every binding meets it today, but a
1008
+ # block typed with a kind the ontology does not declare (two are typed
1009
+ # ds:View) would fail it as soon as its anatomy yields bindings, so this
1010
+ # is a warning until every kind the source table uses is declared.
1011
+ sh:property [
1012
+ sh:path ds:viaBlock ;
1013
+ sh:class ds:UIBlock ;
1014
+ sh:severity sh:Warning ;
1015
+ sh:message "A token binding's via block should be a block." ;
1016
+ ] ;
1017
+
1018
+ sh:property [
1019
+ sh:path ds:node ;
1020
+ sh:minCount 1 ;
1021
+ sh:maxCount 1 ;
1022
+ sh:datatype xsd:string ;
1023
+ sh:message "A token binding needs exactly one node path, as text." ;
1024
+ ] ;
1025
+
1026
+ sh:property [
1027
+ sh:path anatomy:styleKey ;
1028
+ sh:minCount 1 ;
1029
+ sh:maxCount 1 ;
1030
+ sh:datatype xsd:string ;
1031
+ sh:message "A token binding needs exactly one style key, as text." ;
1032
+ ] ;
1033
+
1034
+ sh:property [
1035
+ sh:path anatomy:styleState ;
1036
+ sh:minCount 1 ;
1037
+ sh:maxCount 1 ;
1038
+ sh:datatype xsd:string ;
1039
+ sh:message "A token binding needs exactly one interaction state, as text." ;
1040
+ ] ;
1041
+
1042
+ sh:property [
1043
+ sh:path ds:rank ;
1044
+ sh:minCount 1 ;
1045
+ sh:maxCount 1 ;
1046
+ sh:datatype xsd:integer ;
1047
+ sh:minInclusive 1 ;
1048
+ sh:message "A token binding needs exactly one rank, a positive integer." ;
1049
+ ] ;
1050
+
1051
+ sh:property [
1052
+ sh:path ds:consumesSymbol ;
1053
+ sh:minCount 1 ;
1054
+ sh:maxCount 1 ;
1055
+ sh:nodeKind sh:IRI ;
1056
+ sh:message "A token binding consumes exactly one token symbol." ;
1057
+ ] .
1058
+
1059
+ # ───────────────────────────────────────────────────────────────
1060
+ # DECLARED CLASSES
1061
+ # ───────────────────────────────────────────────────────────────
1062
+
1063
+ # An instance typed only with a design-system class the ontology does not
1064
+ # declare is reached by no shape above, so it is never checked. This flags
1065
+ # each such type: a value of rdf:type in the ds: namespace must be a class
1066
+ # that ontology.ttl declares.
1067
+ ds:DeclaredClassShape a sh:NodeShape ;
1068
+ sh:targetSubjectsOf rdf:type ;
1069
+ rdfs:label "Declared Class Shape" ;
1070
+ skos:definition "Every design-system class an instance is typed with is declared by the ontology." ;
1071
+ sh:property [
1072
+ sh:path rdf:type ;
1073
+ sh:or (
1074
+ [ sh:class owl:Class ]
1075
+ [ sh:not [ sh:pattern "^https://ds\\.canonical\\.com/" ] ]
1076
+ ) ;
1077
+ sh:severity sh:Warning ;
1078
+ sh:message "An instance should be typed with a class the design-system ontology declares; no shape checks this one." ;
1079
+ ] .