@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.
package/shapes/ai.ttl ADDED
@@ -0,0 +1,730 @@
1
+ @prefix ai: <https://id.quickpipe.ai/domain/ai#> .
2
+ @prefix ai-vocab: <https://id.quickpipe.ai/domain/vocab/ai#> .
3
+ @prefix ai-shapes: <https://id.quickpipe.ai/domain/shapes/ai#> .
4
+ @prefix billing: <https://id.quickpipe.ai/domain/billing#> .
5
+ @prefix billing-vocab: <https://id.quickpipe.ai/domain/vocab/billing#> .
6
+ @prefix identity-vocab: <https://id.quickpipe.ai/domain/vocab/identity#> .
7
+ @prefix identity: <https://id.quickpipe.ai/domain/identity#> .
8
+ @prefix core: <https://id.quickpipe.ai/domain/core#> .
9
+ @prefix leads: <https://id.quickpipe.ai/domain/leads#> .
10
+ @prefix desk: <https://id.quickpipe.ai/domain/desk#> .
11
+ @prefix core-vocab: <https://id.quickpipe.ai/domain/vocab/core#> .
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/ai>
18
+ a owl:Ontology ;
19
+ owl:versionIRI <https://id.quickpipe.ai/domain/0.10.0/shapes/ai> ;
20
+ owl:versionInfo "0.10.0" ;
21
+ core:title "QuickPipe domain model: shapes of ai"@en .
22
+
23
+ # Membership of a value in an open scheme (platform decision 0003 Q15).
24
+
25
+ ai-shapes:caller-concept-shape a sh:NodeShape ;
26
+ sh:property
27
+ [ sh:path core:in-scheme ; sh:hasValue ai-vocab:caller ; sh:message "The value must be a concept of the scheme of callers."@en ] .
28
+
29
+ ai-shapes:key-scope-concept-shape a sh:NodeShape ;
30
+ sh:property
31
+ [ sh:path core:in-scheme ; sh:minCount 1 ; sh:in ( ai-vocab:machine-scope billing-vocab:machine-scope identity-vocab:key-scope ) ; sh:message "The value must be a concept of the scheme of key scopes or machine scopes of a service."@en ] .
32
+
33
+ ai-shapes:run-limit-concept-shape a sh:NodeShape ;
34
+ sh:property
35
+ [ sh:path core:in-scheme ; sh:hasValue ai-vocab:run-limit ; sh:message "The value must be a concept of the scheme of run limits."@en ] .
36
+
37
+ ai-shapes:token-kind-concept-shape a sh:NodeShape ;
38
+ sh:property
39
+ [ sh:path core:in-scheme ; sh:hasValue ai-vocab:token-kind ; sh:message "The value must be a concept of the scheme of token kinds."@en ] .
40
+
41
+ ai-shapes:cost-unit-concept-shape a sh:NodeShape ;
42
+ sh:property
43
+ [ sh:path core:in-scheme ; sh:hasValue billing-vocab:cost-unit ; sh:message "The cost unit must be a concept of the scheme of cost units of billing."@en ] .
44
+
45
+ ai-shapes:decision-form-concept-shape a sh:NodeShape ;
46
+ sh:property
47
+ [ sh:path core:in-scheme ; sh:hasValue ai-vocab:decision-form ; sh:message "The value must be a concept of the scheme of decision forms."@en ] .
48
+
49
+ # Conditions that other shapes reuse.
50
+
51
+ ai-shapes:internal-caller-shape a sh:NodeShape ;
52
+ sh:property
53
+ [ sh:path ai:by-caller ; sh:minCount 1 ; sh:in ( ai-vocab:caller-eval ai-vocab:caller-replay ) ] .
54
+
55
+ ai-shapes:skipped-run-condition-shape a sh:NodeShape ;
56
+ sh:property
57
+ [ sh:path [ sh:inversePath ai:of-run ] ; sh:qualifiedValueShape [ sh:property [ sh:path ai:has-status-value ; sh:hasValue ai-vocab:run-status-skipped ] ] ; sh:qualifiedMinCount 1 ] .
58
+
59
+ ai-shapes:run-shape a sh:NodeShape ;
60
+ sh:targetClass ai:run ;
61
+ sh:closed true ;
62
+ sh:ignoredProperties ( rdf:type ) ;
63
+ sh:property
64
+ [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
65
+ [ sh:path ai:of-task ; sh:class ai:task ; sh:minCount 1 ; sh:maxCount 1 ] ,
66
+ [ sh:path ai:with-prompt-version ; sh:class ai:prompt-version ; sh:minCount 1 ; sh:maxCount 1 ] ,
67
+ [ sh:path ai:by-caller ; sh:class core:concept ; sh:node ai-shapes:caller-concept-shape ; sh:minCount 1 ; sh:maxCount 1 ] ,
68
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:maxCount 1 ] ,
69
+ [ sh:path core:for-user ; sh:class core:user ; sh:maxCount 1 ] ,
70
+ [ sh:path core:with-key ; sh:class core:key ; sh:maxCount 1 ] ,
71
+ [ sh:path ai:of-schedule ; sh:class ai:schedule ; sh:maxCount 1 ] ,
72
+ [ sh:path ai:in-thread ; sh:class ai:thread ; sh:maxCount 1 ] ,
73
+ [ sh:path ai:has-flow-status ; sh:class core:concept ; sh:in ( ai-vocab:flow-status-running ai-vocab:flow-status-waiting ai-vocab:flow-status-failed ai-vocab:flow-status-done ) ; sh:maxCount 1 ] ,
74
+ [ sh:path ai:has-correlation-id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
75
+ [ sh:path ai:has-run-limit ; sh:class ai:run-limit ] ,
76
+ [ sh:path ai:with-confidence ; sh:maxCount 1 ; sh:in ( ai-vocab:decision-confidence-high ai-vocab:decision-confidence-low ) ; sh:message "A decision confidence is high or low."@en ] ,
77
+ [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] ,
78
+ [ sh:path core:ended-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] ,
79
+ [ sh:path [ sh:inversePath ai:of-run ] ; sh:qualifiedValueShape [ sh:class ai:run-status-period ] ; sh:qualifiedMinCount 1 ; sh:message "A run has a run status."@en ] ;
80
+ sh:xone (
81
+ [ sh:property [ sh:path core:in-workspace ; sh:maxCount 0 ] , [ sh:path core:for-user ; sh:maxCount 0 ] , [ sh:path core:with-key ; sh:maxCount 0 ] ; sh:node ai-shapes:internal-caller-shape ]
82
+ [ sh:property [ sh:path core:in-workspace ; sh:minCount 1 ; sh:maxCount 1 ] , [ sh:path core:for-user ; sh:minCount 1 ; sh:maxCount 1 ] , [ sh:path core:with-key ; sh:minCount 1 ; sh:maxCount 1 ] ; sh:not ai-shapes:internal-caller-shape ] ) ;
83
+ sh:or ( [ sh:not ai-shapes:skipped-run-condition-shape ] [ sh:property [ sh:path core:started-at ; sh:maxCount 0 ] , [ sh:path ai:of-schedule ; sh:minCount 1 ] ] ) ;
84
+ sh:message "A run of the internal caller eval or replay has no workspace, no user and no key. Each other run has exactly one workspace, one user and one key. A skipped run is a run of a schedule and has no start time."@en .
85
+
86
+ ai-shapes:run-status-period-shape a sh:NodeShape ;
87
+ sh:targetClass ai:run-status-period ;
88
+ sh:closed true ;
89
+ sh:ignoredProperties ( rdf:type ) ;
90
+ sh:property
91
+ [ sh:path ai:of-run ; sh:class ai:run ; sh:minCount 1 ; sh:maxCount 1 ] ,
92
+ [ sh:path ai:has-status-value ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:run-status-queued ai-vocab:run-status-running ai-vocab:run-status-suspended ai-vocab:run-status-completed ai-vocab:run-status-failed ai-vocab:run-status-cancelled ai-vocab:run-status-skipped ) ] ,
93
+ [ sh:path ai:has-suspend-reason ; sh:maxCount 1 ; sh:in ( ai-vocab:suspend-reason-tokens ai-vocab:suspend-reason-approval ai-vocab:suspend-reason-client-tool ai-vocab:suspend-reason-input ai-vocab:suspend-reason-output ai-vocab:suspend-reason-sleep ai-vocab:suspend-reason-credits ) ] ,
94
+ [ sh:path ai:has-skip-reason ; sh:maxCount 1 ; sh:in ( ai-vocab:skip-reason-budget ai-vocab:skip-reason-rate-limit ai-vocab:skip-reason-credits ) ] ,
95
+ [ sh:path ai:has-failure-reason ; sh:maxCount 1 ; sh:in ( ai-vocab:failure-reason-output ai-vocab:failure-reason-template ai-vocab:failure-reason-outbound ai-vocab:failure-reason-refused ai-vocab:failure-reason-limit ai-vocab:failure-reason-unit-cost ai-vocab:failure-reason-budget ai-vocab:failure-reason-internal ) ] ,
96
+ [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ] ,
97
+ [ sh:path core:invalidated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] ;
98
+ sh:and (
99
+ [ sh:or ( [ sh:and ( [ sh:property [ sh:path ai:has-status-value ; sh:hasValue ai-vocab:run-status-suspended ] ] [ sh:property [ sh:path ai:has-suspend-reason ; sh:minCount 1 ] ] ) ] [ sh:and ( [ sh:not [ sh:property [ sh:path ai:has-status-value ; sh:hasValue ai-vocab:run-status-suspended ] ] ] [ sh:property [ sh:path ai:has-suspend-reason ; sh:maxCount 0 ] ] ) ] ) ]
100
+ [ sh:or ( [ sh:and ( [ sh:property [ sh:path ai:has-status-value ; sh:hasValue ai-vocab:run-status-skipped ] ] [ sh:property [ sh:path ai:has-skip-reason ; sh:minCount 1 ] ] ) ] [ sh:and ( [ sh:not [ sh:property [ sh:path ai:has-status-value ; sh:hasValue ai-vocab:run-status-skipped ] ] ] [ sh:property [ sh:path ai:has-skip-reason ; sh:maxCount 0 ] ] ) ] ) ]
101
+ [ sh:or ( [ sh:and ( [ sh:property [ sh:path ai:has-status-value ; sh:hasValue ai-vocab:run-status-failed ] ] [ sh:property [ sh:path ai:has-failure-reason ; sh:minCount 1 ] ] ) ] [ sh:and ( [ sh:not [ sh:property [ sh:path ai:has-status-value ; sh:hasValue ai-vocab:run-status-failed ] ] ] [ sh:property [ sh:path ai:has-failure-reason ; sh:maxCount 0 ] ] ) ] ) ]
102
+ [ sh:or ( [ sh:not [ sh:property [ sh:path ai:has-status-value ; sh:in ( ai-vocab:run-status-completed ai-vocab:run-status-failed ai-vocab:run-status-cancelled ai-vocab:run-status-skipped ) ] ] ] [ sh:property [ sh:path core:invalidated-at ; sh:maxCount 0 ] ] ) ] ) ;
103
+ sh:message "A suspended run status has one suspend reason, a skipped one has one skip reason, and a failed one has one failure reason. No other status has a reason. A final status has no end time."@en .
104
+
105
+ ai-shapes:final-status-shape a sh:NodeShape ;
106
+ sh:targetClass ai:final-status ;
107
+ sh:property
108
+ [ sh:path ai:has-status-value ; sh:in ( ai-vocab:run-status-completed ai-vocab:run-status-failed ai-vocab:run-status-cancelled ai-vocab:run-status-skipped ) ] ,
109
+ [ sh:path core:invalidated-at ; sh:maxCount 0 ; sh:message "A run cannot change after a final status, so a final status has no end time."@en ] .
110
+
111
+ ai-shapes:run-segment-shape a sh:NodeShape ;
112
+ sh:targetClass ai:run-segment ;
113
+ sh:closed true ;
114
+ sh:ignoredProperties ( rdf:type ) ;
115
+ sh:property
116
+ [ sh:path ai:part-of-run ; sh:class ai:run ; sh:minCount 1 ; sh:maxCount 1 ] ,
117
+ [ sh:path ai:has-segment-number ; sh:datatype xsd:positiveInteger ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 1 ] ,
118
+ [ sh:path ai:with-hold ; sh:class billing:hold ; sh:maxCount 1 ] ,
119
+ [ sh:path ( ai:with-hold core:id ) ; sh:pattern "^kai-agent:run:[^:]+:[1-9][0-9]*$" ; sh:message "The hold id of a run segment is kai-agent:run:<run id>:<segment number>."@en ] ,
120
+ [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ] ,
121
+ [ sh:path core:ended-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] ;
122
+ sh:or ( [ sh:not [ sh:property [ sh:path ( ai:part-of-run ai:by-caller ) ; sh:minCount 1 ; sh:in ( ai-vocab:caller-eval ai-vocab:caller-replay ) ] ] ] [ sh:property [ sh:path ai:with-hold ; sh:maxCount 0 ] ] ) ;
123
+ sh:message "A run segment of a run of the internal caller eval or replay opens no hold."@en .
124
+
125
+ ai-shapes:webhook-shape a sh:NodeShape ;
126
+ sh:targetClass ai:webhook ;
127
+ sh:closed true ;
128
+ sh:ignoredProperties ( rdf:type ) ;
129
+ sh:property
130
+ [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
131
+ [ sh:path ai:tells-status ; sh:class ai:run-status-period ; sh:minCount 1 ; sh:maxCount 1 ] ,
132
+ [ sh:path ( ai:tells-status ai:has-status-value ) ; sh:in ( ai-vocab:run-status-suspended ai-vocab:run-status-completed ai-vocab:run-status-failed ai-vocab:run-status-cancelled ai-vocab:run-status-skipped ) ; sh:message "A webhook tells that a run suspends or gets a final status."@en ] ,
133
+ [ sh:path core:with-key ; sh:class core:key ; sh:maxCount 1 ] ,
134
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:maxCount 1 ] ,
135
+ [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ] .
136
+
137
+ ai-shapes:run-suspended-shape a sh:NodeShape ;
138
+ sh:targetClass ai:run-suspended ;
139
+ sh:closed true ;
140
+ sh:ignoredProperties ( rdf:type ) ;
141
+ sh:property
142
+ [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
143
+ [ sh:path ai:tells-status ; sh:class ai:run-status-period ; sh:minCount 1 ; sh:maxCount 1 ] ,
144
+ [ sh:path ( ai:tells-status ai:has-status-value ) ; sh:in ( ai-vocab:run-status-suspended ai-vocab:run-status-completed ai-vocab:run-status-failed ai-vocab:run-status-cancelled ai-vocab:run-status-skipped ) ; sh:message "A webhook tells that a run suspends or gets a final status."@en ] ,
145
+ [ sh:path core:with-key ; sh:class core:key ; sh:maxCount 1 ] ,
146
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:maxCount 1 ] ,
147
+ [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ] ,
148
+ [ sh:path ( ai:tells-status ai:has-status-value ) ; sh:hasValue ai-vocab:run-status-suspended ; sh:message "The webhook run.suspended tells the run status suspended."@en ] .
149
+
150
+ ai-shapes:run-completed-shape a sh:NodeShape ;
151
+ sh:targetClass ai:run-completed ;
152
+ sh:closed true ;
153
+ sh:ignoredProperties ( rdf:type ) ;
154
+ sh:property
155
+ [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
156
+ [ sh:path ai:tells-status ; sh:class ai:run-status-period ; sh:minCount 1 ; sh:maxCount 1 ] ,
157
+ [ sh:path ( ai:tells-status ai:has-status-value ) ; sh:in ( ai-vocab:run-status-suspended ai-vocab:run-status-completed ai-vocab:run-status-failed ai-vocab:run-status-cancelled ai-vocab:run-status-skipped ) ; sh:message "A webhook tells that a run suspends or gets a final status."@en ] ,
158
+ [ sh:path core:with-key ; sh:class core:key ; sh:maxCount 1 ] ,
159
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:maxCount 1 ] ,
160
+ [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ] ,
161
+ [ sh:path ( ai:tells-status ai:has-status-value ) ; sh:hasValue ai-vocab:run-status-completed ; sh:message "The webhook run.completed tells the run status completed."@en ] .
162
+
163
+ ai-shapes:run-failed-shape a sh:NodeShape ;
164
+ sh:targetClass ai:run-failed ;
165
+ sh:closed true ;
166
+ sh:ignoredProperties ( rdf:type ) ;
167
+ sh:property
168
+ [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
169
+ [ sh:path ai:tells-status ; sh:class ai:run-status-period ; sh:minCount 1 ; sh:maxCount 1 ] ,
170
+ [ sh:path ( ai:tells-status ai:has-status-value ) ; sh:in ( ai-vocab:run-status-suspended ai-vocab:run-status-completed ai-vocab:run-status-failed ai-vocab:run-status-cancelled ai-vocab:run-status-skipped ) ; sh:message "A webhook tells that a run suspends or gets a final status."@en ] ,
171
+ [ sh:path core:with-key ; sh:class core:key ; sh:maxCount 1 ] ,
172
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:maxCount 1 ] ,
173
+ [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ] ,
174
+ [ sh:path ( ai:tells-status ai:has-status-value ) ; sh:hasValue ai-vocab:run-status-failed ; sh:message "The webhook run.failed tells the run status failed."@en ] .
175
+
176
+ ai-shapes:run-cancelled-shape a sh:NodeShape ;
177
+ sh:targetClass ai:run-cancelled ;
178
+ sh:closed true ;
179
+ sh:ignoredProperties ( rdf:type ) ;
180
+ sh:property
181
+ [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
182
+ [ sh:path ai:tells-status ; sh:class ai:run-status-period ; sh:minCount 1 ; sh:maxCount 1 ] ,
183
+ [ sh:path ( ai:tells-status ai:has-status-value ) ; sh:in ( ai-vocab:run-status-suspended ai-vocab:run-status-completed ai-vocab:run-status-failed ai-vocab:run-status-cancelled ai-vocab:run-status-skipped ) ; sh:message "A webhook tells that a run suspends or gets a final status."@en ] ,
184
+ [ sh:path core:with-key ; sh:class core:key ; sh:maxCount 1 ] ,
185
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:maxCount 1 ] ,
186
+ [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ] ,
187
+ [ sh:path ( ai:tells-status ai:has-status-value ) ; sh:hasValue ai-vocab:run-status-cancelled ; sh:message "The webhook run.cancelled tells the run status cancelled."@en ] .
188
+
189
+ ai-shapes:run-skipped-shape a sh:NodeShape ;
190
+ sh:targetClass ai:run-skipped ;
191
+ sh:closed true ;
192
+ sh:ignoredProperties ( rdf:type ) ;
193
+ sh:property
194
+ [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
195
+ [ sh:path ai:tells-status ; sh:class ai:run-status-period ; sh:minCount 1 ; sh:maxCount 1 ] ,
196
+ [ sh:path ( ai:tells-status ai:has-status-value ) ; sh:in ( ai-vocab:run-status-suspended ai-vocab:run-status-completed ai-vocab:run-status-failed ai-vocab:run-status-cancelled ai-vocab:run-status-skipped ) ; sh:message "A webhook tells that a run suspends or gets a final status."@en ] ,
197
+ [ sh:path core:with-key ; sh:class core:key ; sh:maxCount 1 ] ,
198
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:maxCount 1 ] ,
199
+ [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ] ,
200
+ [ sh:path ( ai:tells-status ai:has-status-value ) ; sh:hasValue ai-vocab:run-status-skipped ; sh:message "The webhook run.skipped tells the run status skipped."@en ] .
201
+
202
+ ai-shapes:task-shape a sh:NodeShape ;
203
+ sh:targetClass ai:task ;
204
+ sh:closed true ;
205
+ sh:ignoredProperties ( rdf:type ) ;
206
+ sh:property
207
+ [ sh:path core:has-name ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ; sh:pattern "^[a-z]+(\\.[a-z]+)*$" ; sh:message "A task name is lowercase, with a dot between the object and the action, for example text.next."@en ] ,
208
+ [ sh:path ai:has-runner ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:runner-completion ai-vocab:runner-agent ai-vocab:runner-workflow ) ] ,
209
+ [ sh:path ai:has-output-kind ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:output-kind-text ai-vocab:output-kind-object ) ] ,
210
+ [ sh:path ai:has-decision-form ; sh:class core:concept ; sh:node ai-shapes:decision-form-concept-shape ; sh:maxCount 1 ] ,
211
+ [ sh:path ai:has-schema-version ; sh:datatype xsd:positiveInteger ; sh:minCount 1 ; sh:maxCount 1 ] ,
212
+ [ sh:path ai:has-task-minimum ; sh:datatype xsd:long ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ] ,
213
+ [ sh:path ai:is-ephemeral ; sh:datatype xsd:boolean ; sh:maxCount 1 ] ,
214
+ [ sh:path ai:enables-memory ; sh:datatype xsd:boolean ; sh:maxCount 1 ] ,
215
+ [ sh:path ai:has-task-tag ; sh:class billing:tag ; sh:maxCount 5 ; sh:message "A task has a maximum of 5 task tags, because a hold has a maximum of 5 tags."@en ] ,
216
+ [ sh:path ai:has-run-limit ; sh:class ai:run-limit ] ,
217
+ [ sh:path ai:has-rate-limit ; sh:class ai:rate-limit ; sh:minCount 1 ; sh:maxCount 1 ] ,
218
+ [ sh:path ai:allows-tool ; sh:class ai:tool ] ;
219
+ sh:or ( [ sh:not [ sh:property [ sh:path ai:has-runner ; sh:hasValue ai-vocab:runner-completion ] ] ] [ sh:property [ sh:path ai:allows-tool ; sh:maxCount 0 ] , [ sh:path ai:enables-memory ; sh:in ( false ) ] ] ) ;
220
+ sh:message "A task of the runner completion has no memory and no tools."@en .
221
+
222
+ ai-shapes:decision-task-shape a sh:NodeShape ;
223
+ sh:targetSubjectsOf ai:has-decision-form ;
224
+ sh:property
225
+ [ sh:path ai:has-runner ; sh:hasValue ai-vocab:runner-completion ; sh:message "A decision task has the runner completion."@en ] ,
226
+ [ sh:path ai:has-output-kind ; sh:hasValue ai-vocab:output-kind-object ; sh:message "A decision task has the output kind object."@en ] .
227
+
228
+ ai-shapes:prompt-version-shape a sh:NodeShape ;
229
+ sh:targetClass ai:prompt-version ;
230
+ sh:closed true ;
231
+ sh:ignoredProperties ( rdf:type ) ;
232
+ sh:property
233
+ [ sh:path ai:of-task ; sh:class ai:task ; sh:minCount 1 ; sh:maxCount 1 ] ,
234
+ [ sh:path ai:has-version-number ; sh:datatype xsd:positiveInteger ; sh:minCount 1 ; sh:maxCount 1 ] ,
235
+ [ sh:path ai:has-template ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
236
+ [ sh:path ai:has-schema-version ; sh:datatype xsd:positiveInteger ; sh:minCount 1 ; sh:maxCount 1 ] ,
237
+ [ sh:path ai:has-fallback-list ; sh:class ai:fallback-list ; sh:minCount 1 ; sh:maxCount 1 ] ,
238
+ [ sh:path ai:has-escalation-model ; sh:class ai:model ; sh:maxCount 1 ] ,
239
+ [ sh:path ai:uses-partial ; sh:class ai:partial ] ,
240
+ [ sh:path ai:has-note ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
241
+ [ sh:path core:was-revision-of ; sh:class ai:prompt-version ; sh:maxCount 1 ] ,
242
+ [ sh:path core:was-attributed-to ; sh:class core:agent ; sh:maxCount 1 ] ,
243
+ [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ] ,
244
+ [ sh:path ( ai:has-fallback-list [ sh:inversePath ai:in-fallback-list ] ai:uses-model ai:of-provider ) ; sh:not [ sh:and ( [ sh:property [ sh:path billing:has-processing-region ; sh:hasValue core-vocab:processing-region-outside-eu ] ] [ sh:property [ sh:path billing:has-transfer-safeguard ; sh:hasValue core-vocab:transfer-safeguard-none ] ] ) ] ; sh:message "A prompt version cannot use a model whose provider processes data outside the EU with the transfer safeguard none."@en ; sh:severity sh:Warning ] .
245
+
246
+ ai-shapes:partial-shape a sh:NodeShape ;
247
+ sh:targetClass ai:partial ;
248
+ sh:closed true ;
249
+ sh:ignoredProperties ( rdf:type ) ;
250
+ sh:property
251
+ [ sh:path core:has-name ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
252
+ [ sh:path ai:has-version-number ; sh:datatype xsd:positiveInteger ; sh:minCount 1 ; sh:maxCount 1 ] ,
253
+ [ sh:path ai:has-template ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
254
+ [ sh:path ai:of-task ; sh:maxCount 0 ; sh:message "A partial belongs to no task."@en ] ,
255
+ [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] .
256
+
257
+ ai-shapes:release-shape a sh:NodeShape ;
258
+ sh:targetClass ai:release ;
259
+ sh:closed true ;
260
+ sh:ignoredProperties ( rdf:type ) ;
261
+ sh:property
262
+ [ sh:path ai:of-task ; sh:class ai:task ; sh:minCount 1 ; sh:maxCount 1 ] ,
263
+ [ sh:path ai:has-current ; sh:class ai:prompt-version ; sh:minCount 1 ; sh:maxCount 1 ] ,
264
+ [ sh:path ai:has-candidate ; sh:class ai:prompt-version ; sh:maxCount 1 ] ,
265
+ [ sh:path ai:has-candidate-percentage ; sh:datatype xsd:decimal ; sh:maxCount 1 ; sh:minInclusive 0 ; sh:maxInclusive 100 ] ;
266
+ sh:or ( [ sh:property [ sh:path ai:has-candidate ; sh:minCount 1 ] , [ sh:path ai:has-candidate-percentage ; sh:minCount 1 ] ] [ sh:property [ sh:path ai:has-candidate ; sh:maxCount 0 ] , [ sh:path ai:has-candidate-percentage ; sh:maxCount 0 ] ] ) ;
267
+ sh:message "A release has a candidate percentage exactly when it has a candidate."@en .
268
+
269
+ ai-shapes:override-shape a sh:NodeShape ;
270
+ sh:targetClass ai:override ;
271
+ sh:closed true ;
272
+ sh:ignoredProperties ( rdf:type ) ;
273
+ sh:property
274
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ] ,
275
+ [ sh:path ai:of-task ; sh:class ai:task ; sh:minCount 1 ; sh:maxCount 1 ] ,
276
+ [ sh:path ai:pins ; sh:class ai:prompt-version ; sh:minCount 1 ; sh:maxCount 1 ] ,
277
+ [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] .
278
+
279
+ ai-shapes:fallback-list-shape a sh:NodeShape ;
280
+ sh:targetClass ai:fallback-list ;
281
+ sh:closed true ;
282
+ sh:ignoredProperties ( rdf:type ) ;
283
+ sh:property
284
+ [ sh:path [ sh:inversePath ai:has-fallback-list ] ; sh:class ai:prompt-version ; sh:minCount 1 ; sh:maxCount 1 ; sh:message "A fallback list belongs to one prompt version."@en ] ,
285
+ [ sh:path [ sh:inversePath ai:in-fallback-list ] ; sh:class ai:fallback-entry ; sh:minCount 1 ; sh:message "A fallback list has one or more entries."@en ] .
286
+
287
+ ai-shapes:fallback-entry-shape a sh:NodeShape ;
288
+ sh:targetClass ai:fallback-entry ;
289
+ sh:closed true ;
290
+ sh:ignoredProperties ( rdf:type ) ;
291
+ sh:property
292
+ [ sh:path ai:in-fallback-list ; sh:class ai:fallback-list ; sh:minCount 1 ; sh:maxCount 1 ] ,
293
+ [ sh:path ai:at-position ; sh:datatype xsd:positiveInteger ; sh:minCount 1 ; sh:maxCount 1 ] ,
294
+ [ sh:path ai:uses-model ; sh:class ai:model ; sh:minCount 1 ; sh:maxCount 1 ] ,
295
+ [ sh:path ai:has-temperature ; sh:datatype xsd:decimal ; sh:maxCount 1 ] ,
296
+ [ sh:path ai:has-max-output-tokens ; sh:datatype xsd:positiveInteger ; sh:maxCount 1 ] ,
297
+ [ sh:path ai:has-provider-options ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
298
+ [ sh:path ai:requests-reasoning ; sh:datatype xsd:boolean ; sh:maxCount 1 ] .
299
+
300
+ ai-shapes:model-shape a sh:NodeShape ;
301
+ sh:targetClass ai:model ;
302
+ sh:closed true ;
303
+ sh:ignoredProperties ( rdf:type ) ;
304
+ sh:property
305
+ [ sh:path ai:of-provider ; sh:class ai:provider ; sh:minCount 1 ; sh:maxCount 1 ] ,
306
+ [ sh:path ai:has-model-id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] .
307
+
308
+ ai-shapes:provider-shape a sh:NodeShape ;
309
+ sh:targetClass ai:provider ;
310
+ sh:closed true ;
311
+ sh:ignoredProperties ( rdf:type ) ;
312
+ sh:property
313
+ [ sh:path core:has-name ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
314
+ [ sh:path billing:has-processing-region ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( core-vocab:processing-region-eu core-vocab:processing-region-outside-eu ) ] ,
315
+ [ sh:path billing:has-transfer-safeguard ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( core-vocab:transfer-safeguard-scc core-vocab:transfer-safeguard-dpf core-vocab:transfer-safeguard-adequacy core-vocab:transfer-safeguard-none ) ] ,
316
+ [ sh:path ai:has-retention-terms ; sh:datatype xsd:string ; sh:maxCount 1 ] .
317
+
318
+ ai-shapes:mcp-server-shape a sh:NodeShape ;
319
+ sh:targetClass ai:mcp-server ;
320
+ sh:closed true ;
321
+ sh:ignoredProperties ( rdf:type ) ;
322
+ sh:property
323
+ [ sh:path core:has-name ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
324
+ [ sh:path ai:has-url ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] .
325
+
326
+ ai-shapes:tool-shape a sh:NodeShape ;
327
+ sh:targetClass ai:tool ;
328
+ sh:closed true ;
329
+ sh:ignoredProperties ( rdf:type ) ;
330
+ sh:property
331
+ [ sh:path core:has-name ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
332
+ [ sh:path ai:has-tool-kind ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:tool-kind-mcp ai-vocab:tool-kind-client ) ] ,
333
+ [ sh:path ai:has-tool-risk ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:tool-risk-read ai-vocab:tool-risk-write ai-vocab:tool-risk-destructive ) ] ,
334
+ [ sh:path ai:has-read-only-hint ; sh:datatype xsd:boolean ; sh:maxCount 1 ] ,
335
+ [ sh:path ai:has-destructive-hint ; sh:datatype xsd:boolean ; sh:maxCount 1 ] ,
336
+ [ sh:path ai:on-server ; sh:class ai:mcp-server ; sh:maxCount 1 ] ;
337
+ sh:or (
338
+ [ sh:property [ sh:path ai:has-tool-risk ; sh:hasValue ai-vocab:tool-risk-read ] , [ sh:path ai:has-read-only-hint ; sh:hasValue true ] , [ sh:path ai:has-destructive-hint ; sh:in ( false ) ] ]
339
+ [ sh:property [ sh:path ai:has-tool-risk ; sh:hasValue ai-vocab:tool-risk-write ] , [ sh:path ai:has-read-only-hint ; sh:in ( false ) ] , [ sh:path ai:has-destructive-hint ; sh:hasValue false ] ]
340
+ [ sh:property [ sh:path ai:has-tool-risk ; sh:hasValue ai-vocab:tool-risk-destructive ] ; sh:or ( [ sh:property [ sh:path ai:has-destructive-hint ; sh:hasValue true ] ] [ sh:property [ sh:path ai:has-read-only-hint ; sh:in ( false ) ] , [ sh:path ai:has-destructive-hint ; sh:maxCount 0 ] ] ) ] ) ;
341
+ sh:message "The risk of a tool follows the table of its MCP annotations: read when readOnlyHint is true and destructiveHint is false or none; write when readOnlyHint is false or none and destructiveHint is false; destructive in each other case."@en .
342
+
343
+ ai-shapes:mcp-tool-shape a sh:NodeShape ;
344
+ sh:targetClass ai:mcp-tool ;
345
+ sh:closed true ;
346
+ sh:ignoredProperties ( rdf:type ) ;
347
+ sh:property
348
+ [ sh:path core:has-name ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
349
+ [ sh:path ai:has-tool-kind ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:tool-kind-mcp ai-vocab:tool-kind-client ) ] ,
350
+ [ sh:path ai:has-tool-risk ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:tool-risk-read ai-vocab:tool-risk-write ai-vocab:tool-risk-destructive ) ] ,
351
+ [ sh:path ai:has-read-only-hint ; sh:datatype xsd:boolean ; sh:maxCount 1 ] ,
352
+ [ sh:path ai:has-destructive-hint ; sh:datatype xsd:boolean ; sh:maxCount 1 ] ,
353
+ [ sh:path ai:on-server ; sh:class ai:mcp-server ; sh:maxCount 1 ] ,
354
+ [ sh:path ai:has-tool-kind ; sh:hasValue ai-vocab:tool-kind-mcp ] ,
355
+ [ sh:path ai:on-server ; sh:minCount 1 ; sh:message "An MCP tool has one MCP server."@en ] .
356
+
357
+ ai-shapes:client-tool-shape a sh:NodeShape ;
358
+ sh:targetClass ai:client-tool ;
359
+ sh:closed true ;
360
+ sh:ignoredProperties ( rdf:type ) ;
361
+ sh:property
362
+ [ sh:path core:has-name ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
363
+ [ sh:path ai:has-tool-kind ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:tool-kind-mcp ai-vocab:tool-kind-client ) ] ,
364
+ [ sh:path ai:has-tool-risk ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:tool-risk-read ai-vocab:tool-risk-write ai-vocab:tool-risk-destructive ) ] ,
365
+ [ sh:path ai:has-read-only-hint ; sh:datatype xsd:boolean ; sh:maxCount 1 ] ,
366
+ [ sh:path ai:has-destructive-hint ; sh:datatype xsd:boolean ; sh:maxCount 1 ] ,
367
+ [ sh:path ai:on-server ; sh:class ai:mcp-server ; sh:maxCount 1 ] ,
368
+ [ sh:path ai:has-tool-kind ; sh:hasValue ai-vocab:tool-kind-client ] ,
369
+ [ sh:path ai:on-server ; sh:maxCount 0 ; sh:message "A client tool has no server code."@en ] .
370
+
371
+ ai-shapes:server-token-shape a sh:NodeShape ;
372
+ sh:targetClass ai:server-token ;
373
+ sh:closed true ;
374
+ sh:ignoredProperties ( rdf:type ) ;
375
+ sh:property
376
+ [ sh:path ai:for-server ; sh:class ai:mcp-server ; sh:minCount 1 ; sh:maxCount 1 ] ,
377
+ [ sh:path ai:has-server-token-kind ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:server-token-kind-act-for ai-vocab:server-token-kind-access ai-vocab:server-token-kind-refresh ) ] ,
378
+ [ sh:path ai:of-run ; sh:class ai:run ; sh:maxCount 1 ] ;
379
+ sh:or ( [ sh:not [ sh:property [ sh:path ai:has-server-token-kind ; sh:hasValue ai-vocab:server-token-kind-refresh ] ] ] [ sh:property [ sh:path ai:of-run ; sh:minCount 1 ] ] ) ;
380
+ sh:message "The service stores a server token of kind refresh for one run and one server."@en .
381
+
382
+ ai-shapes:outbound-call-shape a sh:NodeShape ;
383
+ sh:targetClass ai:outbound-call ;
384
+ sh:closed true ;
385
+ sh:ignoredProperties ( rdf:type ) ;
386
+ sh:property
387
+ [ sh:path ai:of-run ; sh:class ai:run ; sh:minCount 1 ; sh:maxCount 1 ] ,
388
+ [ sh:path ai:in-run-segment ; sh:class ai:run-segment ; sh:minCount 1 ; sh:maxCount 1 ] ,
389
+ [ sh:path ai:has-outbound-kind ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:outbound-kind-model ai-vocab:outbound-kind-mcp ) ] ,
390
+ [ sh:path ai:has-outbound-result ; sh:maxCount 1 ; sh:in ( ai-vocab:outbound-result-ok ai-vocab:outbound-result-error ai-vocab:outbound-result-cancelled ) ] ,
391
+ [ sh:path ai:has-object-check ; sh:maxCount 1 ; sh:in ( ai-vocab:object-check-valid ai-vocab:object-check-invalid ) ] ,
392
+ [ sh:path ai:escalates ; sh:class ai:outbound-call ; sh:maxCount 1 ] ,
393
+ [ sh:path ai:to-source ; sh:class ai:source ; sh:minCount 1 ; sh:maxCount 1 ] ,
394
+ [ sh:path ai:to-target ; sh:class ai:target ; sh:minCount 1 ; sh:maxCount 1 ] ,
395
+ [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ] ,
396
+ [ sh:path core:ended-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] ;
397
+ sh:xone ( [ sh:property [ sh:path ai:has-outbound-kind ; sh:hasValue ai-vocab:outbound-kind-model ] , [ sh:path ai:to-source ; sh:class ai:provider ] , [ sh:path ai:to-target ; sh:class ai:model ] ] [ sh:property [ sh:path ai:has-outbound-kind ; sh:hasValue ai-vocab:outbound-kind-mcp ] , [ sh:path ai:to-source ; sh:class ai:mcp-server ] , [ sh:path ai:has-object-check ; sh:maxCount 0 ] ] ) ;
398
+ sh:message "An outbound call of the kind model goes to a model of a provider. An outbound call of the kind mcp goes to an MCP server and has no object check."@en .
399
+
400
+ ai-shapes:repair-attempt-shape a sh:NodeShape ;
401
+ sh:targetClass ai:repair-attempt ;
402
+ sh:property
403
+ [ sh:path ai:has-outbound-kind ; sh:hasValue ai-vocab:outbound-kind-model ; sh:message "A repair attempt is an outbound call of the kind model."@en ] .
404
+
405
+ ai-shapes:confident-run-shape a sh:NodeShape ;
406
+ sh:targetSubjectsOf ai:with-confidence ;
407
+ sh:property
408
+ [ sh:path ( ai:of-task ai:has-decision-form ) ; sh:minCount 1 ; sh:message "Only a run of a decision task has a decision confidence."@en ] .
409
+
410
+ ai-shapes:escalation-shape a sh:NodeShape ;
411
+ sh:targetSubjectsOf ai:escalates ;
412
+ sh:property
413
+ [ sh:path ai:has-outbound-kind ; sh:hasValue ai-vocab:outbound-kind-model ; sh:message "An escalation is an outbound call of the kind model."@en ] ,
414
+ [ sh:path ( ai:escalates ai:has-object-check ) ; sh:hasValue ai-vocab:object-check-valid ; sh:message "An escalation follows only a valid object."@en ] ,
415
+ [ sh:path ( ai:escalates ai:of-run ) ; sh:equals ai:of-run ; sh:message "An escalation answers again a call of its own run."@en ] ,
416
+ [ sh:path ( ai:of-run [ sh:inversePath ai:of-run ] ) ; sh:qualifiedValueShape [ sh:property [ sh:path ai:escalates ; sh:minCount 1 ] ] ; sh:qualifiedMaxCount 1 ; sh:message "A run has a maximum of one escalation."@en ] ,
417
+ [ sh:path ( ai:of-run ai:with-confidence ) ; sh:minCount 1 ; sh:message "A run with an escalation is a run of a decision task, so it has a decision confidence."@en ] .
418
+
419
+ ai-shapes:spend-entry-shape a sh:NodeShape ;
420
+ sh:targetClass ai:spend-entry ;
421
+ sh:closed true ;
422
+ sh:ignoredProperties ( rdf:type ) ;
423
+ sh:property
424
+ [ sh:path ai:of-outbound-call ; sh:class ai:outbound-call ; sh:minCount 1 ; sh:maxCount 1 ] ,
425
+ [ sh:path ( ai:of-outbound-call ai:has-outbound-kind ) ; sh:hasValue ai-vocab:outbound-kind-model ; sh:message "Only model calls write spend entries. A tool call to an MCP server writes no spend entry."@en ] ,
426
+ [ sh:path ai:of-run ; sh:class ai:run ; sh:minCount 1 ; sh:maxCount 1 ] ,
427
+ [ sh:path ai:to-source ; sh:class ai:provider ; sh:minCount 1 ; sh:maxCount 1 ] ,
428
+ [ sh:path ai:to-target ; sh:class ai:model ; sh:minCount 1 ; sh:maxCount 1 ] ,
429
+ [ sh:path ai:in-cost-unit ; sh:class core:concept ; sh:node ai-shapes:cost-unit-concept-shape ; sh:minCount 1 ; sh:maxCount 1 ] ,
430
+ [ sh:path ai:has-quantity ; sh:datatype xsd:decimal ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ] ,
431
+ [ sh:path ai:at-unit-cost ; sh:class billing:unit-cost ; sh:minCount 1 ; sh:maxCount 1 ] ,
432
+ [ sh:path billing:has-cost ; sh:datatype xsd:long ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ] ,
433
+ [ sh:path ai:has-outbound-result ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:outbound-result-ok ai-vocab:outbound-result-error ai-vocab:outbound-result-cancelled ) ] ,
434
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:maxCount 1 ] ,
435
+ [ sh:path core:for-user ; sh:class core:user ; sh:maxCount 1 ] ,
436
+ [ sh:path ai:by-caller ; sh:class core:concept ; sh:node ai-shapes:caller-concept-shape ; sh:minCount 1 ; sh:maxCount 1 ] ,
437
+ [ sh:path ai:of-task ; sh:class ai:task ; sh:minCount 1 ; sh:maxCount 1 ] ,
438
+ [ sh:path ai:with-prompt-version ; sh:class ai:prompt-version ; sh:minCount 1 ; sh:maxCount 1 ] ,
439
+ [ sh:path ai:has-correlation-id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
440
+ [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] .
441
+
442
+ ai-shapes:budget-shape a sh:NodeShape ;
443
+ sh:targetClass ai:budget ;
444
+ sh:closed true ;
445
+ sh:ignoredProperties ( rdf:type ) ;
446
+ sh:property
447
+ [ sh:path ai:has-budget-scope ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:budget-scope-global ai-vocab:budget-scope-provider ai-vocab:budget-scope-calibration ) ] ,
448
+ [ sh:path ai:limits-provider ; sh:class ai:provider ; sh:maxCount 1 ] ,
449
+ [ sh:path ai:has-maximum-cost ; sh:datatype xsd:long ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ] ;
450
+ sh:or ( [ sh:property [ sh:path ai:has-budget-scope ; sh:hasValue ai-vocab:budget-scope-provider ] , [ sh:path ai:limits-provider ; sh:minCount 1 ] ] [ sh:and ( [ sh:not [ sh:property [ sh:path ai:has-budget-scope ; sh:hasValue ai-vocab:budget-scope-provider ] ] ] [ sh:property [ sh:path ai:limits-provider ; sh:maxCount 0 ] ] ) ] ) ;
451
+ sh:message "A budget of the scope provider limits one provider. A budget of a different scope limits no provider."@en .
452
+
453
+ ai-shapes:model-limit-shape a sh:NodeShape ;
454
+ sh:targetClass ai:model-limit ;
455
+ sh:closed true ;
456
+ sh:ignoredProperties ( rdf:type ) ;
457
+ sh:property
458
+ [ sh:path ai:to-source ; sh:class ai:source ; sh:minCount 1 ; sh:maxCount 1 ; sh:message "A model limit has one provider."@en ] ,
459
+ [ sh:path ai:to-target ; sh:class ai:target ; sh:minCount 1 ; sh:maxCount 1 ; sh:message "A model limit has one model."@en ] ,
460
+ [ sh:path ai:has-call-timeout ; sh:datatype xsd:integer ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 1 ; sh:maxInclusive 3600 ; sh:message "A call time limit is a whole number of seconds from 1 to 3600."@en ] .
461
+
462
+ ai-shapes:run-limit-shape a sh:NodeShape ;
463
+ sh:targetClass ai:run-limit ;
464
+ sh:closed true ;
465
+ sh:ignoredProperties ( rdf:type ) ;
466
+ sh:property
467
+ [ sh:path ai:has-limit-kind ; sh:class core:concept ; sh:node ai-shapes:run-limit-concept-shape ; sh:minCount 1 ; sh:maxCount 1 ] ,
468
+ [ sh:path ai:has-maximum ; sh:datatype xsd:decimal ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ] ,
469
+ [ sh:path ai:for-token-kind ; sh:class core:concept ; sh:node ai-shapes:token-kind-concept-shape ; sh:maxCount 1 ] ;
470
+ sh:or ( [ sh:property [ sh:path ai:has-limit-kind ; sh:hasValue ai-vocab:run-limit-tokens ] ] [ sh:property [ sh:path ai:for-token-kind ; sh:maxCount 0 ] ] ) ;
471
+ sh:message "Only a run limit of tokens has a token kind."@en .
472
+
473
+ ai-shapes:rate-limit-shape a sh:NodeShape ;
474
+ sh:targetClass ai:rate-limit ;
475
+ sh:closed true ;
476
+ sh:ignoredProperties ( rdf:type ) ;
477
+ sh:property
478
+ [ sh:path ai:has-maximum-per-user ; sh:datatype xsd:nonNegativeInteger ; sh:minCount 1 ; sh:maxCount 1 ] ,
479
+ [ sh:path ai:has-maximum-per-workspace ; sh:datatype xsd:nonNegativeInteger ; sh:minCount 1 ; sh:maxCount 1 ] .
480
+
481
+ ai-shapes:identifier-index-shape a sh:NodeShape ;
482
+ sh:targetClass ai:identifier-index ;
483
+ sh:closed true ;
484
+ sh:ignoredProperties ( rdf:type ) ;
485
+ sh:property
486
+ [ sh:path ai:of-run ; sh:class ai:run ; sh:minCount 1 ; sh:maxCount 1 ] ,
487
+ [ sh:path ai:has-identifier ; sh:class identity:identifier ; sh:minCount 1 ] ,
488
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:maxCount 1 ] .
489
+
490
+ ai-shapes:schedule-shape a sh:NodeShape ;
491
+ sh:targetClass ai:schedule ;
492
+ sh:closed true ;
493
+ sh:ignoredProperties ( rdf:type ) ;
494
+ sh:property
495
+ [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
496
+ [ sh:path ai:of-task ; sh:class ai:task ; sh:minCount 1 ; sh:maxCount 1 ] ,
497
+ [ sh:path ai:has-cron ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
498
+ [ sh:path ai:has-time-zone ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
499
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ] ,
500
+ [ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ] ,
501
+ [ sh:path ai:has-schedule-input ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
502
+ [ sh:path ai:owned-by-key ; sh:class core:key ; sh:minCount 1 ; sh:maxCount 1 ] ,
503
+ [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] .
504
+
505
+ ai-shapes:thread-shape a sh:NodeShape ;
506
+ sh:targetClass ai:thread ;
507
+ sh:closed true ;
508
+ sh:ignoredProperties ( rdf:type ) ;
509
+ sh:property
510
+ [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
511
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ] ,
512
+ [ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ] ,
513
+ [ sh:path ai:has-title ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
514
+ [ sh:path ai:last-message-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] ,
515
+ [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] .
516
+
517
+ ai-shapes:memory-shape a sh:NodeShape ;
518
+ sh:targetClass ai:memory ;
519
+ sh:closed true ;
520
+ sh:ignoredProperties ( rdf:type ) ;
521
+ sh:property
522
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ] ,
523
+ [ sh:path core:for-user ; sh:class core:user ; sh:minCount 1 ; sh:maxCount 1 ] ,
524
+ [ sh:path ai:in-thread ; sh:class ai:thread ; sh:maxCount 1 ] .
525
+
526
+ ai-shapes:admin-change-shape a sh:NodeShape ;
527
+ sh:targetClass ai:admin-change ;
528
+ sh:closed true ;
529
+ sh:ignoredProperties ( rdf:type ) ;
530
+ sh:property
531
+ [ sh:path core:qualified-association ; sh:node [ sh:property [ sh:path core:had-role ; sh:minCount 1 ; sh:hasValue core-vocab:role-audit-actor ] , [ sh:path core:by-agent ; sh:class core:agent ; sh:minCount 1 ; sh:maxCount 1 ] ] ; sh:minCount 1 ; sh:maxCount 1 ; sh:message "An admin change has one actor: the person or the caller that makes it."@en ] ,
532
+ [ sh:path identity:has-difference ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
533
+ [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ] .
534
+
535
+ ai-shapes:key-shape a sh:NodeShape ;
536
+ sh:targetClass core:key ;
537
+ sh:property
538
+ [ sh:path identity:has-scope ; sh:class core:concept ; sh:node ai-shapes:key-scope-concept-shape ] ,
539
+ [ sh:path ai:allows-task ; sh:class ai:task ] ,
540
+ [ sh:path ai:has-webhook-url ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
541
+ [ sh:path ai:has-api-version ; sh:datatype xsd:string ; sh:maxCount 1 ; sh:pattern "^[0-9]{4}-[0-9]{2}-[0-9]{2}$" ] .
542
+
543
+ ai-shapes:run-content-shape a sh:NodeShape ;
544
+ sh:targetClass ai:run-content ;
545
+ sh:closed true ;
546
+ sh:ignoredProperties ( rdf:type ) ;
547
+ sh:property
548
+ [ sh:path ai:of-run ; sh:class ai:run ; sh:minCount 1 ; sh:maxCount 1 ] ,
549
+ [ sh:path ai:has-input ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
550
+ [ sh:path ai:has-rendered-prompt ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
551
+ [ sh:path ai:has-output ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
552
+ [ sh:path ai:has-tool-calls ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
553
+ [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] ,
554
+ [ sh:path ( ai:of-run ai:of-task ai:is-ephemeral ) ; sh:not [ sh:hasValue true ] ; sh:message "A task with ephemeral has no run content."@en ] .
555
+
556
+ ai-shapes:scorer-shape a sh:NodeShape ;
557
+ sh:targetClass ai:scorer ;
558
+ sh:closed true ;
559
+ sh:ignoredProperties ( rdf:type ) ;
560
+ sh:property
561
+ [ sh:path core:has-name ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
562
+ [ sh:path ai:of-task ; sh:class ai:task ; sh:minCount 1 ; sh:maxCount 1 ; sh:message "A scorer belongs to one task."@en ] ,
563
+ [ sh:path ai:has-scorer-kind ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:scorer-kind-rule ai-vocab:scorer-kind-judge ) ] .
564
+
565
+ ai-shapes:rule-scorer-shape a sh:NodeShape ;
566
+ sh:targetClass ai:rule-scorer ;
567
+ sh:closed true ;
568
+ sh:ignoredProperties ( rdf:type ) ;
569
+ sh:property
570
+ [ sh:path core:has-name ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
571
+ [ sh:path ai:of-task ; sh:class ai:task ; sh:minCount 1 ; sh:maxCount 1 ; sh:message "A scorer belongs to one task."@en ] ,
572
+ [ sh:path ai:has-scorer-kind ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:scorer-kind-rule ai-vocab:scorer-kind-judge ) ] ,
573
+ [ sh:path ai:has-scorer-kind ; sh:hasValue ai-vocab:scorer-kind-rule ] .
574
+
575
+ ai-shapes:judge-scorer-shape a sh:NodeShape ;
576
+ sh:targetClass ai:judge-scorer ;
577
+ sh:closed true ;
578
+ sh:ignoredProperties ( rdf:type ) ;
579
+ sh:property
580
+ [ sh:path core:has-name ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
581
+ [ sh:path ai:of-task ; sh:class ai:task ; sh:minCount 1 ; sh:maxCount 1 ; sh:message "A scorer belongs to one task."@en ] ,
582
+ [ sh:path ai:has-scorer-kind ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( ai-vocab:scorer-kind-rule ai-vocab:scorer-kind-judge ) ] ,
583
+ [ sh:path ai:has-scorer-kind ; sh:hasValue ai-vocab:scorer-kind-judge ] .
584
+
585
+ ai-shapes:score-shape a sh:NodeShape ;
586
+ sh:targetClass ai:score ;
587
+ sh:closed true ;
588
+ sh:ignoredProperties ( rdf:type ) ;
589
+ sh:property
590
+ [ sh:path ai:by-scorer ; sh:class ai:scorer ; sh:minCount 1 ; sh:maxCount 1 ] ,
591
+ [ sh:path ai:of-run ; sh:class ai:run ; sh:minCount 1 ; sh:maxCount 1 ] ,
592
+ [ sh:path ai:has-score-value ; sh:datatype xsd:decimal ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ; sh:maxInclusive 1 ; sh:message "A score is a number from 0 to 1."@en ] ,
593
+ [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] .
594
+
595
+ ai-shapes:eval-set-shape a sh:NodeShape ;
596
+ sh:targetClass ai:eval-set ;
597
+ sh:closed true ;
598
+ sh:ignoredProperties ( rdf:type ) ;
599
+ sh:property
600
+ [ sh:path ai:of-task ; sh:class ai:task ; sh:minCount 1 ; sh:maxCount 1 ; sh:message "An eval set belongs to one task."@en ] ,
601
+ [ sh:path ai:has-pass-mark ; sh:datatype xsd:decimal ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ; sh:maxInclusive 1 ; sh:message "A pass mark is a number from 0 to 1."@en ] .
602
+
603
+ ai-shapes:eval-result-shape a sh:NodeShape ;
604
+ sh:targetClass ai:eval-result ;
605
+ sh:closed true ;
606
+ sh:ignoredProperties ( rdf:type ) ;
607
+ sh:property
608
+ [ sh:path ai:with-prompt-version ; sh:class ai:prompt-version ; sh:minCount 1 ; sh:maxCount 1 ; sh:message "An eval result is for one prompt version."@en ] ,
609
+ [ sh:path ai:has-eval-set-hash ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
610
+ [ sh:path ai:has-pass-mark ; sh:datatype xsd:decimal ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ; sh:maxInclusive 1 ] ,
611
+ [ sh:path ai:has-average-score ; sh:datatype xsd:decimal ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ; sh:maxInclusive 1 ] ,
612
+ [ sh:path ai:has-average-cost ; sh:datatype xsd:long ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ; sh:message "An average cost is an integer number of micro-USD."@en ] ,
613
+ [ sh:path ai:has-escalation-rate ; sh:datatype xsd:decimal ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ; sh:maxInclusive 1 ] ,
614
+ [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ] .
615
+
616
+ ai-shapes:flow-event-shape a sh:NodeShape ;
617
+ sh:targetClass ai:flow-event ;
618
+ sh:closed true ;
619
+ sh:ignoredProperties ( rdf:type ) ;
620
+ sh:property
621
+ [ sh:path ai:has-event-number ; sh:datatype xsd:positiveInteger ; sh:minCount 1 ; sh:maxCount 1 ] ,
622
+ [ sh:path ai:of-run ; sh:class ai:run ; sh:minCount 1 ; sh:maxCount 1 ] ,
623
+ [ sh:path ai:at-flow-step ; sh:class core:concept ; sh:in ( ai-vocab:flow-step-interview ai-vocab:flow-step-segments ai-vocab:flow-step-research ai-vocab:flow-step-accounts ai-vocab:flow-step-persons ai-vocab:flow-step-commit ai-vocab:flow-step-draft ai-vocab:flow-step-offer ai-vocab:flow-step-leads ai-vocab:flow-step-campaign-draft ai-vocab:flow-step-campaign-choice ai-vocab:flow-step-save ai-vocab:flow-step-review ai-vocab:flow-step-mailbox ai-vocab:flow-step-start ) ; sh:minCount 1 ; sh:maxCount 1 ] ,
624
+ [ sh:path ai:has-event-kind ; sh:class core:concept ; sh:in ( ai-vocab:flow-event-kind-message ai-vocab:flow-event-kind-ask ai-vocab:flow-event-kind-choose ai-vocab:flow-event-kind-confirm ai-vocab:flow-event-kind-progress ai-vocab:flow-event-kind-failure ai-vocab:flow-event-kind-done ai-vocab:flow-event-kind-activity ai-vocab:flow-event-kind-draft ai-vocab:flow-event-kind-answer ) ; sh:minCount 1 ; sh:maxCount 1 ] ,
625
+ [ sh:path ai:has-event-text ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
626
+ [ sh:path ai:has-approved-charge ; sh:datatype xsd:long ; sh:maxCount 1 ; sh:minInclusive 0 ] ,
627
+ [ sh:path ai:has-option ; sh:class ai:flow-option ] ,
628
+ [ sh:path ai:allows-retry ; sh:datatype xsd:boolean ; sh:maxCount 1 ] ,
629
+ [ sh:path ai:lists-leads-run ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
630
+ [ sh:path ai:shows-campaign ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
631
+ [ sh:path ai:has-activity ; sh:class ai:flow-activity ; sh:maxCount 1 ] ,
632
+ [ sh:path ai:has-answer-kind ; sh:class core:concept ; sh:in ( ai-vocab:flow-answer-kind-single ai-vocab:flow-answer-kind-multiple ai-vocab:flow-answer-kind-text ) ; sh:maxCount 1 ] ,
633
+ [ sh:path ai:has-block ; sh:class ai:flow-block ] .
634
+
635
+ ai-shapes:flow-activity-shape a sh:NodeShape ;
636
+ sh:targetClass ai:flow-activity ;
637
+ sh:closed true ;
638
+ sh:ignoredProperties ( rdf:type ) ;
639
+ sh:property
640
+ [ sh:path ai:has-activity-id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
641
+ [ sh:path ai:under-activity ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
642
+ [ sh:path ai:has-activity-kind ; sh:class core:concept ; sh:in ( ai-vocab:flow-activity-kind-phase ai-vocab:flow-activity-kind-task ai-vocab:flow-activity-kind-tool ai-vocab:flow-activity-kind-wait ai-vocab:flow-activity-kind-reasoning ai-vocab:flow-activity-kind-retry ) ; sh:minCount 1 ; sh:maxCount 1 ] ,
643
+ [ sh:path ai:has-activity-state ; sh:class core:concept ; sh:in ( ai-vocab:flow-activity-state-started ai-vocab:flow-activity-state-done ai-vocab:flow-activity-state-failed ) ; sh:minCount 1 ; sh:maxCount 1 ] ,
644
+ [ sh:path ai:calls-tool ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
645
+ [ sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ] ,
646
+ [ sh:path core:ended-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ] .
647
+
648
+ ai-shapes:flow-option-shape a sh:NodeShape ;
649
+ sh:targetClass ai:flow-option ;
650
+ sh:closed true ;
651
+ sh:ignoredProperties ( rdf:type ) ;
652
+ sh:property
653
+ [ sh:path ai:has-option-id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
654
+ [ sh:path ai:has-option-label ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ] ,
655
+ [ sh:path ai:has-option-hint ; sh:datatype xsd:string ; sh:maxCount 1 ] .
656
+
657
+ ai-shapes:flow-message-shape a sh:NodeShape ;
658
+ sh:targetClass ai:flow-message ;
659
+ sh:closed true ;
660
+ sh:ignoredProperties ( rdf:type ) ;
661
+ sh:property
662
+ [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ] ,
663
+ [ sh:path ai:has-message-kind ; sh:class core:concept ; sh:in ( ai-vocab:flow-message-kind-text ai-vocab:flow-message-kind-choice ai-vocab:flow-message-kind-back ai-vocab:flow-message-kind-retry ai-vocab:flow-message-kind-ask ai-vocab:flow-message-kind-edit ) ; sh:minCount 1 ; sh:maxCount 1 ] ,
664
+ [ sh:path ai:has-message-text ; sh:datatype xsd:string ; sh:maxCount 1 ] ,
665
+ [ sh:path ai:chooses-option ; sh:datatype xsd:string ] .
666
+
667
+ ai-shapes:tool-approval-shape a sh:NodeShape ;
668
+ sh:targetClass ai:tool-approval ;
669
+ sh:closed true ;
670
+ sh:ignoredProperties ( rdf:type ) ;
671
+ sh:property [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
672
+ sh:message "A tool approval has exactly one id."@en ] ;
673
+ sh:property [ sh:path ai:of-run ; sh:class ai:run ; sh:minCount 1 ; sh:maxCount 1 ;
674
+ sh:message "A tool approval belongs to exactly one run."@en ] ;
675
+ sh:property [ sh:path ai:has-tool-risk ; sh:class core:concept ; sh:maxCount 1 ;
676
+ sh:message "A tool approval has at most one tool risk of the scheme of tool risk."@en ] ;
677
+ sh:property [ sh:path desk:has-approval-level ; sh:class core:concept ; sh:maxCount 1 ;
678
+ sh:message "A tool approval has at most one approval level."@en ] ;
679
+ sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
680
+ sh:message "A tool approval has exactly one time of creation."@en ] ;
681
+ sh:property [ sh:path core:ended-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
682
+ sh:message "A tool approval has at most one time of the answer."@en ] .
683
+
684
+ ai-shapes:client-tool-call-shape a sh:NodeShape ;
685
+ sh:targetClass ai:client-tool-call ;
686
+ sh:closed true ;
687
+ sh:ignoredProperties ( rdf:type ) ;
688
+ sh:property [ sh:path ai:of-run ; sh:class ai:run ; sh:minCount 1 ; sh:maxCount 1 ;
689
+ sh:message "A client tool call belongs to exactly one run."@en ] ;
690
+ sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
691
+ sh:message "A client tool call has exactly one time of creation."@en ] .
692
+
693
+ ai-shapes:erasure-marker-shape a sh:NodeShape ;
694
+ sh:targetClass ai:erasure-marker ;
695
+ sh:closed true ;
696
+ sh:ignoredProperties ( rdf:type ) ;
697
+ sh:property [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
698
+ sh:message "An erasure marker has exactly one id."@en ] ;
699
+ sh:property [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
700
+ sh:message "An erasure marker belongs to exactly one workspace."@en ] ;
701
+ sh:property [ sh:path core:for-user ; sh:class core:user ; sh:maxCount 1 ;
702
+ sh:message "An erasure marker names at most one user."@en ] ;
703
+ sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
704
+ sh:message "An erasure marker has exactly one time of creation."@en ] .
705
+
706
+ ai-shapes:subject-request-shape a sh:NodeShape ;
707
+ sh:targetClass ai:subject-request ;
708
+ sh:closed true ;
709
+ sh:ignoredProperties ( rdf:type ) ;
710
+ sh:property [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
711
+ sh:message "A subject request has exactly one id."@en ] ;
712
+ sh:property [ sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
713
+ sh:message "A subject request belongs to exactly one workspace."@en ] ;
714
+ sh:property [ sh:path core:has-status ; sh:class core:concept ; sh:maxCount 1 ;
715
+ sh:message "A subject request has at most one status."@en ] ;
716
+ sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
717
+ sh:message "A subject request has exactly one time of creation."@en ] ;
718
+ sh:property [ sh:path core:ended-at ; sh:datatype xsd:dateTime ; sh:maxCount 1 ;
719
+ sh:message "A subject request has at most one time of the answer."@en ] .
720
+
721
+ ai-shapes:subject-answer-shape a sh:NodeShape ;
722
+ sh:targetClass ai:subject-answer ;
723
+ sh:closed true ;
724
+ sh:ignoredProperties ( rdf:type ) ;
725
+ sh:property [ sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
726
+ sh:message "A subject answer has exactly one id."@en ] ;
727
+ sh:property [ sh:path ai:answers-subject-request ; sh:class ai:subject-request ; sh:minCount 1 ; sh:maxCount 1 ;
728
+ sh:message "A subject answer answers exactly one subject request."@en ] ;
729
+ sh:property [ sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
730
+ sh:message "A subject answer has exactly one time of creation."@en ] .