@quickpipeaiab/domain 0.0.0-stage → 0.10.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.
@@ -0,0 +1,1788 @@
1
+ @prefix core: <https://id.quickpipe.ai/domain/core#> .
2
+ @prefix leads: <https://id.quickpipe.ai/domain/leads#> .
3
+ @prefix ai: <https://id.quickpipe.ai/domain/ai#> .
4
+ @prefix auth: <https://id.quickpipe.ai/domain/auth#> .
5
+ @prefix billing: <https://id.quickpipe.ai/domain/billing#> .
6
+ @prefix desk: <https://id.quickpipe.ai/domain/desk#> .
7
+ @prefix events: <https://id.quickpipe.ai/domain/events#> .
8
+ @prefix identity: <https://id.quickpipe.ai/domain/identity#> .
9
+ @prefix leads-vocab: <https://id.quickpipe.ai/domain/vocab/leads#> .
10
+ @prefix desk-vocab: <https://id.quickpipe.ai/domain/vocab/desk#> .
11
+ @prefix desk-shapes: <https://id.quickpipe.ai/domain/shapes/desk#> .
12
+ @prefix owl: <http://www.w3.org/2002/07/owl#> .
13
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
14
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
15
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
16
+
17
+ <https://id.quickpipe.ai/domain/shapes/desk>
18
+ a owl:Ontology ;
19
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.10.0/shapes/desk> ;
20
+ owl:versionInfo "0.10.0" ;
21
+ core:title "QuickPipe domain model: shapes of desk"@en .
22
+
23
+ desk-shapes:watch-list-shape a sh:NodeShape ;
24
+ sh:targetClass desk:watch-list ;
25
+ sh:closed true ;
26
+ sh:ignoredProperties ( rdf:type ) ;
27
+ sh:property [
28
+ sh:path core:id ;
29
+ sh:datatype xsd:string ;
30
+ sh:minCount 1 ;
31
+ sh:maxCount 1 ;
32
+ sh:message "A watch list has exactly one value for id, and the value is of the type xsd:string. The id is the deskWatchListId."
33
+ ] ;
34
+ sh:property [
35
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
36
+ sh:message "A watch list belongs to exactly one workspace."
37
+ ] ;
38
+ sh:property [
39
+ sh:path desk:has-watch-frequency ; sh:node desk-shapes:watch-frequency-value-shape ; sh:minCount 1 ; sh:maxCount 1 ;
40
+ sh:message "A watch list has exactly one watch frequency."
41
+ ] ;
42
+ sh:property [
43
+ sh:path core:has-status ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
44
+ sh:in ( desk-vocab:watch-list-status-active desk-vocab:watch-list-status-paused ) ;
45
+ sh:message "A watch list has exactly one status: active or paused."
46
+ ] .
47
+
48
+ desk-shapes:watch-frequency-value-shape a sh:NodeShape ;
49
+ sh:class core:concept ;
50
+ sh:property [
51
+ sh:path core:in-scheme ;
52
+ sh:hasValue desk-vocab:watch-frequency ;
53
+ sh:message "A watch frequency is a concept of the scheme of watch frequencies."
54
+ ] .
55
+
56
+ desk-shapes:approval-request-shape a sh:NodeShape ;
57
+ sh:targetClass desk:approval-request ;
58
+ sh:closed true ;
59
+ sh:ignoredProperties ( rdf:type ) ;
60
+ sh:property [
61
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
62
+ sh:message "An approval request has exactly one id."
63
+ ] ;
64
+ sh:property [
65
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
66
+ sh:message "An approval request belongs to exactly one workspace."
67
+ ] ;
68
+ sh:property [
69
+ sh:path desk:has-approval-level ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
70
+ sh:in ( desk-vocab:approval-level-approve desk-vocab:approval-level-approve-in-app ) ;
71
+ sh:message "An approval request has exactly one approval level: approve or approve-in-app."
72
+ ] ;
73
+ sh:property [
74
+ sh:path core:has-status ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
75
+ sh:in ( desk-vocab:approval-status-pending desk-vocab:approval-status-approved desk-vocab:approval-status-refused desk-vocab:approval-status-expired ) ;
76
+ sh:message "An approval request has exactly one status: pending, approved, refused or expired."
77
+ ] ;
78
+ sh:property [
79
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
80
+ sh:message "An approval request has at most one creation time."
81
+ ] ;
82
+ sh:property [
83
+ sh:path core:for-user ; sh:class core:user ; sh:maxCount 1 ;
84
+ sh:message "An approval request has at most one assignee."
85
+ ] .
86
+
87
+ desk-shapes:campaign-save-shape a sh:NodeShape ;
88
+ sh:targetClass desk:campaign-save ;
89
+ sh:property [
90
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:maxCount 1 ;
91
+ sh:message "A campaign save belongs to one workspace."
92
+ ] ;
93
+ sh:property [
94
+ sh:path desk:relays-action-request ; sh:maxCount 1 ;
95
+ sh:message "A campaign save has one request id."
96
+ ] ;
97
+ sh:property [
98
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
99
+ sh:message "A campaign save has at most one time of its first request."
100
+ ] .
101
+
102
+ desk-shapes:suggested-change-shape a sh:NodeShape ;
103
+ sh:targetClass desk:suggested-change ;
104
+ sh:closed true ;
105
+ sh:ignoredProperties ( rdf:type ) ;
106
+ sh:property [
107
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
108
+ sh:message "A suggested change has exactly one id."
109
+ ] ;
110
+ sh:property [
111
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
112
+ sh:message "A suggested change belongs to exactly one workspace."
113
+ ] ;
114
+ sh:property [
115
+ sh:path desk:about-record ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
116
+ sh:message "A suggested change is about exactly one record."
117
+ ] ;
118
+ sh:property [
119
+ sh:path desk:about-field ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
120
+ sh:message "A suggested change is about exactly one field."
121
+ ] ;
122
+ sh:property [
123
+ sh:path desk:has-old-value ; sh:datatype xsd:string ; sh:maxCount 1 ;
124
+ sh:message "A suggested change has at most one old value."
125
+ ] ;
126
+ sh:property [
127
+ sh:path desk:has-new-value ; sh:datatype xsd:string ; sh:maxCount 1 ;
128
+ sh:message "A suggested change has at most one new value."
129
+ ] ;
130
+ sh:property [
131
+ sh:path desk:has-value-source ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
132
+ sh:message "A suggested change has exactly one source."
133
+ ] ;
134
+ sh:property [
135
+ sh:path desk:seen-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
136
+ sh:message "A suggested change has exactly one seen at date."
137
+ ] ;
138
+ sh:property [
139
+ sh:path desk:judged-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
140
+ sh:message "A suggested change has at most one time of judgement."
141
+ ] ;
142
+ sh:property [
143
+ sh:path desk:has-recommendation-reason ; sh:datatype xsd:string ; sh:maxCount 1 ;
144
+ sh:message "A suggested change has at most one reason for its recommendation."
145
+ ] ;
146
+ sh:property [
147
+ sh:path desk:has-recommendation ; sh:class core:concept ; sh:maxCount 1 ;
148
+ sh:in ( desk-vocab:recommendation-replace desk-vocab:recommendation-keep ) ;
149
+ sh:message "A suggested change has at most one recommendation: replace or keep."
150
+ ] ;
151
+ sh:property [
152
+ sh:path core:has-status ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
153
+ sh:in ( desk-vocab:suggested-change-status-open desk-vocab:suggested-change-status-accepted desk-vocab:suggested-change-status-refused desk-vocab:suggested-change-status-expired ) ;
154
+ sh:message "A suggested change has exactly one status: open, accepted, refused or expired."
155
+ ] ;
156
+ sh:property [
157
+ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
158
+ sh:message "A suggested change has at most one start time."
159
+ ] ;
160
+ sh:property [
161
+ sh:path core:ended-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
162
+ sh:message "A suggested change has at most one end time."
163
+ ] .
164
+
165
+ desk-shapes:agent-call-audit-row-shape a sh:NodeShape ;
166
+ sh:targetClass desk:agent-call-audit-row ;
167
+ sh:closed true ;
168
+ sh:ignoredProperties ( rdf:type ) ;
169
+ sh:property [
170
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
171
+ sh:message "An agent call audit row has exactly one id."
172
+ ] ;
173
+ sh:property [
174
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
175
+ sh:message "An agent call audit row belongs to exactly one workspace."
176
+ ] ;
177
+ sh:property [
178
+ sh:path core:for-user ; sh:class core:user ; sh:maxCount 1 ;
179
+ sh:message "An agent call audit row has at most one user."
180
+ ] ;
181
+ sh:property [
182
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
183
+ sh:message "An agent call audit row has at most one time."
184
+ ] .
185
+
186
+ desk-shapes:webhook-shape a sh:NodeShape ;
187
+ sh:targetClass desk:webhook ;
188
+ sh:closed true ;
189
+ sh:ignoredProperties ( rdf:type ) ;
190
+ sh:message "A webhook of desk has only the properties of its class."@en ;
191
+ sh:property [ sh:path ai:has-correlation-id ; sh:datatype xsd:string ; sh:maxCount 1 ; sh:message "A webhook has at most one trace id."@en ] ;
192
+ sh:property [
193
+ sh:path core:id ;
194
+ sh:datatype xsd:string ;
195
+ sh:minCount 1 ;
196
+ sh:maxCount 1 ;
197
+ sh:message "A webhook of desk has exactly one id."@en
198
+ ] ;
199
+ sh:property [
200
+ sh:path core:generated-at ;
201
+ sh:datatype xsd:dateTime ;
202
+ sh:minCount 1 ;
203
+ sh:maxCount 1 ;
204
+ sh:message "A webhook of desk has exactly one creation time."@en
205
+ ] ;
206
+ sh:property [
207
+ sh:path desk:has-webhook-topic ;
208
+ sh:class core:concept ;
209
+ sh:minCount 1 ;
210
+ sh:maxCount 1 ;
211
+ sh:message "A webhook of desk has exactly one webhook topic of `desk`."@en
212
+ ] ;
213
+ sh:property [
214
+ sh:path core:in-workspace ;
215
+ sh:class core:workspace ;
216
+ sh:minCount 1 ;
217
+ sh:maxCount 1 ;
218
+ sh:message "A webhook of desk has exactly one workspace."@en
219
+ ] ;
220
+ sh:property [
221
+ sh:path desk:has-sequence-number ;
222
+ sh:datatype xsd:long ;
223
+ sh:minCount 1 ;
224
+ sh:maxCount 1 ;
225
+ sh:message "A webhook of desk has exactly one sequence number."@en
226
+ ] ;
227
+ sh:property [
228
+ sh:path desk:relays-request ;
229
+ sh:datatype xsd:string ;
230
+ sh:maxCount 1 ;
231
+ sh:message "A webhook of desk has at most one request id."@en
232
+ ] ;
233
+ sh:property [
234
+ sh:path identity:of-subject ;
235
+ sh:class identity:subject ;
236
+ sh:maxCount 1 ;
237
+ sh:message "A webhook of desk has at most one subject."@en
238
+ ] ;
239
+ sh:property [
240
+ sh:path events:has-seq ;
241
+ sh:datatype xsd:long ;
242
+ sh:maxCount 1 ;
243
+ sh:message "A webhook of desk has at most one subject sequence."@en
244
+ ] ;
245
+ sh:property [
246
+ sh:path events:has-subject-identifier ;
247
+ sh:class identity:identifier ;
248
+ sh:message "A webhook of desk has identifiers of type identifier."@en
249
+ ] ;
250
+ sh:property [
251
+ sh:path desk:relays-run ;
252
+ sh:datatype xsd:string ;
253
+ sh:maxCount 1 ;
254
+ sh:message "A webhook of desk has at most one run of leads."@en
255
+ ] ;
256
+ sh:property [
257
+ sh:path desk:relays-kai-run ;
258
+ sh:datatype xsd:string ;
259
+ sh:maxCount 1 ;
260
+ sh:message "A webhook of desk has at most one run of kai-agent."@en
261
+ ] ;
262
+ sh:property [
263
+ sh:path desk:relays-pipeline ;
264
+ sh:datatype xsd:string ;
265
+ sh:maxCount 1 ;
266
+ sh:message "A webhook of desk has at most one pipeline."@en
267
+ ] ;
268
+ sh:property [
269
+ sh:path desk:relays-chosen-accounts ;
270
+ sh:datatype xsd:integer ;
271
+ sh:maxCount 1 ;
272
+ sh:message "A webhook of desk has at most one count of chosen accounts."@en
273
+ ] ;
274
+ sh:property [
275
+ sh:path desk:relays-chosen-persons ;
276
+ sh:datatype xsd:integer ;
277
+ sh:maxCount 1 ;
278
+ sh:message "A webhook of desk has at most one count of chosen persons."@en
279
+ ] ;
280
+ sh:property [
281
+ sh:path core:has-status ;
282
+ sh:class core:concept ;
283
+ sh:maxCount 1 ;
284
+ sh:message "A webhook of desk has at most one status."@en
285
+ ] ;
286
+ sh:property [
287
+ sh:path desk:relays-flow ;
288
+ sh:datatype xsd:string ;
289
+ sh:maxCount 1 ;
290
+ sh:message "A webhook of desk has at most one flow."@en
291
+ ] ;
292
+ sh:property [
293
+ sh:path desk:relays-action-request ;
294
+ sh:datatype xsd:string ;
295
+ sh:maxCount 1 ;
296
+ sh:message "A webhook of desk has at most one action request."@en
297
+ ] ;
298
+ sh:property [
299
+ sh:path desk:has-flow-action ;
300
+ sh:class core:concept ;
301
+ sh:maxCount 1 ;
302
+ sh:message "A webhook of desk has at most one action."@en
303
+ ] ;
304
+ sh:property [
305
+ sh:path desk:starts-run ;
306
+ sh:datatype xsd:string ;
307
+ sh:maxCount 1 ;
308
+ sh:message "A webhook of desk has at most one started run."@en
309
+ ] ;
310
+ sh:property [
311
+ sh:path desk:relays-reason ;
312
+ sh:datatype xsd:string ;
313
+ sh:maxCount 1 ;
314
+ sh:message "A webhook of desk has at most one reason."@en
315
+ ] ;
316
+ sh:property [
317
+ sh:path desk:has-action-result ;
318
+ sh:datatype xsd:string ;
319
+ sh:maxCount 1 ;
320
+ sh:message "A webhook of desk has at most one result."@en
321
+ ] ;
322
+ sh:property [
323
+ sh:path desk:relays-phase ;
324
+ sh:class core:concept ;
325
+ sh:maxCount 1 ;
326
+ sh:message "A webhook of desk has at most one phase."@en
327
+ ] .
328
+
329
+ desk-shapes:workspace-created-shape a sh:NodeShape ;
330
+ sh:targetClass desk:workspace-created ;
331
+ sh:closed true ;
332
+ sh:ignoredProperties ( rdf:type ) ;
333
+ sh:message "A workspace created webhook has only the properties of its class."@en ;
334
+ sh:property [
335
+ sh:path core:id ;
336
+ sh:datatype xsd:string ;
337
+ sh:minCount 1 ;
338
+ sh:maxCount 1 ;
339
+ sh:message "A workspace created webhook has exactly one id."@en
340
+ ] ;
341
+ sh:property [
342
+ sh:path core:generated-at ;
343
+ sh:datatype xsd:dateTime ;
344
+ sh:minCount 1 ;
345
+ sh:maxCount 1 ;
346
+ sh:message "A workspace created webhook has exactly one creation time."@en
347
+ ] ;
348
+ sh:property [
349
+ sh:path desk:has-webhook-topic ;
350
+ sh:class core:concept ;
351
+ sh:minCount 1 ;
352
+ sh:maxCount 1 ;
353
+ sh:in ( desk-vocab:webhook-topic-workspace-created ) ;
354
+ sh:message "A workspace created webhook has exactly one webhook topic of its class."@en
355
+ ] ;
356
+ sh:property [
357
+ sh:path core:in-workspace ;
358
+ sh:class core:workspace ;
359
+ sh:minCount 1 ;
360
+ sh:maxCount 1 ;
361
+ sh:message "A workspace created webhook has exactly one workspace."@en
362
+ ] ;
363
+ sh:property [
364
+ sh:path desk:has-sequence-number ;
365
+ sh:datatype xsd:long ;
366
+ sh:minCount 1 ;
367
+ sh:maxCount 1 ;
368
+ sh:message "A workspace created webhook has exactly one sequence number."@en
369
+ ] ;
370
+ sh:property [
371
+ sh:path core:has-name ;
372
+ sh:datatype xsd:string ;
373
+ sh:minCount 1 ;
374
+ sh:maxCount 1 ;
375
+ sh:message "A workspace created webhook has exactly one workspace name."@en
376
+ ] .
377
+
378
+ desk-shapes:workspace-renamed-shape a sh:NodeShape ;
379
+ sh:targetClass desk:workspace-renamed ;
380
+ sh:closed true ;
381
+ sh:ignoredProperties ( rdf:type ) ;
382
+ sh:message "A workspace renamed webhook has only the properties of its class."@en ;
383
+ sh:property [
384
+ sh:path core:id ;
385
+ sh:datatype xsd:string ;
386
+ sh:minCount 1 ;
387
+ sh:maxCount 1 ;
388
+ sh:message "A workspace renamed webhook has exactly one id."@en
389
+ ] ;
390
+ sh:property [
391
+ sh:path core:generated-at ;
392
+ sh:datatype xsd:dateTime ;
393
+ sh:minCount 1 ;
394
+ sh:maxCount 1 ;
395
+ sh:message "A workspace renamed webhook has exactly one creation time."@en
396
+ ] ;
397
+ sh:property [
398
+ sh:path desk:has-webhook-topic ;
399
+ sh:class core:concept ;
400
+ sh:minCount 1 ;
401
+ sh:maxCount 1 ;
402
+ sh:in ( desk-vocab:webhook-topic-workspace-renamed ) ;
403
+ sh:message "A workspace renamed webhook has exactly one webhook topic of its class."@en
404
+ ] ;
405
+ sh:property [
406
+ sh:path core:in-workspace ;
407
+ sh:class core:workspace ;
408
+ sh:minCount 1 ;
409
+ sh:maxCount 1 ;
410
+ sh:message "A workspace renamed webhook has exactly one workspace."@en
411
+ ] ;
412
+ sh:property [
413
+ sh:path desk:has-sequence-number ;
414
+ sh:datatype xsd:long ;
415
+ sh:minCount 1 ;
416
+ sh:maxCount 1 ;
417
+ sh:message "A workspace renamed webhook has exactly one sequence number."@en
418
+ ] ;
419
+ sh:property [
420
+ sh:path core:has-name ;
421
+ sh:datatype xsd:string ;
422
+ sh:minCount 1 ;
423
+ sh:maxCount 1 ;
424
+ sh:message "A workspace renamed webhook has exactly one workspace name."@en
425
+ ] .
426
+
427
+ desk-shapes:workspace-suspended-shape a sh:NodeShape ;
428
+ sh:targetClass desk:workspace-suspended ;
429
+ sh:closed true ;
430
+ sh:ignoredProperties ( rdf:type ) ;
431
+ sh:message "A workspace suspended webhook has only the properties of its class."@en ;
432
+ sh:property [
433
+ sh:path core:id ;
434
+ sh:datatype xsd:string ;
435
+ sh:minCount 1 ;
436
+ sh:maxCount 1 ;
437
+ sh:message "A workspace suspended webhook has exactly one id."@en
438
+ ] ;
439
+ sh:property [
440
+ sh:path core:generated-at ;
441
+ sh:datatype xsd:dateTime ;
442
+ sh:minCount 1 ;
443
+ sh:maxCount 1 ;
444
+ sh:message "A workspace suspended webhook has exactly one creation time."@en
445
+ ] ;
446
+ sh:property [
447
+ sh:path desk:has-webhook-topic ;
448
+ sh:class core:concept ;
449
+ sh:minCount 1 ;
450
+ sh:maxCount 1 ;
451
+ sh:in ( desk-vocab:webhook-topic-workspace-suspended ) ;
452
+ sh:message "A workspace suspended webhook has exactly one webhook topic of its class."@en
453
+ ] ;
454
+ sh:property [
455
+ sh:path core:in-workspace ;
456
+ sh:class core:workspace ;
457
+ sh:minCount 1 ;
458
+ sh:maxCount 1 ;
459
+ sh:message "A workspace suspended webhook has exactly one workspace."@en
460
+ ] ;
461
+ sh:property [
462
+ sh:path desk:has-sequence-number ;
463
+ sh:datatype xsd:long ;
464
+ sh:minCount 1 ;
465
+ sh:maxCount 1 ;
466
+ sh:message "A workspace suspended webhook has exactly one sequence number."@en
467
+ ] .
468
+
469
+ desk-shapes:workspace-resumed-shape a sh:NodeShape ;
470
+ sh:targetClass desk:workspace-resumed ;
471
+ sh:closed true ;
472
+ sh:ignoredProperties ( rdf:type ) ;
473
+ sh:message "A workspace resumed webhook has only the properties of its class."@en ;
474
+ sh:property [
475
+ sh:path core:id ;
476
+ sh:datatype xsd:string ;
477
+ sh:minCount 1 ;
478
+ sh:maxCount 1 ;
479
+ sh:message "A workspace resumed webhook has exactly one id."@en
480
+ ] ;
481
+ sh:property [
482
+ sh:path core:generated-at ;
483
+ sh:datatype xsd:dateTime ;
484
+ sh:minCount 1 ;
485
+ sh:maxCount 1 ;
486
+ sh:message "A workspace resumed webhook has exactly one creation time."@en
487
+ ] ;
488
+ sh:property [
489
+ sh:path desk:has-webhook-topic ;
490
+ sh:class core:concept ;
491
+ sh:minCount 1 ;
492
+ sh:maxCount 1 ;
493
+ sh:in ( desk-vocab:webhook-topic-workspace-resumed ) ;
494
+ sh:message "A workspace resumed webhook has exactly one webhook topic of its class."@en
495
+ ] ;
496
+ sh:property [
497
+ sh:path core:in-workspace ;
498
+ sh:class core:workspace ;
499
+ sh:minCount 1 ;
500
+ sh:maxCount 1 ;
501
+ sh:message "A workspace resumed webhook has exactly one workspace."@en
502
+ ] ;
503
+ sh:property [
504
+ sh:path desk:has-sequence-number ;
505
+ sh:datatype xsd:long ;
506
+ sh:minCount 1 ;
507
+ sh:maxCount 1 ;
508
+ sh:message "A workspace resumed webhook has exactly one sequence number."@en
509
+ ] .
510
+
511
+ desk-shapes:workspace-closed-shape a sh:NodeShape ;
512
+ sh:targetClass desk:workspace-closed ;
513
+ sh:closed true ;
514
+ sh:ignoredProperties ( rdf:type ) ;
515
+ sh:message "A workspace closed webhook has only the properties of its class."@en ;
516
+ sh:property [
517
+ sh:path core:id ;
518
+ sh:datatype xsd:string ;
519
+ sh:minCount 1 ;
520
+ sh:maxCount 1 ;
521
+ sh:message "A workspace closed webhook has exactly one id."@en
522
+ ] ;
523
+ sh:property [
524
+ sh:path core:generated-at ;
525
+ sh:datatype xsd:dateTime ;
526
+ sh:minCount 1 ;
527
+ sh:maxCount 1 ;
528
+ sh:message "A workspace closed webhook has exactly one creation time."@en
529
+ ] ;
530
+ sh:property [
531
+ sh:path desk:has-webhook-topic ;
532
+ sh:class core:concept ;
533
+ sh:minCount 1 ;
534
+ sh:maxCount 1 ;
535
+ sh:in ( desk-vocab:webhook-topic-workspace-closed ) ;
536
+ sh:message "A workspace closed webhook has exactly one webhook topic of its class."@en
537
+ ] ;
538
+ sh:property [
539
+ sh:path core:in-workspace ;
540
+ sh:class core:workspace ;
541
+ sh:minCount 1 ;
542
+ sh:maxCount 1 ;
543
+ sh:message "A workspace closed webhook has exactly one workspace."@en
544
+ ] ;
545
+ sh:property [
546
+ sh:path desk:has-sequence-number ;
547
+ sh:datatype xsd:long ;
548
+ sh:minCount 1 ;
549
+ sh:maxCount 1 ;
550
+ sh:message "A workspace closed webhook has exactly one sequence number."@en
551
+ ] .
552
+
553
+ desk-shapes:subject-forgotten-shape a sh:NodeShape ;
554
+ sh:targetClass desk:subject-forgotten ;
555
+ sh:closed true ;
556
+ sh:ignoredProperties ( rdf:type ) ;
557
+ sh:message "A subject forgotten webhook has only the properties of its class."@en ;
558
+ sh:property [
559
+ sh:path core:id ;
560
+ sh:datatype xsd:string ;
561
+ sh:minCount 1 ;
562
+ sh:maxCount 1 ;
563
+ sh:message "A subject forgotten webhook has exactly one id."@en
564
+ ] ;
565
+ sh:property [
566
+ sh:path core:generated-at ;
567
+ sh:datatype xsd:dateTime ;
568
+ sh:minCount 1 ;
569
+ sh:maxCount 1 ;
570
+ sh:message "A subject forgotten webhook has exactly one creation time."@en
571
+ ] ;
572
+ sh:property [
573
+ sh:path desk:has-webhook-topic ;
574
+ sh:class core:concept ;
575
+ sh:minCount 1 ;
576
+ sh:maxCount 1 ;
577
+ sh:in ( desk-vocab:webhook-topic-subject-forgotten ) ;
578
+ sh:message "A subject forgotten webhook has exactly one webhook topic of its class."@en
579
+ ] ;
580
+ sh:property [
581
+ sh:path core:in-workspace ;
582
+ sh:class core:workspace ;
583
+ sh:minCount 1 ;
584
+ sh:maxCount 1 ;
585
+ sh:message "A subject forgotten webhook has exactly one workspace."@en
586
+ ] ;
587
+ sh:property [
588
+ sh:path desk:has-sequence-number ;
589
+ sh:datatype xsd:long ;
590
+ sh:minCount 1 ;
591
+ sh:maxCount 1 ;
592
+ sh:message "A subject forgotten webhook has exactly one sequence number."@en
593
+ ] ;
594
+ sh:property [
595
+ sh:path desk:relays-request ;
596
+ sh:datatype xsd:string ;
597
+ sh:minCount 1 ;
598
+ sh:maxCount 1 ;
599
+ sh:message "A subject forgotten webhook has exactly one request id."@en
600
+ ] ;
601
+ sh:property [
602
+ sh:path identity:of-subject ;
603
+ sh:class identity:subject ;
604
+ sh:maxCount 1 ;
605
+ sh:message "A subject forgotten webhook has at most one subject."@en
606
+ ] ;
607
+ sh:property [
608
+ sh:path events:has-seq ;
609
+ sh:datatype xsd:long ;
610
+ sh:maxCount 1 ;
611
+ sh:message "A subject forgotten webhook has at most one subject sequence."@en
612
+ ] ;
613
+ sh:property [
614
+ sh:path events:has-subject-identifier ;
615
+ sh:class identity:identifier ;
616
+ sh:message "A subject forgotten webhook has identifiers of type identifier."@en
617
+ ] .
618
+
619
+ desk-shapes:subject-export-requested-shape a sh:NodeShape ;
620
+ sh:targetClass desk:subject-export-requested ;
621
+ sh:closed true ;
622
+ sh:ignoredProperties ( rdf:type ) ;
623
+ sh:message "A subject export requested webhook has only the properties of its class."@en ;
624
+ sh:property [
625
+ sh:path core:id ;
626
+ sh:datatype xsd:string ;
627
+ sh:minCount 1 ;
628
+ sh:maxCount 1 ;
629
+ sh:message "A subject export requested webhook has exactly one id."@en
630
+ ] ;
631
+ sh:property [
632
+ sh:path core:generated-at ;
633
+ sh:datatype xsd:dateTime ;
634
+ sh:minCount 1 ;
635
+ sh:maxCount 1 ;
636
+ sh:message "A subject export requested webhook has exactly one creation time."@en
637
+ ] ;
638
+ sh:property [
639
+ sh:path desk:has-webhook-topic ;
640
+ sh:class core:concept ;
641
+ sh:minCount 1 ;
642
+ sh:maxCount 1 ;
643
+ sh:in ( desk-vocab:webhook-topic-subject-export-requested ) ;
644
+ sh:message "A subject export requested webhook has exactly one webhook topic of its class."@en
645
+ ] ;
646
+ sh:property [
647
+ sh:path core:in-workspace ;
648
+ sh:class core:workspace ;
649
+ sh:minCount 1 ;
650
+ sh:maxCount 1 ;
651
+ sh:message "A subject export requested webhook has exactly one workspace."@en
652
+ ] ;
653
+ sh:property [
654
+ sh:path desk:has-sequence-number ;
655
+ sh:datatype xsd:long ;
656
+ sh:minCount 1 ;
657
+ sh:maxCount 1 ;
658
+ sh:message "A subject export requested webhook has exactly one sequence number."@en
659
+ ] ;
660
+ sh:property [
661
+ sh:path desk:relays-request ;
662
+ sh:datatype xsd:string ;
663
+ sh:minCount 1 ;
664
+ sh:maxCount 1 ;
665
+ sh:message "A subject export requested webhook has exactly one request id."@en
666
+ ] ;
667
+ sh:property [
668
+ sh:path identity:of-subject ;
669
+ sh:class identity:subject ;
670
+ sh:maxCount 1 ;
671
+ sh:message "A subject export requested webhook has at most one subject."@en
672
+ ] ;
673
+ sh:property [
674
+ sh:path events:has-seq ;
675
+ sh:datatype xsd:long ;
676
+ sh:maxCount 1 ;
677
+ sh:message "A subject export requested webhook has at most one subject sequence."@en
678
+ ] ;
679
+ sh:property [
680
+ sh:path events:has-subject-identifier ;
681
+ sh:class identity:identifier ;
682
+ sh:message "A subject export requested webhook has identifiers of type identifier."@en
683
+ ] .
684
+
685
+ desk-shapes:run-completed-shape a sh:NodeShape ;
686
+ sh:targetClass desk:run-completed ;
687
+ sh:closed true ;
688
+ sh:ignoredProperties ( rdf:type ) ;
689
+ sh:message "A run completed webhook has only the properties of its class."@en ;
690
+ sh:property [
691
+ sh:path core:id ;
692
+ sh:datatype xsd:string ;
693
+ sh:minCount 1 ;
694
+ sh:maxCount 1 ;
695
+ sh:message "A run completed webhook has exactly one id."@en
696
+ ] ;
697
+ sh:property [
698
+ sh:path core:generated-at ;
699
+ sh:datatype xsd:dateTime ;
700
+ sh:minCount 1 ;
701
+ sh:maxCount 1 ;
702
+ sh:message "A run completed webhook has exactly one creation time."@en
703
+ ] ;
704
+ sh:property [
705
+ sh:path desk:has-webhook-topic ;
706
+ sh:class core:concept ;
707
+ sh:minCount 1 ;
708
+ sh:maxCount 1 ;
709
+ sh:in ( desk-vocab:webhook-topic-run-completed ) ;
710
+ sh:message "A run completed webhook has exactly one webhook topic of its class."@en
711
+ ] ;
712
+ sh:property [
713
+ sh:path core:in-workspace ;
714
+ sh:class core:workspace ;
715
+ sh:minCount 1 ;
716
+ sh:maxCount 1 ;
717
+ sh:message "A run completed webhook has exactly one workspace."@en
718
+ ] ;
719
+ sh:property [
720
+ sh:path desk:has-sequence-number ;
721
+ sh:datatype xsd:long ;
722
+ sh:minCount 1 ;
723
+ sh:maxCount 1 ;
724
+ sh:message "A run completed webhook has exactly one sequence number."@en
725
+ ] ;
726
+ sh:property [
727
+ sh:path desk:relays-run ;
728
+ sh:datatype xsd:string ;
729
+ sh:minCount 1 ;
730
+ sh:maxCount 1 ;
731
+ sh:message "A run completed webhook has exactly one run of leads."@en
732
+ ] ;
733
+ sh:property [
734
+ sh:path desk:relays-kai-run ;
735
+ sh:datatype xsd:string ;
736
+ sh:maxCount 1 ;
737
+ sh:message "A run completed webhook has at most one run of kai-agent."@en
738
+ ] ;
739
+ sh:property [
740
+ sh:path desk:relays-pipeline ;
741
+ sh:datatype xsd:string ;
742
+ sh:minCount 1 ;
743
+ sh:maxCount 1 ;
744
+ sh:message "A run completed webhook has exactly one pipeline."@en
745
+ ] ;
746
+ sh:property [
747
+ sh:path core:has-status ;
748
+ sh:class core:concept ;
749
+ sh:minCount 1 ;
750
+ sh:maxCount 1 ;
751
+ sh:in ( leads-vocab:status-completed leads-vocab:status-failed leads-vocab:status-cancelled leads-vocab:run-status-expired ) ;
752
+ sh:message "A run completed webhook has exactly one status: completed, failed, cancelled or expired."@en
753
+ ] ;
754
+ sh:property [
755
+ sh:path desk:relays-chosen-accounts ;
756
+ sh:datatype xsd:integer ;
757
+ sh:minInclusive 0 ;
758
+ sh:maxCount 1 ;
759
+ sh:message "A run completed webhook has at most one count of chosen accounts."@en
760
+ ] ;
761
+ sh:property [
762
+ sh:path desk:relays-chosen-persons ;
763
+ sh:datatype xsd:integer ;
764
+ sh:minInclusive 0 ;
765
+ sh:maxCount 1 ;
766
+ sh:message "A run completed webhook has at most one count of chosen persons."@en
767
+ ] .
768
+
769
+ desk-shapes:action-completed-shape a sh:NodeShape ;
770
+ sh:targetClass desk:action-completed ;
771
+ sh:closed true ;
772
+ sh:ignoredProperties ( rdf:type ) ;
773
+ sh:message "An action completed webhook has only the properties of its class."@en ;
774
+ sh:property [
775
+ sh:path core:id ;
776
+ sh:datatype xsd:string ;
777
+ sh:minCount 1 ;
778
+ sh:maxCount 1 ;
779
+ sh:message "An action completed webhook has exactly one an id."@en
780
+ ] ;
781
+ sh:property [
782
+ sh:path core:generated-at ;
783
+ sh:datatype xsd:dateTime ;
784
+ sh:minCount 1 ;
785
+ sh:maxCount 1 ;
786
+ sh:message "An action completed webhook has exactly one creation time."@en
787
+ ] ;
788
+ sh:property [
789
+ sh:path desk:has-webhook-topic ;
790
+ sh:class core:concept ;
791
+ sh:minCount 1 ;
792
+ sh:maxCount 1 ;
793
+ sh:in ( desk-vocab:webhook-topic-action-completed ) ;
794
+ sh:message "An action completed webhook has exactly one webhook topic of its class."@en
795
+ ] ;
796
+ sh:property [
797
+ sh:path core:in-workspace ;
798
+ sh:class core:workspace ;
799
+ sh:minCount 1 ;
800
+ sh:maxCount 1 ;
801
+ sh:message "An action completed webhook has exactly one workspace."@en
802
+ ] ;
803
+ sh:property [
804
+ sh:path desk:has-sequence-number ;
805
+ sh:datatype xsd:long ;
806
+ sh:minCount 1 ;
807
+ sh:maxCount 1 ;
808
+ sh:message "An action completed webhook has exactly one sequence number."@en
809
+ ] ;
810
+ sh:property [
811
+ sh:path desk:relays-flow ;
812
+ sh:datatype xsd:string ;
813
+ sh:minCount 1 ;
814
+ sh:maxCount 1 ;
815
+ sh:message "An action completed webhook has exactly one flow."@en
816
+ ] ;
817
+ sh:property [
818
+ sh:path desk:relays-action-request ;
819
+ sh:datatype xsd:string ;
820
+ sh:minCount 1 ;
821
+ sh:maxCount 1 ;
822
+ sh:message "An action completed webhook has exactly one an action request."@en
823
+ ] ;
824
+ sh:property [
825
+ sh:path desk:has-flow-action ;
826
+ sh:class core:concept ;
827
+ sh:minCount 1 ;
828
+ sh:maxCount 1 ;
829
+ sh:in ( desk-vocab:flow-action-research-start desk-vocab:flow-action-research-read desk-vocab:flow-action-research-estimate desk-vocab:flow-action-prospect-estimate desk-vocab:flow-action-prospect-start desk-vocab:flow-action-run-status desk-vocab:flow-action-run-cancel desk-vocab:flow-action-accounts-read desk-vocab:flow-action-accounts-choose desk-vocab:flow-action-persons-read desk-vocab:flow-action-persons-choose desk-vocab:flow-action-industries-read desk-vocab:flow-action-leads-examples desk-vocab:flow-action-leads-pick desk-vocab:flow-action-campaigns-list desk-vocab:flow-action-campaign-add desk-vocab:flow-action-campaign-save desk-vocab:flow-action-campaign-start desk-vocab:flow-action-offers-read desk-vocab:flow-action-offer-save desk-vocab:flow-action-segment-save desk-vocab:flow-action-mailboxes-read desk-vocab:flow-action-records-commit desk-vocab:flow-action-icps-read desk-vocab:flow-action-leads-facets desk-vocab:flow-action-people-estimate ) ;
830
+ sh:message "An action completed webhook has exactly one an action."@en
831
+ ] ;
832
+ sh:property [
833
+ sh:path core:has-status ;
834
+ sh:class core:concept ;
835
+ sh:minCount 1 ;
836
+ sh:maxCount 1 ;
837
+ sh:in ( leads-vocab:status-completed leads-vocab:status-failed ) ;
838
+ sh:message "An action completed webhook has exactly one status: completed or failed."@en
839
+ ] ;
840
+ sh:property [
841
+ sh:path desk:starts-run ;
842
+ sh:datatype xsd:string ;
843
+ sh:maxCount 1 ;
844
+ sh:message "An action completed webhook has at most one started run."@en
845
+ ] ;
846
+ sh:property [
847
+ sh:path desk:relays-reason ;
848
+ sh:datatype xsd:string ;
849
+ sh:maxCount 1 ;
850
+ sh:message "An action completed webhook has at most one reason."@en
851
+ ] ;
852
+ sh:property [
853
+ sh:path desk:has-action-result ;
854
+ sh:datatype xsd:string ;
855
+ sh:maxCount 1 ;
856
+ sh:message "An action completed webhook has at most one result."@en
857
+ ] .
858
+
859
+ desk-shapes:run-waiting-shape a sh:NodeShape ;
860
+ sh:targetClass desk:run-waiting ;
861
+ sh:closed true ;
862
+ sh:ignoredProperties ( rdf:type ) ;
863
+ sh:message "A run waiting webhook has only the properties of its class."@en ;
864
+ sh:property [
865
+ sh:path core:id ;
866
+ sh:datatype xsd:string ;
867
+ sh:minCount 1 ;
868
+ sh:maxCount 1 ;
869
+ sh:message "A run waiting webhook has exactly one id."@en
870
+ ] ;
871
+ sh:property [
872
+ sh:path core:generated-at ;
873
+ sh:datatype xsd:dateTime ;
874
+ sh:minCount 1 ;
875
+ sh:maxCount 1 ;
876
+ sh:message "A run waiting webhook has exactly one creation time."@en
877
+ ] ;
878
+ sh:property [
879
+ sh:path desk:has-webhook-topic ;
880
+ sh:class core:concept ;
881
+ sh:minCount 1 ;
882
+ sh:maxCount 1 ;
883
+ sh:in ( desk-vocab:webhook-topic-run-waiting ) ;
884
+ sh:message "A run waiting webhook has exactly one webhook topic of its class."@en
885
+ ] ;
886
+ sh:property [
887
+ sh:path core:in-workspace ;
888
+ sh:class core:workspace ;
889
+ sh:minCount 1 ;
890
+ sh:maxCount 1 ;
891
+ sh:message "A run waiting webhook has exactly one workspace."@en
892
+ ] ;
893
+ sh:property [
894
+ sh:path desk:has-sequence-number ;
895
+ sh:datatype xsd:long ;
896
+ sh:minCount 1 ;
897
+ sh:maxCount 1 ;
898
+ sh:message "A run waiting webhook has exactly one sequence number."@en
899
+ ] ;
900
+ sh:property [
901
+ sh:path desk:relays-run ;
902
+ sh:datatype xsd:string ;
903
+ sh:minCount 1 ;
904
+ sh:maxCount 1 ;
905
+ sh:message "A run waiting webhook has exactly one run of leads."@en
906
+ ] ;
907
+ sh:property [
908
+ sh:path desk:relays-kai-run ;
909
+ sh:datatype xsd:string ;
910
+ sh:maxCount 1 ;
911
+ sh:message "A run waiting webhook has at most one run of kai-agent."@en
912
+ ] ;
913
+ sh:property [
914
+ sh:path desk:relays-pipeline ;
915
+ sh:datatype xsd:string ;
916
+ sh:minCount 1 ;
917
+ sh:maxCount 1 ;
918
+ sh:message "A run waiting webhook has exactly one pipeline."@en
919
+ ] ;
920
+ sh:property [
921
+ sh:path desk:relays-phase ;
922
+ sh:class core:concept ;
923
+ sh:minCount 1 ;
924
+ sh:maxCount 1 ;
925
+ sh:in ( leads-vocab:phase-companies leads-vocab:phase-people ) ;
926
+ sh:message "A run waiting webhook has exactly one phase: companies or people."@en
927
+ ] .
928
+
929
+ desk-shapes:user-shape a sh:NodeShape ;
930
+ sh:targetClass core:user ;
931
+ sh:or (
932
+ [ sh:class desk:staff-user ]
933
+ [ sh:path [ sh:inversePath core:for-user ] ; sh:qualifiedValueShape [ sh:class desk:teammate ] ; sh:qualifiedMinCount 1 ] ) ;
934
+ sh:message "A user is a teammate of a workspace, a staff user, or both."@en .
935
+
936
+ desk-shapes:staff-user-shape a sh:NodeShape ;
937
+ sh:targetClass desk:staff-user ;
938
+ sh:property [
939
+ sh:path desk:has-access-role ; sh:minCount 1 ; sh:maxCount 1 ;
940
+ sh:in ( desk-vocab:access-role-finance desk-vocab:access-role-support desk-vocab:access-role-ops ) ;
941
+ sh:message "A staff user has one staff access-role: finance, support or ops."@en
942
+ ] .
943
+
944
+ desk-shapes:teammate-shape a sh:NodeShape ;
945
+ sh:targetClass desk:teammate ;
946
+ sh:property [
947
+ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ;
948
+ sh:message "A teammate is one user."@en
949
+ ] , [
950
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
951
+ sh:message "A teammate is in one workspace."@en
952
+ ] , [
953
+ sh:path desk:has-access-role ; sh:minCount 1 ; sh:maxCount 1 ;
954
+ sh:not [ sh:in ( desk-vocab:access-role-finance desk-vocab:access-role-support desk-vocab:access-role-ops ) ] ;
955
+ sh:message "A teammate has one access-role of a workspace, not a staff access-role."@en
956
+ ] , [
957
+ sh:path desk:has-given-name ; sh:datatype xsd:string ; sh:maxCount 1 ;
958
+ sh:message "A teammate has at most one given name, as a text."@en
959
+ ] , [
960
+ sh:path desk:has-family-name ; sh:datatype xsd:string ; sh:maxCount 1 ;
961
+ sh:message "A teammate has at most one family name, as a text."@en
962
+ ] , [
963
+ sh:path desk:has-signature ; sh:datatype xsd:string ; sh:maxCount 1 ; sh:maxLength 1000 ;
964
+ sh:message "A teammate has at most one signature, as a text of at most 1000 characters."@en
965
+ ] .
966
+
967
+ desk-shapes:teammate-user-shape a sh:NodeShape ;
968
+ sh:targetClass desk:teammate-user ;
969
+ sh:property [
970
+ sh:path [ sh:inversePath core:for-user ] ; sh:qualifiedValueShape [ sh:class desk:teammate ] ; sh:qualifiedMinCount 1 ;
971
+ sh:message "A teammate user has one or more teammate records."@en
972
+ ] .
973
+
974
+ desk-shapes:account-rank-shape a sh:NodeShape ;
975
+ sh:targetClass desk:account-rank ;
976
+ sh:closed true ;
977
+ sh:ignoredProperties ( rdf:type ) ;
978
+ sh:property [
979
+ sh:path desk:of-leads-run-id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
980
+ sh:message "An account rank orders exactly one run of leads."@en
981
+ ] ;
982
+ sh:property [
983
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
984
+ sh:message "An account rank belongs to exactly one workspace."@en
985
+ ] ;
986
+ sh:property [
987
+ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ;
988
+ sh:message "An account rank has exactly one user who asked for it."@en
989
+ ] ;
990
+ sh:property [
991
+ sh:path desk:has-kai-agent-run-id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
992
+ sh:message "An account rank has exactly one run of kai-agent."@en
993
+ ] ;
994
+ sh:property [
995
+ sh:path desk:has-rank-number ; sh:datatype xsd:integer ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 1 ;
996
+ sh:message "An account rank has exactly one rank number, and the number is at least 1."@en
997
+ ] ;
998
+ sh:property [
999
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1000
+ sh:message "An account rank has exactly one time that desk kept it."@en
1001
+ ] .
1002
+
1003
+ desk-shapes:sync-problem-shape a sh:NodeShape ;
1004
+ sh:targetClass desk:sync-problem ;
1005
+ sh:closed true ;
1006
+ sh:ignoredProperties ( rdf:type ) ;
1007
+ sh:or (
1008
+ [ sh:property
1009
+ [ sh:path desk:has-sync-step ; sh:in ( desk-vocab:sync-step-erasure desk-vocab:sync-step-export ) ] ,
1010
+ [ sh:path desk:for-request ; sh:minCount 1 ] ,
1011
+ [ sh:path desk:has-receiver ; sh:maxCount 0 ]
1012
+ ]
1013
+ [ sh:property
1014
+ [ sh:path desk:has-sync-step ; sh:in ( desk-vocab:sync-step-delivery desk-vocab:sync-step-owner-link desk-vocab:sync-step-teammate-sync desk-vocab:sync-step-anonymize desk-vocab:sync-step-subscription-cancel desk-vocab:sync-step-score-subscription desk-vocab:sync-step-scores desk-vocab:sync-step-records ) ] ,
1015
+ [ sh:path desk:for-request ; sh:maxCount 0 ] ,
1016
+ [ sh:path desk:has-receiver ; sh:minCount 1 ]
1017
+ ]
1018
+ ) ;
1019
+ sh:message "A sync problem of the step erasure or export has a request and no receiver. A sync problem of another step has one receiver and no request."@en ;
1020
+ sh:property [
1021
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1022
+ sh:message "A sync problem has exactly one id."@en
1023
+ ] ;
1024
+ sh:property [
1025
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1026
+ sh:message "A sync problem belongs to exactly one workspace."@en
1027
+ ] ;
1028
+ sh:property [
1029
+ sh:path desk:has-sync-step ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1030
+ sh:in ( desk-vocab:sync-step-delivery desk-vocab:sync-step-owner-link desk-vocab:sync-step-teammate-sync desk-vocab:sync-step-anonymize desk-vocab:sync-step-subscription-cancel desk-vocab:sync-step-score-subscription desk-vocab:sync-step-scores desk-vocab:sync-step-records desk-vocab:sync-step-erasure desk-vocab:sync-step-export ) ;
1031
+ sh:message "A sync problem has exactly one sync step from the scheme of sync steps."@en
1032
+ ] ;
1033
+ sh:property [
1034
+ sh:path desk:for-request ; sh:datatype xsd:string ; sh:maxCount 1 ;
1035
+ sh:message "A sync problem has at most one request."@en
1036
+ ] ;
1037
+ sh:property [
1038
+ sh:path desk:has-receiver ; sh:datatype xsd:string ; sh:maxCount 1 ;
1039
+ sh:message "A sync problem has at most one receiver."@en
1040
+ ] ;
1041
+ sh:property [
1042
+ sh:path desk:has-sync-reason ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1043
+ sh:message "A sync problem has exactly one reason."@en
1044
+ ] ;
1045
+ sh:property [
1046
+ sh:path desk:has-unsent-count ; sh:datatype xsd:integer ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ;
1047
+ sh:message "A sync problem has exactly one unsent count, and the count is 0 or more."@en
1048
+ ] ;
1049
+ sh:property [
1050
+ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1051
+ sh:message "A sync problem has exactly one start time."@en
1052
+ ] ;
1053
+ sh:property [
1054
+ sh:path core:ended-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
1055
+ sh:message "A sync problem has at most one end time."@en
1056
+ ] .
1057
+
1058
+ desk-shapes:workspace-shape a sh:NodeShape ;
1059
+ sh:targetClass core:workspace ;
1060
+ sh:property [
1061
+ sh:path core:id ; sh:datatype xsd:string ; sh:maxCount 1 ;
1062
+ sh:message "A workspace has at most one id."
1063
+ ] ;
1064
+ sh:property [
1065
+ sh:path core:has-name ; sh:datatype xsd:string ; sh:maxCount 1 ;
1066
+ sh:message "A workspace has at most one name."
1067
+ ] ;
1068
+ sh:property [
1069
+ sh:path core:has-status ; sh:class core:concept ; sh:maxCount 1 ;
1070
+ sh:message "A workspace has at most one status."
1071
+ ] ;
1072
+ sh:property [
1073
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
1074
+ sh:message "A workspace has at most one creation time."
1075
+ ] .
1076
+
1077
+ desk-shapes:agent-key-shape a sh:NodeShape ;
1078
+ sh:targetClass desk:agent-key ;
1079
+ sh:property [
1080
+ sh:path core:id ; sh:datatype xsd:string ; sh:maxCount 1 ;
1081
+ sh:message "An agent key has at most one id."
1082
+ ] ;
1083
+ sh:property [
1084
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:maxCount 1 ;
1085
+ sh:message "An agent key belongs to at most one workspace."
1086
+ ] ;
1087
+ sh:property [
1088
+ sh:path core:for-user ; sh:class core:user ; sh:maxCount 1 ;
1089
+ sh:message "An agent key has at most one user."
1090
+ ] ;
1091
+ sh:property [
1092
+ sh:path core:has-name ; sh:datatype xsd:string ; sh:maxCount 1 ;
1093
+ sh:message "An agent key has at most one name."
1094
+ ] ;
1095
+ sh:property [
1096
+ sh:path core:has-status ; sh:class core:concept ; sh:maxCount 1 ;
1097
+ sh:message "An agent key has at most one status."
1098
+ ] ;
1099
+ sh:property [
1100
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
1101
+ sh:message "An agent key has at most one creation time."
1102
+ ] .
1103
+
1104
+ desk-shapes:billing-problem-shape a sh:NodeShape ;
1105
+ sh:targetClass desk:billing-problem ;
1106
+ sh:property [
1107
+ sh:path core:id ; sh:datatype xsd:string ; sh:maxCount 1 ;
1108
+ sh:message "A billing problem has at most one id."
1109
+ ] ;
1110
+ sh:property [
1111
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:maxCount 1 ;
1112
+ sh:message "A billing problem belongs to at most one workspace."
1113
+ ] ;
1114
+ sh:property [
1115
+ sh:path billing:has-webhook-topic ; sh:class core:concept ; sh:maxCount 1 ;
1116
+ sh:message "A billing problem has at most one webhook topic."
1117
+ ] ;
1118
+ sh:property [
1119
+ sh:path billing:has-sequence-number ; sh:datatype xsd:long ; sh:maxCount 1 ;
1120
+ sh:message "A billing problem has at most one sequence number."
1121
+ ] ;
1122
+ sh:property [
1123
+ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
1124
+ sh:message "A billing problem has at most one start time."
1125
+ ] ;
1126
+ sh:property [
1127
+ sh:path core:ended-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
1128
+ sh:message "A billing problem has at most one end time."
1129
+ ] .
1130
+
1131
+ desk-shapes:flow-action-shape a sh:NodeShape ;
1132
+ sh:targetClass desk:flow-action ;
1133
+ sh:property [
1134
+ sh:path desk:relays-action-request ; sh:maxCount 1 ;
1135
+ sh:message "A flow action has one request id."
1136
+ ] ;
1137
+ sh:property [
1138
+ sh:path desk:relays-flow ; sh:maxCount 1 ;
1139
+ sh:message "A flow action belongs to one flow."
1140
+ ] ;
1141
+ sh:property [
1142
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:maxCount 1 ;
1143
+ sh:message "A flow action belongs to one workspace."
1144
+ ] ;
1145
+ sh:property [
1146
+ sh:path core:for-user ; sh:datatype xsd:string ; sh:maxCount 1 ;
1147
+ sh:message "A flow action has one user on whose behalf it runs."
1148
+ ] ;
1149
+ sh:property [
1150
+ sh:path desk:has-flow-action ; sh:class core:concept ; sh:maxCount 1 ;
1151
+ sh:message "A flow action is one action of the scheme of flow actions."
1152
+ ] ;
1153
+ sh:property [
1154
+ sh:path desk:has-flow-action-actor ; sh:class core:concept ; sh:maxCount 1 ;
1155
+ sh:message "A flow action has one actor of the scheme of flow action actors."
1156
+ ] ;
1157
+ sh:property [
1158
+ sh:path desk:has-flow-action-trigger ; sh:class core:concept ; sh:maxCount 1 ;
1159
+ sh:message "A flow action has one cause of the scheme of flow action triggers."
1160
+ ] ;
1161
+ sh:property [
1162
+ sh:path desk:has-access-role ; sh:class core:concept ; sh:maxCount 1 ;
1163
+ sh:message "A flow action keeps the access-role that desk read at the time of the action."
1164
+ ] ;
1165
+ sh:property [
1166
+ sh:path auth:has-token-kind ; sh:class core:concept ; sh:maxCount 1 ;
1167
+ sh:message "A flow action names the kind of the token that it used."
1168
+ ] ;
1169
+ sh:property [
1170
+ sh:path auth:has-exchange-kind ; sh:class core:concept ; sh:maxCount 1 ;
1171
+ sh:message "A flow action names the kind of the exchange of its token, when the token is exchanged."
1172
+ ] ;
1173
+ sh:property [
1174
+ sh:path desk:of-leads-run-id ; sh:maxCount 1 ;
1175
+ sh:message "A flow action names at most one run of leads."
1176
+ ] ;
1177
+ sh:property [
1178
+ sh:path ai:has-correlation-id ; sh:datatype xsd:string ; sh:maxCount 1 ;
1179
+ sh:message "A flow action has one trace id."
1180
+ ] ;
1181
+ sh:property [
1182
+ sh:path core:has-status ; sh:class core:concept ; sh:maxCount 1 ;
1183
+ sh:message "A flow action has one status."
1184
+ ] ;
1185
+ sh:property [
1186
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
1187
+ sh:message "A flow action has one time of acceptance."
1188
+ ] ;
1189
+ sh:property [
1190
+ sh:path core:ended-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
1191
+ sh:message "A flow action has at most one time of the end."
1192
+ ] .
1193
+
1194
+ desk-shapes:onboarding-session-shape a sh:NodeShape ;
1195
+ sh:targetClass desk:onboarding-session ;
1196
+ sh:closed true ;
1197
+ sh:ignoredProperties ( rdf:type ) ;
1198
+ sh:property [
1199
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1200
+ sh:message "An onboarding session has exactly one id, as a text."
1201
+ ] ;
1202
+ sh:property [
1203
+ sh:path desk:has-onboarding-state ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1204
+ sh:in ( desk-vocab:onboarding-state-open desk-vocab:onboarding-state-complete desk-vocab:onboarding-state-expired ) ;
1205
+ sh:message "An onboarding session has exactly one state: open, complete or expired."
1206
+ ] ;
1207
+ sh:property [
1208
+ sh:path desk:has-ip-hash ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1209
+ sh:message "An onboarding session has exactly one hash of the IP address of its visitor."
1210
+ ] ;
1211
+ sh:property [
1212
+ sh:path desk:has-company-draft ; sh:datatype xsd:string ; sh:maxCount 1 ;
1213
+ sh:message "An onboarding session has at most one company draft."
1214
+ ] ;
1215
+ sh:property [
1216
+ sh:path desk:has-onboarding-goal ; sh:class core:concept ; sh:maxCount 1 ;
1217
+ sh:in ( desk-vocab:onboarding-goal-buying-signals desk-vocab:onboarding-goal-open-market ) ;
1218
+ sh:message "An onboarding session has at most one goal: buying-signals or open-market."
1219
+ ] ;
1220
+ sh:property [
1221
+ sh:path desk:has-icp-draft ; sh:datatype xsd:string ; sh:maxCount 1 ;
1222
+ sh:message "An onboarding session has at most one ICP draft."
1223
+ ] ;
1224
+ sh:property [
1225
+ sh:path desk:has-expiry-time ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1226
+ sh:message "An onboarding session has exactly one expiry time."
1227
+ ] ;
1228
+ sh:property [
1229
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1230
+ sh:message "An onboarding session has exactly one creation time."
1231
+ ] ;
1232
+ sh:property [
1233
+ sh:path desk:claims-workspace ; sh:class core:workspace ; sh:maxCount 1 ;
1234
+ sh:message "An onboarding session claims at most one workspace."
1235
+ ] .
1236
+
1237
+ desk-shapes:onboarding-job-shape a sh:NodeShape ;
1238
+ sh:targetClass desk:onboarding-job ;
1239
+ sh:closed true ;
1240
+ sh:ignoredProperties ( rdf:type ) ;
1241
+ sh:property [
1242
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1243
+ sh:message "An onboarding job has exactly one id, as a text."
1244
+ ] ;
1245
+ sh:property [
1246
+ sh:path desk:has-job-state ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1247
+ sh:in ( desk-vocab:job-state-queued desk-vocab:job-state-running desk-vocab:job-state-done desk-vocab:job-state-failed ) ;
1248
+ sh:message "An onboarding job has exactly one state: queued, running, done or failed."
1249
+ ] ;
1250
+ sh:property [
1251
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1252
+ sh:message "An onboarding job has exactly one creation time."
1253
+ ] .
1254
+
1255
+ desk-shapes:selection-shape a sh:NodeShape ;
1256
+ sh:targetClass desk:selection ;
1257
+ sh:closed true ;
1258
+ sh:ignoredProperties ( rdf:type ) ;
1259
+ sh:property [
1260
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1261
+ sh:message "A selection has exactly one id, as a text."
1262
+ ] ;
1263
+ sh:property [
1264
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1265
+ sh:message "A selection belongs to exactly one workspace."
1266
+ ] ;
1267
+ sh:property [
1268
+ sh:path desk:has-item-type ; sh:class core:concept ; sh:minCount 1 ;
1269
+ sh:in ( desk-vocab:selection-item-type-lead-record desk-vocab:selection-item-type-account-record desk-vocab:selection-item-type-deal desk-vocab:selection-item-type-campaign desk-vocab:selection-item-type-cadence desk-vocab:selection-item-type-mailbox desk-vocab:selection-item-type-sender ) ;
1270
+ sh:message "Each item of a selection has one type: lead-record, account-record, deal, campaign, cadence, mailbox or sender."
1271
+ ] .
1272
+
1273
+ # A value reference and its six kinds.
1274
+ # pySHACL does not apply the shape of a superclass to a node of a subclass, so the shape of each kind repeats the paths of the shape of a value reference.
1275
+
1276
+ desk-shapes:value-reference-shape a sh:NodeShape ;
1277
+ sh:targetClass desk:value-reference ;
1278
+ sh:property [
1279
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1280
+ sh:message "A value reference has exactly one id, as a text. The id is the deskValueReferenceId."
1281
+ ] ;
1282
+ sh:property [
1283
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1284
+ sh:message "A value reference belongs to exactly one workspace."
1285
+ ] ;
1286
+ sh:property [
1287
+ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ;
1288
+ sh:message "A value reference has exactly one user who made it, and each read checks that user and the workspace."
1289
+ ] ;
1290
+ sh:property [
1291
+ sh:path desk:of-value-reference-kind ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1292
+ sh:in ( desk-vocab:value-reference-kind-lead-set desk-vocab:value-reference-kind-account-set desk-vocab:value-reference-kind-choice desk-vocab:value-reference-kind-filter desk-vocab:value-reference-kind-draft desk-vocab:value-reference-kind-interview ) ;
1293
+ sh:message "A value reference has exactly one kind: lead-set, account-set, choice, filter, draft or interview."
1294
+ ] ;
1295
+ sh:property [
1296
+ sh:path desk:keeps-value-reference-storage ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1297
+ sh:in ( desk-vocab:value-reference-storage-pointer desk-vocab:value-reference-storage-content ) ;
1298
+ sh:message "A value reference keeps its value as a pointer or as content."
1299
+ ] ;
1300
+ sh:property [
1301
+ sh:path desk:points-at-value-reference-pointer ; sh:class core:concept ; sh:maxCount 1 ;
1302
+ sh:in ( desk-vocab:value-reference-pointer-leads-run desk-vocab:value-reference-pointer-crm-records desk-vocab:value-reference-pointer-query ) ;
1303
+ sh:message "A value reference points at the chosen records of a run of leads, at the records of crm, or at a live query."
1304
+ ] ;
1305
+ sh:property [
1306
+ sh:path [ sh:inversePath desk:pins-value-reference ] ; sh:maxCount 1 ;
1307
+ sh:message "A lasting owner pins a value reference, and a reference has at most one lasting owner."
1308
+ ] ;
1309
+ sh:property [
1310
+ sh:path desk:has-value-reference-count ; sh:datatype xsd:integer ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ;
1311
+ sh:message "A value reference has exactly one count of its items, and the count is not negative."
1312
+ ] ;
1313
+ sh:property [
1314
+ sh:path desk:has-value-reference-summary ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1315
+ sh:message "A value reference has exactly one summary, as JSON text."
1316
+ ] ;
1317
+ sh:property [
1318
+ sh:path desk:meant-for-flow ; sh:datatype xsd:string ; sh:maxCount 1 ;
1319
+ sh:message "A flow-only value reference has at most one flow of kai-agent."
1320
+ ] ;
1321
+ sh:property [
1322
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1323
+ sh:message "A value reference has exactly one creation time."
1324
+ ] .
1325
+
1326
+ desk-shapes:lead-set-shape a sh:NodeShape ;
1327
+ sh:targetClass desk:lead-set ;
1328
+ sh:property [
1329
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1330
+ sh:message "A value reference has exactly one id, as a text. The id is the deskValueReferenceId."
1331
+ ] ;
1332
+ sh:property [
1333
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1334
+ sh:message "A value reference belongs to exactly one workspace."
1335
+ ] ;
1336
+ sh:property [
1337
+ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ;
1338
+ sh:message "A value reference has exactly one user who made it, and each read checks that user and the workspace."
1339
+ ] ;
1340
+ sh:property [
1341
+ sh:path desk:of-value-reference-kind ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1342
+ sh:in ( desk-vocab:value-reference-kind-lead-set desk-vocab:value-reference-kind-account-set desk-vocab:value-reference-kind-choice desk-vocab:value-reference-kind-filter desk-vocab:value-reference-kind-draft desk-vocab:value-reference-kind-interview ) ;
1343
+ sh:message "A value reference has exactly one kind: lead-set, account-set, choice, filter, draft or interview."
1344
+ ] ;
1345
+ sh:property [
1346
+ sh:path desk:keeps-value-reference-storage ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1347
+ sh:in ( desk-vocab:value-reference-storage-pointer desk-vocab:value-reference-storage-content ) ;
1348
+ sh:message "A value reference keeps its value as a pointer or as content."
1349
+ ] ;
1350
+ sh:property [
1351
+ sh:path desk:points-at-value-reference-pointer ; sh:class core:concept ; sh:maxCount 1 ;
1352
+ sh:in ( desk-vocab:value-reference-pointer-leads-run desk-vocab:value-reference-pointer-crm-records desk-vocab:value-reference-pointer-query ) ;
1353
+ sh:message "A value reference points at the chosen records of a run of leads, at the records of crm, or at a live query."
1354
+ ] ;
1355
+ sh:property [
1356
+ sh:path [ sh:inversePath desk:pins-value-reference ] ; sh:maxCount 1 ;
1357
+ sh:message "A lasting owner pins a value reference, and a reference has at most one lasting owner."
1358
+ ] ;
1359
+ sh:property [
1360
+ sh:path desk:has-value-reference-count ; sh:datatype xsd:integer ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ;
1361
+ sh:message "A value reference has exactly one count of its items, and the count is not negative."
1362
+ ] ;
1363
+ sh:property [
1364
+ sh:path desk:has-value-reference-summary ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1365
+ sh:message "A value reference has exactly one summary, as JSON text."
1366
+ ] ;
1367
+ sh:property [
1368
+ sh:path desk:meant-for-flow ; sh:datatype xsd:string ; sh:maxCount 1 ;
1369
+ sh:message "A flow-only value reference has at most one flow of kai-agent."
1370
+ ] ;
1371
+ sh:property [
1372
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1373
+ sh:message "A value reference has exactly one creation time."
1374
+ ] ;
1375
+ sh:property [
1376
+ sh:path desk:keeps-value-reference-storage ; sh:hasValue desk-vocab:value-reference-storage-pointer ;
1377
+ sh:message "A lead set points at the lead records of crm or at the chosen lead records of a run of leads. It keeps no copied value."
1378
+ ] ;
1379
+ sh:property [
1380
+ sh:path desk:has-value-reference-membership ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1381
+ sh:in ( desk-vocab:value-reference-membership-live desk-vocab:value-reference-membership-frozen ) ;
1382
+ sh:message "A lead set has one membership: live, as the answer of a query, or frozen, as the ids that the teammate confirmed."
1383
+ ] .
1384
+
1385
+ desk-shapes:account-set-shape a sh:NodeShape ;
1386
+ sh:targetClass desk:account-set ;
1387
+ sh:property [
1388
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1389
+ sh:message "A value reference has exactly one id, as a text. The id is the deskValueReferenceId."
1390
+ ] ;
1391
+ sh:property [
1392
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1393
+ sh:message "A value reference belongs to exactly one workspace."
1394
+ ] ;
1395
+ sh:property [
1396
+ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ;
1397
+ sh:message "A value reference has exactly one user who made it, and each read checks that user and the workspace."
1398
+ ] ;
1399
+ sh:property [
1400
+ sh:path desk:of-value-reference-kind ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1401
+ sh:in ( desk-vocab:value-reference-kind-lead-set desk-vocab:value-reference-kind-account-set desk-vocab:value-reference-kind-choice desk-vocab:value-reference-kind-filter desk-vocab:value-reference-kind-draft desk-vocab:value-reference-kind-interview ) ;
1402
+ sh:message "A value reference has exactly one kind: lead-set, account-set, choice, filter, draft or interview."
1403
+ ] ;
1404
+ sh:property [
1405
+ sh:path desk:keeps-value-reference-storage ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1406
+ sh:in ( desk-vocab:value-reference-storage-pointer desk-vocab:value-reference-storage-content ) ;
1407
+ sh:message "A value reference keeps its value as a pointer or as content."
1408
+ ] ;
1409
+ sh:property [
1410
+ sh:path desk:points-at-value-reference-pointer ; sh:class core:concept ; sh:maxCount 1 ;
1411
+ sh:in ( desk-vocab:value-reference-pointer-leads-run desk-vocab:value-reference-pointer-crm-records desk-vocab:value-reference-pointer-query ) ;
1412
+ sh:message "A value reference points at the chosen records of a run of leads, at the records of crm, or at a live query."
1413
+ ] ;
1414
+ sh:property [
1415
+ sh:path [ sh:inversePath desk:pins-value-reference ] ; sh:maxCount 1 ;
1416
+ sh:message "A lasting owner pins a value reference, and a reference has at most one lasting owner."
1417
+ ] ;
1418
+ sh:property [
1419
+ sh:path desk:has-value-reference-count ; sh:datatype xsd:integer ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ;
1420
+ sh:message "A value reference has exactly one count of its items, and the count is not negative."
1421
+ ] ;
1422
+ sh:property [
1423
+ sh:path desk:has-value-reference-summary ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1424
+ sh:message "A value reference has exactly one summary, as JSON text."
1425
+ ] ;
1426
+ sh:property [
1427
+ sh:path desk:meant-for-flow ; sh:datatype xsd:string ; sh:maxCount 1 ;
1428
+ sh:message "A flow-only value reference has at most one flow of kai-agent."
1429
+ ] ;
1430
+ sh:property [
1431
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1432
+ sh:message "A value reference has exactly one creation time."
1433
+ ] ;
1434
+ sh:property [
1435
+ sh:path desk:has-value-reference-membership ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1436
+ sh:in ( desk-vocab:value-reference-membership-live desk-vocab:value-reference-membership-frozen ) ;
1437
+ sh:message "An account set has one membership: live, as the answer of a query, or frozen, as the ids that the teammate confirmed."
1438
+ ] .
1439
+
1440
+ desk-shapes:choice-shape a sh:NodeShape ;
1441
+ sh:targetClass desk:choice ;
1442
+ sh:property [
1443
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1444
+ sh:message "A value reference has exactly one id, as a text. The id is the deskValueReferenceId."
1445
+ ] ;
1446
+ sh:property [
1447
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1448
+ sh:message "A value reference belongs to exactly one workspace."
1449
+ ] ;
1450
+ sh:property [
1451
+ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ;
1452
+ sh:message "A value reference has exactly one user who made it, and each read checks that user and the workspace."
1453
+ ] ;
1454
+ sh:property [
1455
+ sh:path desk:of-value-reference-kind ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1456
+ sh:in ( desk-vocab:value-reference-kind-lead-set desk-vocab:value-reference-kind-account-set desk-vocab:value-reference-kind-choice desk-vocab:value-reference-kind-filter desk-vocab:value-reference-kind-draft desk-vocab:value-reference-kind-interview ) ;
1457
+ sh:message "A value reference has exactly one kind: lead-set, account-set, choice, filter, draft or interview."
1458
+ ] ;
1459
+ sh:property [
1460
+ sh:path desk:keeps-value-reference-storage ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1461
+ sh:in ( desk-vocab:value-reference-storage-pointer desk-vocab:value-reference-storage-content ) ;
1462
+ sh:message "A value reference keeps its value as a pointer or as content."
1463
+ ] ;
1464
+ sh:property [
1465
+ sh:path desk:points-at-value-reference-pointer ; sh:class core:concept ; sh:maxCount 1 ;
1466
+ sh:in ( desk-vocab:value-reference-pointer-leads-run desk-vocab:value-reference-pointer-crm-records desk-vocab:value-reference-pointer-query ) ;
1467
+ sh:message "A value reference points at the chosen records of a run of leads, at the records of crm, or at a live query."
1468
+ ] ;
1469
+ sh:property [
1470
+ sh:path [ sh:inversePath desk:pins-value-reference ] ; sh:maxCount 1 ;
1471
+ sh:message "A lasting owner pins a value reference, and a reference has at most one lasting owner."
1472
+ ] ;
1473
+ sh:property [
1474
+ sh:path desk:has-value-reference-count ; sh:datatype xsd:integer ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ;
1475
+ sh:message "A value reference has exactly one count of its items, and the count is not negative."
1476
+ ] ;
1477
+ sh:property [
1478
+ sh:path desk:has-value-reference-summary ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1479
+ sh:message "A value reference has exactly one summary, as JSON text."
1480
+ ] ;
1481
+ sh:property [
1482
+ sh:path desk:meant-for-flow ; sh:datatype xsd:string ; sh:maxCount 1 ;
1483
+ sh:message "A flow-only value reference has at most one flow of kai-agent."
1484
+ ] ;
1485
+ sh:property [
1486
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1487
+ sh:message "A value reference has exactly one creation time."
1488
+ ] ;
1489
+ sh:property [
1490
+ sh:path desk:keeps-value-reference-storage ; sh:hasValue desk-vocab:value-reference-storage-content ;
1491
+ sh:message "A choice holds its content, because no other owner has the options and the answer."
1492
+ ] .
1493
+
1494
+ desk-shapes:filter-shape a sh:NodeShape ;
1495
+ sh:targetClass desk:filter ;
1496
+ sh:property [
1497
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1498
+ sh:message "A value reference has exactly one id, as a text. The id is the deskValueReferenceId."
1499
+ ] ;
1500
+ sh:property [
1501
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1502
+ sh:message "A value reference belongs to exactly one workspace."
1503
+ ] ;
1504
+ sh:property [
1505
+ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ;
1506
+ sh:message "A value reference has exactly one user who made it, and each read checks that user and the workspace."
1507
+ ] ;
1508
+ sh:property [
1509
+ sh:path desk:of-value-reference-kind ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1510
+ sh:in ( desk-vocab:value-reference-kind-lead-set desk-vocab:value-reference-kind-account-set desk-vocab:value-reference-kind-choice desk-vocab:value-reference-kind-filter desk-vocab:value-reference-kind-draft desk-vocab:value-reference-kind-interview ) ;
1511
+ sh:message "A value reference has exactly one kind: lead-set, account-set, choice, filter, draft or interview."
1512
+ ] ;
1513
+ sh:property [
1514
+ sh:path desk:keeps-value-reference-storage ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1515
+ sh:in ( desk-vocab:value-reference-storage-pointer desk-vocab:value-reference-storage-content ) ;
1516
+ sh:message "A value reference keeps its value as a pointer or as content."
1517
+ ] ;
1518
+ sh:property [
1519
+ sh:path desk:points-at-value-reference-pointer ; sh:class core:concept ; sh:maxCount 1 ;
1520
+ sh:in ( desk-vocab:value-reference-pointer-leads-run desk-vocab:value-reference-pointer-crm-records desk-vocab:value-reference-pointer-query ) ;
1521
+ sh:message "A value reference points at the chosen records of a run of leads, at the records of crm, or at a live query."
1522
+ ] ;
1523
+ sh:property [
1524
+ sh:path [ sh:inversePath desk:pins-value-reference ] ; sh:maxCount 1 ;
1525
+ sh:message "A lasting owner pins a value reference, and a reference has at most one lasting owner."
1526
+ ] ;
1527
+ sh:property [
1528
+ sh:path desk:has-value-reference-count ; sh:datatype xsd:integer ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ;
1529
+ sh:message "A value reference has exactly one count of its items, and the count is not negative."
1530
+ ] ;
1531
+ sh:property [
1532
+ sh:path desk:has-value-reference-summary ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1533
+ sh:message "A value reference has exactly one summary, as JSON text."
1534
+ ] ;
1535
+ sh:property [
1536
+ sh:path desk:meant-for-flow ; sh:datatype xsd:string ; sh:maxCount 1 ;
1537
+ sh:message "A flow-only value reference has at most one flow of kai-agent."
1538
+ ] ;
1539
+ sh:property [
1540
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1541
+ sh:message "A value reference has exactly one creation time."
1542
+ ] ;
1543
+ sh:property [
1544
+ sh:path desk:keeps-value-reference-storage ; sh:hasValue desk-vocab:value-reference-storage-content ;
1545
+ sh:message "A filter holds its content, because the target of a query can change."
1546
+ ] .
1547
+
1548
+ desk-shapes:draft-shape a sh:NodeShape ;
1549
+ sh:targetClass desk:draft ;
1550
+ sh:property [
1551
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1552
+ sh:message "A value reference has exactly one id, as a text. The id is the deskValueReferenceId."
1553
+ ] ;
1554
+ sh:property [
1555
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1556
+ sh:message "A value reference belongs to exactly one workspace."
1557
+ ] ;
1558
+ sh:property [
1559
+ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ;
1560
+ sh:message "A value reference has exactly one user who made it, and each read checks that user and the workspace."
1561
+ ] ;
1562
+ sh:property [
1563
+ sh:path desk:of-value-reference-kind ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1564
+ sh:in ( desk-vocab:value-reference-kind-lead-set desk-vocab:value-reference-kind-account-set desk-vocab:value-reference-kind-choice desk-vocab:value-reference-kind-filter desk-vocab:value-reference-kind-draft desk-vocab:value-reference-kind-interview ) ;
1565
+ sh:message "A value reference has exactly one kind: lead-set, account-set, choice, filter, draft or interview."
1566
+ ] ;
1567
+ sh:property [
1568
+ sh:path desk:keeps-value-reference-storage ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1569
+ sh:in ( desk-vocab:value-reference-storage-pointer desk-vocab:value-reference-storage-content ) ;
1570
+ sh:message "A value reference keeps its value as a pointer or as content."
1571
+ ] ;
1572
+ sh:property [
1573
+ sh:path desk:points-at-value-reference-pointer ; sh:class core:concept ; sh:maxCount 1 ;
1574
+ sh:in ( desk-vocab:value-reference-pointer-leads-run desk-vocab:value-reference-pointer-crm-records desk-vocab:value-reference-pointer-query ) ;
1575
+ sh:message "A value reference points at the chosen records of a run of leads, at the records of crm, or at a live query."
1576
+ ] ;
1577
+ sh:property [
1578
+ sh:path [ sh:inversePath desk:pins-value-reference ] ; sh:maxCount 1 ;
1579
+ sh:message "A lasting owner pins a value reference, and a reference has at most one lasting owner."
1580
+ ] ;
1581
+ sh:property [
1582
+ sh:path desk:has-value-reference-count ; sh:datatype xsd:integer ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ;
1583
+ sh:message "A value reference has exactly one count of its items, and the count is not negative."
1584
+ ] ;
1585
+ sh:property [
1586
+ sh:path desk:has-value-reference-summary ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1587
+ sh:message "A value reference has exactly one summary, as JSON text."
1588
+ ] ;
1589
+ sh:property [
1590
+ sh:path desk:meant-for-flow ; sh:datatype xsd:string ; sh:maxCount 1 ;
1591
+ sh:message "A flow-only value reference has at most one flow of kai-agent."
1592
+ ] ;
1593
+ sh:property [
1594
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1595
+ sh:message "A value reference has exactly one creation time."
1596
+ ] ;
1597
+ sh:property [
1598
+ sh:path desk:keeps-value-reference-storage ; sh:hasValue desk-vocab:value-reference-storage-content ;
1599
+ sh:message "A draft holds its content, because no other owner has the text before it becomes a campaign or a message."
1600
+ ] .
1601
+
1602
+ desk-shapes:interview-shape a sh:NodeShape ;
1603
+ sh:targetClass desk:interview ;
1604
+ sh:property [
1605
+ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1606
+ sh:message "A value reference has exactly one id, as a text. The id is the deskValueReferenceId."
1607
+ ] ;
1608
+ sh:property [
1609
+ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1610
+ sh:message "A value reference belongs to exactly one workspace."
1611
+ ] ;
1612
+ sh:property [
1613
+ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ;
1614
+ sh:message "A value reference has exactly one user who made it, and each read checks that user and the workspace."
1615
+ ] ;
1616
+ sh:property [
1617
+ sh:path desk:of-value-reference-kind ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1618
+ sh:in ( desk-vocab:value-reference-kind-lead-set desk-vocab:value-reference-kind-account-set desk-vocab:value-reference-kind-choice desk-vocab:value-reference-kind-filter desk-vocab:value-reference-kind-draft desk-vocab:value-reference-kind-interview ) ;
1619
+ sh:message "A value reference has exactly one kind: lead-set, account-set, choice, filter, draft or interview."
1620
+ ] ;
1621
+ sh:property [
1622
+ sh:path desk:keeps-value-reference-storage ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1623
+ sh:in ( desk-vocab:value-reference-storage-pointer desk-vocab:value-reference-storage-content ) ;
1624
+ sh:message "A value reference keeps its value as a pointer or as content."
1625
+ ] ;
1626
+ sh:property [
1627
+ sh:path desk:points-at-value-reference-pointer ; sh:class core:concept ; sh:maxCount 1 ;
1628
+ sh:in ( desk-vocab:value-reference-pointer-leads-run desk-vocab:value-reference-pointer-crm-records desk-vocab:value-reference-pointer-query ) ;
1629
+ sh:message "A value reference points at the chosen records of a run of leads, at the records of crm, or at a live query."
1630
+ ] ;
1631
+ sh:property [
1632
+ sh:path [ sh:inversePath desk:pins-value-reference ] ; sh:maxCount 1 ;
1633
+ sh:message "A lasting owner pins a value reference, and a reference has at most one lasting owner."
1634
+ ] ;
1635
+ sh:property [
1636
+ sh:path desk:has-value-reference-count ; sh:datatype xsd:integer ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ;
1637
+ sh:message "A value reference has exactly one count of its items, and the count is not negative."
1638
+ ] ;
1639
+ sh:property [
1640
+ sh:path desk:has-value-reference-summary ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1641
+ sh:message "A value reference has exactly one summary, as JSON text."
1642
+ ] ;
1643
+ sh:property [
1644
+ sh:path desk:meant-for-flow ; sh:datatype xsd:string ; sh:maxCount 1 ;
1645
+ sh:message "A flow-only value reference has at most one flow of kai-agent."
1646
+ ] ;
1647
+ sh:property [
1648
+ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1649
+ sh:message "A value reference has exactly one creation time."
1650
+ ] ;
1651
+ sh:property [
1652
+ sh:path desk:keeps-value-reference-storage ; sh:hasValue desk-vocab:value-reference-storage-content ;
1653
+ sh:message "An interview holds its content, because no other owner has the facts."
1654
+ ] .
1655
+
1656
+ desk-shapes:held-call-shape a sh:NodeShape ;
1657
+ sh:targetClass desk:held-call ;
1658
+ sh:closed true ;
1659
+ sh:ignoredProperties ( rdf:type ) ;
1660
+ sh:property [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1661
+ sh:message "A held call has exactly one id, which is also the id of its approval request."@en ] ;
1662
+ sh:property [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1663
+ sh:message "A held call belongs to exactly one workspace."@en ] ;
1664
+ sh:property [ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ;
1665
+ sh:message "A held call names exactly one user on whose behalf the client agent calls."@en ] ;
1666
+ sh:property [ sh:path desk:has-approval-level ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1667
+ sh:message "A held call has exactly one approval level."@en ] ;
1668
+ sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1669
+ sh:message "A held call has exactly one time at which desk held it."@en ] ;
1670
+ sh:property [ sh:path core:ended-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
1671
+ sh:message "A held call has at most one time of the end."@en ] .
1672
+
1673
+ desk-shapes:merge-shape a sh:NodeShape ;
1674
+ sh:targetClass desk:merge ;
1675
+ sh:closed true ;
1676
+ sh:ignoredProperties ( rdf:type ) ;
1677
+ sh:property [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1678
+ sh:message "A merge has exactly one id, which the undo route takes."@en ] ;
1679
+ sh:property [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1680
+ sh:message "A merge belongs to exactly one workspace."@en ] ;
1681
+ sh:property [ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ;
1682
+ sh:message "A merge names exactly one teammate who ran it."@en ] ;
1683
+ sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1684
+ sh:message "A merge has exactly one time of creation."@en ] ;
1685
+ sh:property [ sh:path desk:has-merge-object ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1686
+ sh:message "A merge combines one kind of record, from the scheme of merge objects."@en ] .
1687
+
1688
+ desk-shapes:lead-campaign-write-shape a sh:NodeShape ;
1689
+ sh:targetClass desk:lead-campaign-write ;
1690
+ sh:closed true ;
1691
+ sh:ignoredProperties ( rdf:type ) ;
1692
+ sh:property [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1693
+ sh:message "A lead campaign write has exactly one id."@en ] ;
1694
+ sh:property [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1695
+ sh:message "A lead campaign write belongs to exactly one workspace."@en ] ;
1696
+ sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1697
+ sh:message "A lead campaign write has exactly one time of creation."@en ] .
1698
+
1699
+ desk-shapes:segment-shape a sh:NodeShape ;
1700
+ sh:targetClass desk:segment ;
1701
+ sh:closed true ;
1702
+ sh:ignoredProperties ( rdf:type ) ;
1703
+ sh:property [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1704
+ sh:message "A segment has exactly one desk segment id."@en ] ;
1705
+ sh:property [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1706
+ sh:message "A segment belongs to exactly one workspace."@en ] ;
1707
+ sh:property [ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ;
1708
+ sh:message "A segment names exactly one user who saved it."@en ] ;
1709
+ sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1710
+ sh:message "A segment has exactly one time of creation."@en ] .
1711
+
1712
+ desk-shapes:tier-notice-shape a sh:NodeShape ;
1713
+ sh:targetClass desk:tier-notice ;
1714
+ sh:closed true ;
1715
+ sh:ignoredProperties ( rdf:type ) ;
1716
+ sh:property [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1717
+ sh:message "A tier notice has exactly one id."@en ] ;
1718
+ sh:property [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1719
+ sh:message "A tier notice belongs to exactly one workspace."@en ] ;
1720
+ sh:property [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1721
+ sh:message "A tier notice has exactly one time of the change of the stage."@en ] ;
1722
+ sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1723
+ sh:message "A tier notice has exactly one time at which desk made it."@en ] .
1724
+
1725
+ desk-shapes:mailbox-notice-shape a sh:NodeShape ;
1726
+ sh:targetClass desk:mailbox-notice ;
1727
+ sh:closed true ;
1728
+ sh:ignoredProperties ( rdf:type ) ;
1729
+ sh:property [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1730
+ sh:message "A mailbox notice has exactly one id."@en ] ;
1731
+ sh:property [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1732
+ sh:message "A mailbox notice belongs to exactly one workspace."@en ] ;
1733
+ sh:property [ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ;
1734
+ sh:message "A mailbox notice names exactly one teammate who owns the mailbox."@en ] ;
1735
+ sh:property [ sh:path core:has-status ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
1736
+ sh:message "A mailbox notice has exactly one status."@en ] ;
1737
+ sh:property [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1738
+ sh:message "A mailbox notice has exactly one time at which it opened."@en ] ;
1739
+ sh:property [ sh:path core:ended-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
1740
+ sh:message "A mailbox notice has at most one time at which the teammate dismissed it."@en ] ;
1741
+ sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1742
+ sh:message "A mailbox notice has exactly one time at which desk made it."@en ] .
1743
+
1744
+ desk-shapes:workspace-life-audit-row-shape a sh:NodeShape ;
1745
+ sh:targetClass desk:workspace-life-audit-row ;
1746
+ sh:closed true ;
1747
+ sh:ignoredProperties ( rdf:type ) ;
1748
+ sh:property [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1749
+ sh:message "A workspace life audit row has exactly one id."@en ] ;
1750
+ sh:property [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1751
+ sh:message "A workspace life audit row belongs to exactly one workspace."@en ] ;
1752
+ sh:property [ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ;
1753
+ sh:message "A workspace life audit row names exactly one user who closed or reopened the workspace."@en ] ;
1754
+ sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1755
+ sh:message "A workspace life audit row has exactly one time of creation."@en ] .
1756
+
1757
+ desk-shapes:offer-shape a sh:NodeShape ;
1758
+ sh:targetClass desk:offer ;
1759
+ sh:closed true ;
1760
+ sh:ignoredProperties ( rdf:type ) ;
1761
+ sh:property [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1762
+ sh:message "An offer has exactly one id. It is the deskOfferId."@en ] ;
1763
+ sh:property [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
1764
+ sh:message "An offer belongs to exactly one workspace."@en ] ;
1765
+ sh:property [ sh:path desk:has-offer-name ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
1766
+ sh:message "An offer has exactly one name."@en ] ;
1767
+ sh:property [ sh:path desk:has-offer-default ; sh:datatype xsd:boolean ; sh:minCount 1 ; sh:maxCount 1 ;
1768
+ sh:message "An offer says whether it is the default offer of its workspace."@en ] ;
1769
+ sh:property [ sh:path desk:targets-industry ; sh:class leads:industry ;
1770
+ sh:message "An offer targets zero, one or more industries of the catalog of leads."@en ] ;
1771
+ sh:property [ sh:path desk:targets-headcount ; sh:class leads:range ; sh:maxCount 1 ;
1772
+ sh:message "An offer has at most one range of headcount."@en ] ;
1773
+ sh:property [ sh:path desk:targets-function ; sh:class leads:function ;
1774
+ sh:message "An offer targets zero, one or more functions."@en ] ;
1775
+ sh:property [ sh:path desk:targets-seniority ; sh:class leads:seniority ;
1776
+ sh:message "An offer targets zero, one or more seniorities."@en ] ;
1777
+ sh:property [ sh:path desk:targets-region ; sh:class leads:region ;
1778
+ sh:message "An offer targets zero, one or more regions."@en ] ;
1779
+ sh:property [ sh:path desk:has-best-customer ; sh:datatype xsd:string ;
1780
+ sh:message "An offer has at most 5 domains of best customers."@en ] ;
1781
+ sh:property [ sh:path core:for-user ; sh:class core:user ; sh:maxCount 1 ;
1782
+ sh:message "An offer names at most one teammate who made it."@en ] ;
1783
+ sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
1784
+ sh:message "An offer has exactly one time of creation."@en ] ;
1785
+ sh:property [ sh:path core:invalidated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
1786
+ sh:message "An offer has at most one time of deletion."@en ] ;
1787
+ sh:property [ sh:path desk:pins-value-reference ; sh:class desk:value-reference ;
1788
+ sh:message "An offer pins zero, one or more value references, for example its account set."@en ] .