@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/ai.ttl +4257 -0
- package/auth.ttl +123 -0
- package/billing.ttl +3743 -0
- package/campaigns.ttl +3273 -0
- package/core.ttl +811 -0
- package/crm.ttl +439 -0
- package/desk.ttl +5000 -0
- package/domain.ttl +45 -0
- package/email.ttl +1862 -0
- package/events.ttl +3279 -0
- package/identity.ttl +2699 -0
- package/imports/external.ttl +54 -0
- package/leads.ttl +3581 -0
- package/linkedin.ttl +860 -0
- package/mcp-gateway.ttl +77 -0
- package/package.json +30 -3
- package/scoring.ttl +2138 -0
- package/shapes/ai.ttl +730 -0
- package/shapes/billing.ttl +3151 -0
- package/shapes/campaigns.ttl +958 -0
- package/shapes/core.ttl +135 -0
- package/shapes/crm.ttl +216 -0
- package/shapes/desk.ttl +1788 -0
- package/shapes/email.ttl +477 -0
- package/shapes/events.ttl +1275 -0
- package/shapes/identity.ttl +957 -0
- package/shapes/leads.ttl +1809 -0
- package/shapes/linkedin.ttl +113 -0
- package/shapes/scoring.ttl +555 -0
- package/vocab/ai.ttl +2136 -0
- package/vocab/auth.ttl +187 -0
- package/vocab/billing.ttl +1606 -0
- package/vocab/campaigns.ttl +746 -0
- package/vocab/core.ttl +648 -0
- package/vocab/crm.ttl +320 -0
- package/vocab/desk.ttl +3093 -0
- package/vocab/email.ttl +234 -0
- package/vocab/events.ttl +776 -0
- package/vocab/identity.ttl +1555 -0
- package/vocab/leads.ttl +2113 -0
- package/vocab/linkedin.ttl +98 -0
- package/vocab/mcp-gateway.ttl +66 -0
- package/vocab/scoring.ttl +572 -0
- package/README.md +0 -3
|
@@ -0,0 +1,957 @@
|
|
|
1
|
+
@prefix core: <https://id.quickpipe.ai/domain/core#> .
|
|
2
|
+
@prefix core-vocab: <https://id.quickpipe.ai/domain/vocab/core#> .
|
|
3
|
+
@prefix identity: <https://id.quickpipe.ai/domain/identity#> .
|
|
4
|
+
@prefix identity-vocab: <https://id.quickpipe.ai/domain/vocab/identity#> .
|
|
5
|
+
@prefix desk-vocab: <https://id.quickpipe.ai/domain/vocab/desk#> .
|
|
6
|
+
@prefix identity-shapes: <https://id.quickpipe.ai/domain/shapes/identity#> .
|
|
7
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
8
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
9
|
+
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
10
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
11
|
+
|
|
12
|
+
<https://id.quickpipe.ai/domain/shapes/identity>
|
|
13
|
+
a owl:Ontology ;
|
|
14
|
+
owl:versionIRI <https://id.quickpipe.ai/domain/0.10.0/shapes/identity> ;
|
|
15
|
+
owl:versionInfo "0.10.0" ;
|
|
16
|
+
core:title "QuickPipe domain model: shapes of identity"@en ;
|
|
17
|
+
sh:declare
|
|
18
|
+
[ sh:prefix "core" ; sh:namespace "https://id.quickpipe.ai/domain/core#"^^xsd:anyURI ] ,
|
|
19
|
+
[ sh:prefix "identity" ; sh:namespace "https://id.quickpipe.ai/domain/identity#"^^xsd:anyURI ] ,
|
|
20
|
+
[ sh:prefix "identity-vocab" ; sh:namespace "https://id.quickpipe.ai/domain/vocab/identity#"^^xsd:anyURI ] .
|
|
21
|
+
|
|
22
|
+
# Values of open schemes (docs/decisions/0003-modelling-patterns.md, Q15).
|
|
23
|
+
|
|
24
|
+
identity-shapes:identifier-name-concept-shape a sh:NodeShape ;
|
|
25
|
+
sh:property [
|
|
26
|
+
sh:path core:in-scheme ;
|
|
27
|
+
sh:hasValue identity-vocab:identifier-name ;
|
|
28
|
+
sh:message "The value must be an identifier name of the identifier registry."@en
|
|
29
|
+
] .
|
|
30
|
+
|
|
31
|
+
identity-shapes:key-scope-concept-shape a sh:NodeShape ;
|
|
32
|
+
sh:property [
|
|
33
|
+
sh:path core:in-scheme ;
|
|
34
|
+
sh:hasValue identity-vocab:key-scope ;
|
|
35
|
+
sh:message "The value must be a key scope."@en
|
|
36
|
+
] .
|
|
37
|
+
|
|
38
|
+
identity-shapes:suppression-reason-concept-shape a sh:NodeShape ;
|
|
39
|
+
sh:property [
|
|
40
|
+
sh:path core:in-scheme ;
|
|
41
|
+
sh:hasValue identity-vocab:suppression-reason ;
|
|
42
|
+
sh:message "The value must be a suppression reason."@en
|
|
43
|
+
] .
|
|
44
|
+
|
|
45
|
+
identity-shapes:merge-via-concept-shape a sh:NodeShape ;
|
|
46
|
+
sh:property [
|
|
47
|
+
sh:path core:in-scheme ;
|
|
48
|
+
sh:hasValue identity-vocab:merge-via ;
|
|
49
|
+
sh:message "The value must be a merge route."@en
|
|
50
|
+
] .
|
|
51
|
+
|
|
52
|
+
identity-shapes:link-via-concept-shape a sh:NodeShape ;
|
|
53
|
+
sh:property [
|
|
54
|
+
sh:path core:in-scheme ;
|
|
55
|
+
sh:hasValue identity-vocab:link-via ;
|
|
56
|
+
sh:message "The value must be a link route."@en
|
|
57
|
+
] .
|
|
58
|
+
|
|
59
|
+
identity-shapes:identifier-name-of-workspace a sh:SPARQLConstraint ;
|
|
60
|
+
sh:message "An identifier name that a workspace added can only be used in that workspace."@en ;
|
|
61
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
62
|
+
sh:select """
|
|
63
|
+
SELECT $this ?value WHERE {
|
|
64
|
+
$this identity:has-identifier-name ?value .
|
|
65
|
+
?value core:in-workspace ?workspace .
|
|
66
|
+
FILTER NOT EXISTS { $this core:in-workspace ?workspace }
|
|
67
|
+
}
|
|
68
|
+
""" .
|
|
69
|
+
|
|
70
|
+
# Subjects.
|
|
71
|
+
|
|
72
|
+
identity-shapes:subject-shape a sh:NodeShape ;
|
|
73
|
+
sh:targetClass identity:subject ;
|
|
74
|
+
sh:closed true ;
|
|
75
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
76
|
+
sh:property [
|
|
77
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
78
|
+
sh:message "A subject has exactly one id."@en
|
|
79
|
+
] , [
|
|
80
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
81
|
+
sh:message "A subject belongs to exactly one workspace."@en
|
|
82
|
+
] , [
|
|
83
|
+
sh:path identity:has-subject-kind ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
84
|
+
sh:in ( identity-vocab:subject-kind-person identity-vocab:subject-kind-account ) ;
|
|
85
|
+
sh:message "A subject has exactly one kind: person or account."@en
|
|
86
|
+
] .
|
|
87
|
+
|
|
88
|
+
# Identifiers.
|
|
89
|
+
|
|
90
|
+
identity-shapes:identifier-shape a sh:NodeShape ;
|
|
91
|
+
sh:targetClass identity:identifier ;
|
|
92
|
+
sh:closed true ;
|
|
93
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
94
|
+
sh:property [
|
|
95
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
96
|
+
sh:message "An identifier has at most one id."@en
|
|
97
|
+
] , [
|
|
98
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
99
|
+
sh:message "An identifier belongs to exactly one workspace."@en
|
|
100
|
+
] , [
|
|
101
|
+
sh:path identity:of-subject ; sh:class identity:subject ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
102
|
+
sh:message "An identifier belongs to exactly one subject."@en
|
|
103
|
+
] , [
|
|
104
|
+
sh:path identity:has-identifier-name ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
105
|
+
sh:node identity-shapes:identifier-name-concept-shape ;
|
|
106
|
+
sh:message "An identifier has exactly one identifier name of the registry."@en
|
|
107
|
+
] , [
|
|
108
|
+
sh:path identity:has-value ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
109
|
+
sh:message "An identifier has exactly one normalized value."@en
|
|
110
|
+
] , [
|
|
111
|
+
sh:path identity:has-match-mode ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
112
|
+
sh:in ( identity-vocab:match-mode-merge identity-vocab:match-mode-link identity-vocab:match-mode-suggest ) ;
|
|
113
|
+
sh:message "An identifier has exactly one match mode: merge, link or suggest."@en
|
|
114
|
+
] , [
|
|
115
|
+
sh:path identity:from-source ; sh:class identity:source ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
116
|
+
sh:message "An identifier comes from at most one source."@en
|
|
117
|
+
] , [
|
|
118
|
+
sh:path core:was-derived-from ; sh:class identity:identifier ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
119
|
+
sh:message "A derived identifier comes from at most one other identifier."@en
|
|
120
|
+
] , [
|
|
121
|
+
sh:path identity:has-writer-key-kind ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
122
|
+
sh:in ( identity-vocab:key-kind-publishable identity-vocab:key-kind-secret ) ;
|
|
123
|
+
sh:message "An identifier has exactly one writer key kind: publishable or secret."@en
|
|
124
|
+
] , [
|
|
125
|
+
sh:path core:was-generated-by ; sh:class core:activity ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
126
|
+
sh:message "An identifier comes from at most one event."@en
|
|
127
|
+
] , [
|
|
128
|
+
sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
129
|
+
sh:message "An identifier has exactly one start time."@en
|
|
130
|
+
] , [
|
|
131
|
+
sh:path core:invalidated-at ; sh:datatype xsd:dateTime ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
132
|
+
sh:message "An identifier has at most one end time. A current identifier has no end time."@en
|
|
133
|
+
] ;
|
|
134
|
+
sh:sparql identity-shapes:identifier-name-of-workspace , [
|
|
135
|
+
sh:message "The identifier name must belong to the subject kind of the subject."@en ;
|
|
136
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
137
|
+
sh:select """
|
|
138
|
+
SELECT $this ?value WHERE {
|
|
139
|
+
$this identity:has-identifier-name ?value ; identity:of-subject ?subject .
|
|
140
|
+
?value identity:for-subject-kind ?kind .
|
|
141
|
+
?subject identity:has-subject-kind ?other .
|
|
142
|
+
FILTER (?kind != ?other)
|
|
143
|
+
}
|
|
144
|
+
"""
|
|
145
|
+
] .
|
|
146
|
+
|
|
147
|
+
# Sources, keys and issuers.
|
|
148
|
+
|
|
149
|
+
identity-shapes:source-shape a sh:NodeShape ;
|
|
150
|
+
sh:targetClass identity:source ;
|
|
151
|
+
sh:closed true ;
|
|
152
|
+
# The options visits and traffic of a source are terms of events; events-shapes:source-options-shape checks them.
|
|
153
|
+
sh:ignoredProperties ( rdf:type <https://id.quickpipe.ai/domain/events#has-visits> <https://id.quickpipe.ai/domain/events#has-traffic> ) ;
|
|
154
|
+
sh:property [
|
|
155
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
156
|
+
sh:message "A source has exactly one id."@en
|
|
157
|
+
] , [
|
|
158
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
159
|
+
sh:message "A source belongs to exactly one workspace."@en
|
|
160
|
+
] , [
|
|
161
|
+
sh:path identity:has-source-name ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
162
|
+
sh:message "A source has exactly one name."@en
|
|
163
|
+
] , [
|
|
164
|
+
sh:path identity:allows-origin ; sh:datatype xsd:string ; sh:minCount 0 ;
|
|
165
|
+
sh:message "An allowed origin of a source is a string."@en
|
|
166
|
+
] , [
|
|
167
|
+
sh:path identity:has-import ; sh:datatype xsd:boolean ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
168
|
+
sh:message "A source has at most one value for the option import."@en
|
|
169
|
+
] ;
|
|
170
|
+
sh:sparql [
|
|
171
|
+
sh:message "A source name is unique in a workspace."@en ;
|
|
172
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
173
|
+
sh:select """
|
|
174
|
+
SELECT $this ?other WHERE {
|
|
175
|
+
$this core:in-workspace ?workspace ; identity:has-source-name ?name .
|
|
176
|
+
?other a identity:source ; core:in-workspace ?workspace ; identity:has-source-name ?name .
|
|
177
|
+
FILTER ($this != ?other)
|
|
178
|
+
}
|
|
179
|
+
"""
|
|
180
|
+
] .
|
|
181
|
+
|
|
182
|
+
identity-shapes:key-shape a sh:NodeShape ;
|
|
183
|
+
sh:targetClass identity:key ;
|
|
184
|
+
sh:closed true ;
|
|
185
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
186
|
+
sh:property [
|
|
187
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
188
|
+
sh:message "A key has exactly one id."@en
|
|
189
|
+
] , [
|
|
190
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
191
|
+
sh:message "A key belongs to exactly one workspace."@en
|
|
192
|
+
] , [
|
|
193
|
+
sh:path identity:of-source ; sh:class identity:source ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
194
|
+
sh:message "A key belongs to exactly one source."@en
|
|
195
|
+
] , [
|
|
196
|
+
sh:path identity:has-key-kind ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
197
|
+
sh:in ( identity-vocab:key-kind-publishable identity-vocab:key-kind-secret ) ;
|
|
198
|
+
sh:message "A key has exactly one kind: publishable or secret."@en
|
|
199
|
+
] , [
|
|
200
|
+
sh:path identity:has-environment ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
201
|
+
sh:in ( identity-vocab:environment-live identity-vocab:environment-test ) ;
|
|
202
|
+
sh:message "A key has exactly one environment: live or test."@en
|
|
203
|
+
] , [
|
|
204
|
+
sh:path identity:has-scope ; sh:class core:concept ; sh:minCount 0 ;
|
|
205
|
+
sh:node identity-shapes:key-scope-concept-shape ;
|
|
206
|
+
sh:message "Each scope of a key must be a key scope."@en
|
|
207
|
+
] , [
|
|
208
|
+
sh:path identity:has-key-prefix ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ; sh:minLength 12 ; sh:maxLength 12 ;
|
|
209
|
+
sh:message "A key has exactly one stored prefix of 12 characters."@en
|
|
210
|
+
] , [
|
|
211
|
+
sh:path identity:has-key-hash ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
212
|
+
sh:message "A key has exactly one SHA-256 hash."@en
|
|
213
|
+
] , [
|
|
214
|
+
sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
215
|
+
sh:message "A key has exactly one creation time."@en
|
|
216
|
+
] , [
|
|
217
|
+
sh:path core:invalidated-at ; sh:datatype xsd:dateTime ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
218
|
+
sh:message "A key has at most one revocation time."@en
|
|
219
|
+
] , [
|
|
220
|
+
sh:path identity:expires-at ; sh:datatype xsd:dateTime ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
221
|
+
sh:message "A key has at most one expiry time."@en
|
|
222
|
+
] ;
|
|
223
|
+
sh:sparql [
|
|
224
|
+
sh:message "Only a secret key has scopes."@en ;
|
|
225
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
226
|
+
sh:select """
|
|
227
|
+
SELECT $this ?value WHERE {
|
|
228
|
+
$this identity:has-key-kind identity-vocab:key-kind-publishable ; identity:has-scope ?value .
|
|
229
|
+
}
|
|
230
|
+
"""
|
|
231
|
+
] .
|
|
232
|
+
|
|
233
|
+
identity-shapes:identity-secret-shape a sh:NodeShape ;
|
|
234
|
+
sh:targetClass identity:identity-secret ;
|
|
235
|
+
sh:closed true ;
|
|
236
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
237
|
+
sh:property [
|
|
238
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
239
|
+
sh:message "An identity secret has at most one id."@en
|
|
240
|
+
] , [
|
|
241
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
242
|
+
sh:message "An identity secret belongs to exactly one workspace."@en
|
|
243
|
+
] , [
|
|
244
|
+
sh:path identity:of-source ; sh:class identity:source ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
245
|
+
sh:message "An identity secret belongs to exactly one source."@en
|
|
246
|
+
] , [
|
|
247
|
+
sh:path identity:has-environment ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
248
|
+
sh:in ( identity-vocab:environment-live identity-vocab:environment-test ) ;
|
|
249
|
+
sh:message "An identity secret has exactly one environment: live or test."@en
|
|
250
|
+
] , [
|
|
251
|
+
sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
252
|
+
sh:message "An identity secret has exactly one creation time."@en
|
|
253
|
+
] , [
|
|
254
|
+
sh:path core:invalidated-at ; sh:datatype xsd:dateTime ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
255
|
+
sh:message "An identity secret has at most one end time. A rotation keeps two active secrets for the overlap."@en
|
|
256
|
+
] .
|
|
257
|
+
|
|
258
|
+
identity-shapes:issuer-key-shape a sh:NodeShape ;
|
|
259
|
+
sh:targetClass identity:issuer-key ;
|
|
260
|
+
sh:closed true ;
|
|
261
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
262
|
+
sh:property [
|
|
263
|
+
sh:path identity:has-kid ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
264
|
+
sh:message "An issuer key has exactly one kid."@en
|
|
265
|
+
] , [
|
|
266
|
+
sh:path identity:of-issuer ; sh:class core:service ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
267
|
+
sh:message "An issuer key belongs to exactly one QuickPipe service."@en
|
|
268
|
+
] , [
|
|
269
|
+
sh:path identity:has-public-key ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
270
|
+
sh:message "An issuer key has exactly one Ed25519 public key."@en
|
|
271
|
+
] , [
|
|
272
|
+
sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
273
|
+
sh:message "An issuer key has exactly one registration time."@en
|
|
274
|
+
] , [
|
|
275
|
+
sh:path core:invalidated-at ; sh:datatype xsd:dateTime ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
276
|
+
sh:message "An issuer key has at most one time at which DELETE /issuers stopped its tokens."@en
|
|
277
|
+
] .
|
|
278
|
+
|
|
279
|
+
# Facts that change over time.
|
|
280
|
+
|
|
281
|
+
identity-shapes:membership-shape a sh:NodeShape ;
|
|
282
|
+
sh:targetClass identity:membership ;
|
|
283
|
+
sh:closed true ;
|
|
284
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
285
|
+
sh:property [
|
|
286
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
287
|
+
sh:message "A membership has exactly one id."@en
|
|
288
|
+
] , [
|
|
289
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
290
|
+
sh:message "A membership belongs to exactly one workspace."@en
|
|
291
|
+
] , [
|
|
292
|
+
sh:path identity:of-subject ; sh:class identity:person ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
293
|
+
sh:message "A membership has exactly one person."@en
|
|
294
|
+
] , [
|
|
295
|
+
sh:path identity:to-account ; sh:class identity:account ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
296
|
+
sh:message "A membership has exactly one account."@en
|
|
297
|
+
] , [
|
|
298
|
+
sh:path identity:has-writer-key-kind ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
299
|
+
sh:in ( identity-vocab:key-kind-publishable identity-vocab:key-kind-secret ) ;
|
|
300
|
+
sh:message "A membership has exactly one writer key kind: publishable or secret."@en
|
|
301
|
+
] , [
|
|
302
|
+
sh:path identity:from-suggestion ; sh:class identity:suggestion ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
303
|
+
sh:message "A membership comes from at most one suggestion."@en
|
|
304
|
+
] , [
|
|
305
|
+
sh:path identity:via ; sh:class core:concept ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
306
|
+
sh:node identity-shapes:link-via-concept-shape ;
|
|
307
|
+
sh:message "A membership has at most one route, from the scheme of link routes."@en
|
|
308
|
+
] , [
|
|
309
|
+
sh:path core:was-generated-by ; sh:class core:activity ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
310
|
+
sh:message "A membership comes from exactly one event or request."@en
|
|
311
|
+
] , [
|
|
312
|
+
sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
313
|
+
sh:message "A membership has exactly one start time."@en
|
|
314
|
+
] , [
|
|
315
|
+
sh:path core:invalidated-at ; sh:datatype xsd:dateTime ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
316
|
+
sh:message "A membership has at most one end time. The current membership has no end time."@en
|
|
317
|
+
] ;
|
|
318
|
+
sh:sparql [
|
|
319
|
+
sh:message "A person has zero or one current account."@en ;
|
|
320
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
321
|
+
sh:select """
|
|
322
|
+
SELECT $this ?other WHERE {
|
|
323
|
+
$this identity:of-subject ?person .
|
|
324
|
+
FILTER NOT EXISTS { $this core:invalidated-at ?end }
|
|
325
|
+
?other a identity:membership ; identity:of-subject ?person .
|
|
326
|
+
FILTER NOT EXISTS { ?other core:invalidated-at ?otherEnd }
|
|
327
|
+
FILTER ($this != ?other)
|
|
328
|
+
}
|
|
329
|
+
"""
|
|
330
|
+
] .
|
|
331
|
+
|
|
332
|
+
identity-shapes:parent-link-shape a sh:NodeShape ;
|
|
333
|
+
sh:targetClass identity:parent-link ;
|
|
334
|
+
sh:closed true ;
|
|
335
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
336
|
+
sh:property [
|
|
337
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
338
|
+
sh:message "A parent link has at most one id."@en
|
|
339
|
+
] , [
|
|
340
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
341
|
+
sh:message "A parent link belongs to exactly one workspace."@en
|
|
342
|
+
] , [
|
|
343
|
+
sh:path identity:of-subject ; sh:class identity:account ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
344
|
+
sh:message "A parent link has exactly one child account."@en
|
|
345
|
+
] , [
|
|
346
|
+
sh:path identity:to-account ; sh:class identity:account ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
347
|
+
sh:message "A parent link has exactly one parent account."@en
|
|
348
|
+
] , [
|
|
349
|
+
sh:path identity:via ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
350
|
+
sh:in ( identity-vocab:parent-via-link identity-vocab:parent-via-merge identity-vocab:parent-via-suggestion ) ;
|
|
351
|
+
sh:message "A parent link has exactly one route: link, merge or suggestion."@en
|
|
352
|
+
] , [
|
|
353
|
+
sh:path identity:from-suggestion ; sh:class identity:suggestion ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
354
|
+
sh:message "A parent link comes from at most one suggestion."@en
|
|
355
|
+
] , [
|
|
356
|
+
sh:path core:was-generated-by ; sh:class core:activity ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
357
|
+
sh:message "A parent link comes from exactly one event, merge or request."@en
|
|
358
|
+
] , [
|
|
359
|
+
sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
360
|
+
sh:message "A parent link has exactly one start time."@en
|
|
361
|
+
] , [
|
|
362
|
+
sh:path core:invalidated-at ; sh:datatype xsd:dateTime ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
363
|
+
sh:message "A parent link has at most one end time. The current parent has no end time."@en
|
|
364
|
+
] ;
|
|
365
|
+
sh:sparql [
|
|
366
|
+
sh:message "An account cannot be its own parent."@en ;
|
|
367
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
368
|
+
sh:select """
|
|
369
|
+
SELECT $this WHERE {
|
|
370
|
+
$this identity:of-subject ?child ; identity:to-account ?child .
|
|
371
|
+
}
|
|
372
|
+
"""
|
|
373
|
+
] , [
|
|
374
|
+
sh:message "An account has zero or one current parent account."@en ;
|
|
375
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
376
|
+
sh:select """
|
|
377
|
+
SELECT $this ?other WHERE {
|
|
378
|
+
$this identity:of-subject ?child .
|
|
379
|
+
FILTER NOT EXISTS { $this core:invalidated-at ?end }
|
|
380
|
+
?other a identity:parent-link ; identity:of-subject ?child .
|
|
381
|
+
FILTER NOT EXISTS { ?other core:invalidated-at ?otherEnd }
|
|
382
|
+
FILTER ($this != ?other)
|
|
383
|
+
}
|
|
384
|
+
"""
|
|
385
|
+
] .
|
|
386
|
+
|
|
387
|
+
identity-shapes:consent-period-shape a sh:NodeShape ;
|
|
388
|
+
sh:targetClass identity:consent-period ;
|
|
389
|
+
sh:closed true ;
|
|
390
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
391
|
+
sh:property [
|
|
392
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
393
|
+
sh:message "A consent period belongs to exactly one workspace."@en
|
|
394
|
+
] , [
|
|
395
|
+
sh:path identity:of-subject ; sh:class identity:person ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
396
|
+
sh:message "A consent period has exactly one person."@en
|
|
397
|
+
] , [
|
|
398
|
+
sh:path identity:has-consent-state ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
399
|
+
sh:in ( identity-vocab:consent-state-unknown identity-vocab:consent-state-granted identity-vocab:consent-state-denied ) ;
|
|
400
|
+
sh:message "A consent period has exactly one consent state: unknown, granted or denied."@en
|
|
401
|
+
] , [
|
|
402
|
+
sh:path core:was-generated-by ; sh:class identity:consent-change ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
403
|
+
sh:message "Exactly one consent change starts a consent period."@en
|
|
404
|
+
] , [
|
|
405
|
+
sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
406
|
+
sh:message "A consent period has exactly one start time."@en
|
|
407
|
+
] , [
|
|
408
|
+
sh:path core:invalidated-at ; sh:datatype xsd:dateTime ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
409
|
+
sh:message "A consent period has at most one end time. The period continues until the next change."@en
|
|
410
|
+
] ;
|
|
411
|
+
sh:sparql [
|
|
412
|
+
sh:message "The state of a consent period must follow from its consent change: granted gives granted, withdrawn gives denied, refused gives denied."@en ;
|
|
413
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
414
|
+
sh:select """
|
|
415
|
+
SELECT $this ?change ?state WHERE {
|
|
416
|
+
$this core:was-generated-by ?event ; identity:has-consent-state ?state .
|
|
417
|
+
?event identity:has-change ?change .
|
|
418
|
+
FILTER (
|
|
419
|
+
(?change = identity-vocab:consent-change-granted && ?state != identity-vocab:consent-state-granted) ||
|
|
420
|
+
(?change = identity-vocab:consent-change-withdrawn && ?state != identity-vocab:consent-state-denied) ||
|
|
421
|
+
(?change = identity-vocab:consent-change-refused && ?state != identity-vocab:consent-state-denied)
|
|
422
|
+
)
|
|
423
|
+
}
|
|
424
|
+
"""
|
|
425
|
+
] .
|
|
426
|
+
|
|
427
|
+
identity-shapes:suggestion-shape a sh:NodeShape ;
|
|
428
|
+
sh:targetClass identity:suggestion ;
|
|
429
|
+
sh:closed true ;
|
|
430
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
431
|
+
sh:property [
|
|
432
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
433
|
+
sh:message "A suggestion has exactly one id."@en
|
|
434
|
+
] , [
|
|
435
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
436
|
+
sh:message "A suggestion belongs to exactly one workspace."@en
|
|
437
|
+
] , [
|
|
438
|
+
sh:path identity:has-candidate ; sh:class identity:subject ; sh:minCount 2 ;
|
|
439
|
+
sh:message "A suggestion has two or more candidate subjects."@en
|
|
440
|
+
] , [
|
|
441
|
+
sh:path identity:matched-on ; sh:class identity:identifier ; sh:minCount 0 ;
|
|
442
|
+
sh:message "A matched identifier of a suggestion is an identifier."@en
|
|
443
|
+
] , [
|
|
444
|
+
sh:path identity:has-resolution ; sh:class core:concept ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
445
|
+
sh:in ( identity-vocab:suggestion-resolution-merge identity-vocab:suggestion-resolution-link identity-vocab:suggestion-resolution-reject ) ;
|
|
446
|
+
sh:message "A suggestion has at most one resolution: merge, link or reject. An open suggestion has no resolution."@en
|
|
447
|
+
] , [
|
|
448
|
+
sh:path identity:has-suggestion-state ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
449
|
+
sh:in ( identity-vocab:suggestion-state-open identity-vocab:suggestion-state-recommended identity-vocab:suggestion-state-resolved ) ;
|
|
450
|
+
sh:message "A suggestion has exactly one state: open, recommended or resolved."@en
|
|
451
|
+
] , [
|
|
452
|
+
sh:path identity:has-recommended-resolution ; sh:class core:concept ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
453
|
+
sh:in ( identity-vocab:suggestion-resolution-merge identity-vocab:suggestion-resolution-link identity-vocab:suggestion-resolution-reject ) ;
|
|
454
|
+
sh:message "A suggestion has at most one recommendation: merge, link or reject."@en
|
|
455
|
+
] , [
|
|
456
|
+
sh:path identity:recommended-at ; sh:datatype xsd:dateTime ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
457
|
+
sh:message "A suggestion has at most one recommendation time."@en
|
|
458
|
+
] , [
|
|
459
|
+
sh:path core:was-attributed-to ; sh:class core:agent ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
460
|
+
sh:message "At most one agent resolved a suggestion: the identity bot or a person."@en
|
|
461
|
+
] , [
|
|
462
|
+
sh:path core:with-key ; sh:class identity:key ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
463
|
+
sh:message "The resolution of a suggestion used at most one key."@en
|
|
464
|
+
] , [
|
|
465
|
+
sh:path identity:resolved-at ; sh:datatype xsd:dateTime ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
466
|
+
sh:message "A suggestion has at most one resolution time."@en
|
|
467
|
+
] , [
|
|
468
|
+
sh:path identity:has-reason-text ; sh:datatype xsd:string ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
469
|
+
sh:message "A resolution or a recommendation has at most one reason."@en
|
|
470
|
+
] , [
|
|
471
|
+
sh:path identity:has-confidence ; sh:datatype xsd:decimal ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
472
|
+
sh:minInclusive 0 ; sh:maxInclusive 1 ;
|
|
473
|
+
sh:message "A resolution or a recommendation has at most one confidence, from 0 to 1."@en
|
|
474
|
+
] , [
|
|
475
|
+
sh:path core:was-generated-by ; sh:class core:activity ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
476
|
+
sh:message "A suggestion comes from at most one event or merge."@en
|
|
477
|
+
] , [
|
|
478
|
+
sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
479
|
+
sh:message "A suggestion has exactly one creation time."@en
|
|
480
|
+
] ;
|
|
481
|
+
sh:sparql [
|
|
482
|
+
sh:message "A resolved suggestion has the agent that resolved it and the time of the resolution."@en ;
|
|
483
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
484
|
+
sh:select """
|
|
485
|
+
SELECT $this WHERE {
|
|
486
|
+
$this identity:has-resolution ?resolution .
|
|
487
|
+
FILTER (NOT EXISTS { $this core:was-attributed-to ?agent } || NOT EXISTS { $this identity:resolved-at ?time })
|
|
488
|
+
}
|
|
489
|
+
"""
|
|
490
|
+
] , [
|
|
491
|
+
sh:message "A recommended suggestion has a recommendation, a reason, a confidence and a time, and no resolution."@en ;
|
|
492
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
493
|
+
sh:select """
|
|
494
|
+
SELECT $this WHERE {
|
|
495
|
+
$this identity:has-suggestion-state identity-vocab:suggestion-state-recommended .
|
|
496
|
+
FILTER (NOT EXISTS { $this identity:has-recommended-resolution ?action }
|
|
497
|
+
|| NOT EXISTS { $this identity:has-reason-text ?reason }
|
|
498
|
+
|| NOT EXISTS { $this identity:has-confidence ?confidence }
|
|
499
|
+
|| NOT EXISTS { $this identity:recommended-at ?time }
|
|
500
|
+
|| EXISTS { $this identity:has-resolution ?resolution })
|
|
501
|
+
}
|
|
502
|
+
"""
|
|
503
|
+
] , [
|
|
504
|
+
sh:message "The state of a suggestion agrees with its resolution and its recommendation."@en ;
|
|
505
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
506
|
+
sh:select """
|
|
507
|
+
SELECT $this WHERE {
|
|
508
|
+
$this identity:has-suggestion-state ?state .
|
|
509
|
+
FILTER (
|
|
510
|
+
(?state = identity-vocab:suggestion-state-resolved && NOT EXISTS { $this identity:has-resolution ?resolution })
|
|
511
|
+
|| (?state = identity-vocab:suggestion-state-open && (EXISTS { $this identity:has-resolution ?resolution } || EXISTS { $this identity:has-recommended-resolution ?action }))
|
|
512
|
+
|| (?state = identity-vocab:suggestion-state-resolved && EXISTS { $this identity:has-recommended-resolution ?action })
|
|
513
|
+
)
|
|
514
|
+
}
|
|
515
|
+
"""
|
|
516
|
+
] .
|
|
517
|
+
|
|
518
|
+
identity-shapes:suppression-shape a sh:NodeShape ;
|
|
519
|
+
sh:targetClass identity:suppression ;
|
|
520
|
+
sh:closed true ;
|
|
521
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
522
|
+
sh:property [
|
|
523
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
524
|
+
sh:message "A suppression has exactly one id."@en
|
|
525
|
+
] , [
|
|
526
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
527
|
+
sh:message "A suppression has one workspace."@en
|
|
528
|
+
] , [
|
|
529
|
+
sh:path identity:has-identifier-name ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
530
|
+
sh:node identity-shapes:identifier-name-concept-shape ;
|
|
531
|
+
sh:message "A suppression has one identifier name of the registry."@en
|
|
532
|
+
] , [
|
|
533
|
+
sh:path identity:has-value ; sh:datatype xsd:string ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
534
|
+
sh:message "A suppression has at most one encrypted value."@en
|
|
535
|
+
] , [
|
|
536
|
+
sh:path identity:has-value-hash ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
537
|
+
sh:message "A suppression has exactly one HMAC of the normalized value."@en
|
|
538
|
+
] , [
|
|
539
|
+
sh:path identity:has-reason ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
540
|
+
sh:node identity-shapes:suppression-reason-concept-shape ;
|
|
541
|
+
sh:message "A suppression has one reason."@en
|
|
542
|
+
] , [
|
|
543
|
+
sh:path identity:of-identifier ; sh:class identity:identifier ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
544
|
+
sh:message "A suppression covers at most one identifier record."@en
|
|
545
|
+
] , [
|
|
546
|
+
sh:path core:was-generated-by ; sh:class core:activity ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
547
|
+
sh:message "A suppression comes from at most one event, erasure or request."@en
|
|
548
|
+
] , [
|
|
549
|
+
sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
550
|
+
sh:message "A suppression has a start time."@en
|
|
551
|
+
] , [
|
|
552
|
+
sh:path core:invalidated-at ; sh:datatype xsd:dateTime ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
553
|
+
sh:message "A suppression has an optional end time."@en
|
|
554
|
+
] ;
|
|
555
|
+
sh:sparql identity-shapes:identifier-name-of-workspace , [
|
|
556
|
+
sh:message "A suppression with the reason erased keeps only the HMAC of the normalized value, the reason and the time. It has no encrypted value, no identifier record and no end time."@en ;
|
|
557
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
558
|
+
sh:select """
|
|
559
|
+
SELECT $this WHERE {
|
|
560
|
+
$this identity:has-reason identity-vocab:suppression-reason-erased .
|
|
561
|
+
FILTER (EXISTS { $this identity:has-value ?value } || EXISTS { $this identity:of-identifier ?identifier } || EXISTS { $this core:invalidated-at ?end })
|
|
562
|
+
}
|
|
563
|
+
"""
|
|
564
|
+
] , [
|
|
565
|
+
sh:message "The identifier record of a suppression has the identifier name of the suppression."@en ;
|
|
566
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
567
|
+
sh:select """
|
|
568
|
+
SELECT $this ?identifier WHERE {
|
|
569
|
+
$this identity:of-identifier ?identifier ; identity:has-identifier-name ?name .
|
|
570
|
+
?identifier identity:has-identifier-name ?other .
|
|
571
|
+
FILTER (?name != ?other)
|
|
572
|
+
}
|
|
573
|
+
"""
|
|
574
|
+
] , [
|
|
575
|
+
sh:message "The identifier record of a suppression is in the workspace of the suppression."@en ;
|
|
576
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
577
|
+
sh:select """
|
|
578
|
+
SELECT $this ?identifier WHERE {
|
|
579
|
+
$this identity:of-identifier ?identifier ; core:in-workspace ?workspace .
|
|
580
|
+
?identifier core:in-workspace ?other .
|
|
581
|
+
FILTER (?workspace != ?other)
|
|
582
|
+
}
|
|
583
|
+
"""
|
|
584
|
+
] , [
|
|
585
|
+
sh:message "A suppression is unique for its workspace, identifier name, value and reason."@en ;
|
|
586
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
587
|
+
sh:select """
|
|
588
|
+
SELECT $this ?other WHERE {
|
|
589
|
+
$this core:in-workspace ?workspace ; identity:has-identifier-name ?name ; identity:has-value-hash ?hash ; identity:has-reason ?reason .
|
|
590
|
+
?other a identity:suppression ; core:in-workspace ?workspace ; identity:has-identifier-name ?name ; identity:has-value-hash ?hash ; identity:has-reason ?reason .
|
|
591
|
+
FILTER ($this != ?other)
|
|
592
|
+
}
|
|
593
|
+
"""
|
|
594
|
+
] .
|
|
595
|
+
|
|
596
|
+
# Activities.
|
|
597
|
+
|
|
598
|
+
identity-shapes:merge-shape a sh:NodeShape ;
|
|
599
|
+
sh:targetClass identity:merge ;
|
|
600
|
+
sh:closed true ;
|
|
601
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
602
|
+
sh:property [
|
|
603
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
604
|
+
sh:message "A merge has exactly one id."@en
|
|
605
|
+
] , [
|
|
606
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
607
|
+
sh:message "A merge belongs to exactly one workspace."@en
|
|
608
|
+
] , [
|
|
609
|
+
sh:path identity:has-cause ; sh:class core:activity ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
610
|
+
sh:message "A merge has exactly one cause."@en
|
|
611
|
+
] , [
|
|
612
|
+
sh:path identity:via ; sh:class core:concept ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
613
|
+
sh:node identity-shapes:merge-via-concept-shape ;
|
|
614
|
+
sh:message "A merge has at most one route, from the scheme of merge routes."@en
|
|
615
|
+
] , [
|
|
616
|
+
sh:path core:with-key ; sh:class identity:key ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
617
|
+
sh:message "A merge used at most one key."@en
|
|
618
|
+
] , [
|
|
619
|
+
sh:path identity:with-issuer-key ; sh:class identity:issuer-key ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
620
|
+
sh:message "A merge from a link token has at most one issuer key."@en
|
|
621
|
+
] , [
|
|
622
|
+
sh:path identity:from-suggestion ; sh:class identity:suggestion ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
623
|
+
sh:message "A merge comes from at most one suggestion."@en
|
|
624
|
+
] , [
|
|
625
|
+
sh:path core:was-associated-with ; sh:class core:agent ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
626
|
+
sh:message "At most one agent made a direct merge: the identity bot or a person."@en
|
|
627
|
+
] , [
|
|
628
|
+
sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
629
|
+
sh:message "A merge has exactly one time."@en
|
|
630
|
+
] ;
|
|
631
|
+
sh:sparql [
|
|
632
|
+
sh:message "Only a merge with the route link_token has an issuer key."@en ;
|
|
633
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
634
|
+
sh:select """
|
|
635
|
+
SELECT $this WHERE {
|
|
636
|
+
$this identity:with-issuer-key ?issuer .
|
|
637
|
+
FILTER NOT EXISTS { $this identity:via identity-vocab:merge-via-link-token }
|
|
638
|
+
}
|
|
639
|
+
"""
|
|
640
|
+
] .
|
|
641
|
+
|
|
642
|
+
identity-shapes:merged-into-shape a sh:NodeShape ;
|
|
643
|
+
sh:targetClass identity:merged-into ;
|
|
644
|
+
sh:closed true ;
|
|
645
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
646
|
+
sh:property [
|
|
647
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
648
|
+
sh:message "A merge record belongs to exactly one workspace."@en
|
|
649
|
+
] , [
|
|
650
|
+
sh:path identity:from-subject ; sh:class identity:subject ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
651
|
+
sh:message "A merge record has exactly one subject that joins."@en
|
|
652
|
+
] , [
|
|
653
|
+
sh:path identity:into-subject ; sh:class identity:subject ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
654
|
+
sh:message "A merge record has exactly one subject that stays."@en
|
|
655
|
+
] , [
|
|
656
|
+
sh:path core:was-generated-by ; sh:class identity:merge ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
657
|
+
sh:message "Exactly one merge makes a merge record."@en
|
|
658
|
+
] , [
|
|
659
|
+
sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
660
|
+
sh:message "A merge record has exactly one start time."@en
|
|
661
|
+
] , [
|
|
662
|
+
sh:path core:invalidated-at ; sh:datatype xsd:dateTime ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
663
|
+
sh:message "A merge record has at most one end time, the time of the unmerge."@en
|
|
664
|
+
] ;
|
|
665
|
+
sh:sparql [
|
|
666
|
+
sh:message "A merge joins two different subjects of the same kind."@en ;
|
|
667
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
668
|
+
sh:select """
|
|
669
|
+
SELECT $this WHERE {
|
|
670
|
+
$this identity:from-subject ?from ; identity:into-subject ?into .
|
|
671
|
+
?from identity:has-subject-kind ?fromKind .
|
|
672
|
+
?into identity:has-subject-kind ?intoKind .
|
|
673
|
+
FILTER (?from = ?into || ?fromKind != ?intoKind)
|
|
674
|
+
}
|
|
675
|
+
"""
|
|
676
|
+
] .
|
|
677
|
+
|
|
678
|
+
identity-shapes:unmerge-shape a sh:NodeShape ;
|
|
679
|
+
sh:targetClass identity:unmerge ;
|
|
680
|
+
sh:closed true ;
|
|
681
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
682
|
+
sh:property [
|
|
683
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
684
|
+
sh:message "An unmerge has at most one id."@en
|
|
685
|
+
] , [
|
|
686
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
687
|
+
sh:message "An unmerge belongs to exactly one workspace."@en
|
|
688
|
+
] , [
|
|
689
|
+
sh:path identity:ends ; sh:class identity:merged-into ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
690
|
+
sh:message "An unmerge ends exactly one merge record."@en
|
|
691
|
+
] , [
|
|
692
|
+
sh:path identity:has-cause ; sh:class core:activity ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
693
|
+
sh:message "An unmerge has at most one cause."@en
|
|
694
|
+
] , [
|
|
695
|
+
sh:path core:with-key ; sh:class identity:key ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
696
|
+
sh:message "An unmerge used exactly one key."@en
|
|
697
|
+
] , [
|
|
698
|
+
sh:path core:was-associated-with ; sh:class core:agent ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
699
|
+
sh:message "At most one agent made the unmerge: the identity bot or a person."@en
|
|
700
|
+
] , [
|
|
701
|
+
sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
702
|
+
sh:message "An unmerge has exactly one time."@en
|
|
703
|
+
] .
|
|
704
|
+
|
|
705
|
+
identity-shapes:consent-change-shape a sh:NodeShape ;
|
|
706
|
+
sh:targetClass identity:consent-change ;
|
|
707
|
+
sh:closed true ;
|
|
708
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
709
|
+
sh:property [
|
|
710
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
711
|
+
sh:message "A consent change has at most one id."@en
|
|
712
|
+
] , [
|
|
713
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
714
|
+
sh:message "A consent change belongs to exactly one workspace."@en
|
|
715
|
+
] , [
|
|
716
|
+
sh:path identity:of-subject ; sh:class identity:person ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
717
|
+
sh:message "A consent change has exactly one known person."@en
|
|
718
|
+
] , [
|
|
719
|
+
sh:path identity:has-change ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
720
|
+
sh:in ( identity-vocab:consent-change-granted identity-vocab:consent-change-withdrawn identity-vocab:consent-change-refused ) ;
|
|
721
|
+
sh:message "A consent change is granted, withdrawn or refused."@en
|
|
722
|
+
] , [
|
|
723
|
+
sh:path identity:via ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
724
|
+
sh:in ( identity-vocab:consent-via-anonymous-id identity-vocab:consent-via-link-token ) ;
|
|
725
|
+
sh:message "A consent change has exactly one route: anonymous_id or link_token."@en
|
|
726
|
+
] , [
|
|
727
|
+
sh:path identity:from-source ; sh:class identity:source ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
728
|
+
sh:message "A consent change has exactly one source."@en
|
|
729
|
+
] , [
|
|
730
|
+
sh:path identity:has-device-count ; sh:datatype xsd:integer ; sh:minCount 1 ; sh:maxCount 1 ; sh:minInclusive 0 ;
|
|
731
|
+
sh:message "A consent change has exactly one number of devices with consent."@en
|
|
732
|
+
] , [
|
|
733
|
+
sh:path core:with-key ; sh:class identity:key ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
734
|
+
sh:message "A consent change used at most one key."@en
|
|
735
|
+
] , [
|
|
736
|
+
sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
737
|
+
sh:message "A consent change has exactly one time."@en
|
|
738
|
+
] ;
|
|
739
|
+
sh:sparql [
|
|
740
|
+
sh:message "The route of a consent change follows from the change: granted and withdrawn come from an anonymous_id, refused comes from a link token."@en ;
|
|
741
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
742
|
+
sh:select """
|
|
743
|
+
SELECT $this ?change ?via WHERE {
|
|
744
|
+
$this identity:has-change ?change ; identity:via ?via .
|
|
745
|
+
FILTER (
|
|
746
|
+
(?change IN (identity-vocab:consent-change-granted, identity-vocab:consent-change-withdrawn) && ?via != identity-vocab:consent-via-anonymous-id) ||
|
|
747
|
+
(?change = identity-vocab:consent-change-refused && ?via != identity-vocab:consent-via-link-token)
|
|
748
|
+
)
|
|
749
|
+
}
|
|
750
|
+
"""
|
|
751
|
+
] .
|
|
752
|
+
|
|
753
|
+
identity-shapes:erasure-shape a sh:NodeShape ;
|
|
754
|
+
sh:targetClass identity:erasure ;
|
|
755
|
+
sh:closed true ;
|
|
756
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
757
|
+
sh:property [
|
|
758
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
759
|
+
sh:message "An erasure has at most one id."@en
|
|
760
|
+
] , [
|
|
761
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
762
|
+
sh:message "An erasure belongs to exactly one workspace."@en
|
|
763
|
+
] , [
|
|
764
|
+
sh:path identity:of-subject ; sh:class identity:subject ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
765
|
+
sh:message "An erasure has exactly one subject."@en
|
|
766
|
+
] , [
|
|
767
|
+
sh:path core:with-key ; sh:class identity:key ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
768
|
+
sh:message "An erasure used exactly one key."@en
|
|
769
|
+
] , [
|
|
770
|
+
sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
771
|
+
sh:message "An erasure has exactly one start time."@en
|
|
772
|
+
] , [
|
|
773
|
+
sh:path core:ended-at ; sh:datatype xsd:dateTime ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
774
|
+
sh:message "An erasure has at most one end time."@en
|
|
775
|
+
] .
|
|
776
|
+
|
|
777
|
+
identity-shapes:export-request-shape a sh:NodeShape ;
|
|
778
|
+
sh:targetClass identity:export-request ;
|
|
779
|
+
sh:closed true ;
|
|
780
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
781
|
+
sh:property [
|
|
782
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
783
|
+
sh:message "An export request has at most one id."@en
|
|
784
|
+
] , [
|
|
785
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
786
|
+
sh:message "An export request belongs to exactly one workspace."@en
|
|
787
|
+
] , [
|
|
788
|
+
sh:path identity:of-subject ; sh:class identity:subject ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
789
|
+
sh:message "An export request has exactly one subject."@en
|
|
790
|
+
] , [
|
|
791
|
+
sh:path core:with-key ; sh:class identity:key ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
792
|
+
sh:message "An export request used exactly one key."@en
|
|
793
|
+
] , [
|
|
794
|
+
sh:path ( core:with-key identity:has-scope ) ;
|
|
795
|
+
sh:hasValue identity-vocab:key-scope-subjects-export ;
|
|
796
|
+
sh:message "The call needs the scope subjects:export."@en
|
|
797
|
+
] , [
|
|
798
|
+
sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
799
|
+
sh:message "An export request has exactly one time."@en
|
|
800
|
+
] .
|
|
801
|
+
|
|
802
|
+
identity-shapes:erasure-completed-shape a sh:NodeShape ;
|
|
803
|
+
sh:targetClass identity:erasure-completed ;
|
|
804
|
+
sh:closed true ;
|
|
805
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
806
|
+
sh:property [
|
|
807
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
808
|
+
sh:message "An erasure completed has exactly one id."@en
|
|
809
|
+
] , [
|
|
810
|
+
sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
811
|
+
sh:message "An erasure completed has exactly one time."@en
|
|
812
|
+
] , [
|
|
813
|
+
sh:path core:was-associated-with ; sh:class core:service ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
814
|
+
sh:message "An erasure completed has at most one service that finished the erasure."@en
|
|
815
|
+
] , [
|
|
816
|
+
sh:path identity:of-subject ; sh:class identity:subject ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
817
|
+
sh:message "An erasure completed has at most one subject whose data the service erased."@en
|
|
818
|
+
] , [
|
|
819
|
+
sh:path identity:responds-to ; sh:class identity:erasure ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
820
|
+
sh:message "An erasure completed replies to at most one erasure."@en
|
|
821
|
+
] , [
|
|
822
|
+
sh:path identity:has-answer-outcome ; sh:class core:concept ; sh:in ( desk-vocab:answer-outcome-done desk-vocab:answer-outcome-none desk-vocab:answer-outcome-unmatched desk-vocab:answer-outcome-shared ) ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
823
|
+
sh:message "An erasure completed has exactly one outcome of the scheme of the answer outcomes."@en
|
|
824
|
+
] , [
|
|
825
|
+
sh:path identity:has-kept-count ; sh:datatype xsd:integer ; sh:minInclusive 0 ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
826
|
+
sh:message "An erasure completed has at most one kept count, and it is 0 or more."@en
|
|
827
|
+
] .
|
|
828
|
+
|
|
829
|
+
identity-shapes:export-completed-shape a sh:NodeShape ;
|
|
830
|
+
sh:targetClass identity:export-completed ;
|
|
831
|
+
sh:closed true ;
|
|
832
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
833
|
+
sh:property [
|
|
834
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
835
|
+
sh:message "An export completed has exactly one id."@en
|
|
836
|
+
] , [
|
|
837
|
+
sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
838
|
+
sh:message "An export completed has exactly one time."@en
|
|
839
|
+
] , [
|
|
840
|
+
sh:path core:was-associated-with ; sh:class core:service ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
841
|
+
sh:message "An export completed has at most one service that sent the data."@en
|
|
842
|
+
] , [
|
|
843
|
+
sh:path identity:of-subject ; sh:class identity:subject ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
844
|
+
sh:message "An export completed has at most one subject whose data the service sent."@en
|
|
845
|
+
] , [
|
|
846
|
+
sh:path identity:responds-to ; sh:class identity:export-request ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
847
|
+
sh:message "An export completed replies to at most one export request."@en
|
|
848
|
+
] , [
|
|
849
|
+
sh:path identity:has-answer-outcome ; sh:class core:concept ; sh:in ( desk-vocab:answer-outcome-done desk-vocab:answer-outcome-none desk-vocab:answer-outcome-unmatched desk-vocab:answer-outcome-shared ) ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
850
|
+
sh:message "An export completed has exactly one outcome of the scheme of the answer outcomes."@en
|
|
851
|
+
] , [
|
|
852
|
+
sh:path identity:has-kept-count ; sh:datatype xsd:integer ; sh:minInclusive 0 ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
853
|
+
sh:message "An export completed has at most one kept count, and it is 0 or more."@en
|
|
854
|
+
] , [
|
|
855
|
+
sh:path identity:has-part ; sh:datatype xsd:integer ; sh:minInclusive 1 ; sh:lessThanOrEquals identity:has-parts ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
856
|
+
sh:message "The part of an export completed is a whole number from 1, and at most the number of parts."@en
|
|
857
|
+
] , [
|
|
858
|
+
sh:path identity:has-parts ; sh:datatype xsd:integer ; sh:minInclusive 1 ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
859
|
+
sh:message "The number of parts of an export completed is a whole number from 1."@en
|
|
860
|
+
] , [
|
|
861
|
+
sh:path identity:has-export-data ; sh:datatype identity:json-object ; sh:pattern "^\\{[\\s\\S]*\\}$" ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
862
|
+
sh:message "An export completed has at most one data object, and the data object is the text of one JSON object."@en
|
|
863
|
+
] .
|
|
864
|
+
|
|
865
|
+
# Attributes, goals and the audit log.
|
|
866
|
+
|
|
867
|
+
identity-shapes:attribute-shape a sh:NodeShape ;
|
|
868
|
+
sh:targetClass identity:attribute ;
|
|
869
|
+
sh:closed true ;
|
|
870
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
871
|
+
sh:property [
|
|
872
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
873
|
+
sh:message "An attribute has at most one id."@en
|
|
874
|
+
] , [
|
|
875
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
876
|
+
sh:message "An attribute belongs to exactly one workspace."@en
|
|
877
|
+
] , [
|
|
878
|
+
sh:path identity:of-subject ; sh:class identity:subject ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
879
|
+
sh:message "An attribute belongs to exactly one subject."@en
|
|
880
|
+
] , [
|
|
881
|
+
sh:path core:has-name ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
882
|
+
sh:message "An attribute has exactly one name."@en
|
|
883
|
+
] , [
|
|
884
|
+
sh:path identity:has-attribute-value ; sh:datatype xsd:string ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
885
|
+
sh:message "An attribute has at most one value."@en
|
|
886
|
+
] , [
|
|
887
|
+
sh:path identity:has-writer-key-kind ; sh:class core:concept ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
888
|
+
sh:in ( identity-vocab:key-kind-publishable identity-vocab:key-kind-secret ) ;
|
|
889
|
+
sh:message "An attribute has exactly one writer key kind: publishable or secret."@en
|
|
890
|
+
] , [
|
|
891
|
+
sh:path core:was-generated-by ; sh:class core:activity ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
892
|
+
sh:message "An attribute comes from at most one profile event."@en
|
|
893
|
+
] , [
|
|
894
|
+
sh:path core:generated-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
895
|
+
sh:message "An attribute has exactly one start time."@en
|
|
896
|
+
] , [
|
|
897
|
+
sh:path core:invalidated-at ; sh:datatype xsd:dateTime ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
898
|
+
sh:message "An attribute has at most one end time. A current attribute has no end time."@en
|
|
899
|
+
] .
|
|
900
|
+
|
|
901
|
+
identity-shapes:goal-shape a sh:NodeShape ;
|
|
902
|
+
sh:targetClass identity:goal ;
|
|
903
|
+
sh:closed true ;
|
|
904
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
905
|
+
sh:property [
|
|
906
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
907
|
+
sh:message "A goal has at most one id."@en
|
|
908
|
+
] , [
|
|
909
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
910
|
+
sh:message "A goal belongs to exactly one workspace."@en
|
|
911
|
+
] , [
|
|
912
|
+
sh:path identity:of-source ; sh:class identity:source ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
913
|
+
sh:message "A goal belongs to exactly one source."@en
|
|
914
|
+
] , [
|
|
915
|
+
sh:path core:has-name ; sh:datatype xsd:string ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
916
|
+
sh:message "A goal has exactly one signal name."@en
|
|
917
|
+
] ;
|
|
918
|
+
sh:sparql [
|
|
919
|
+
sh:message "A signal name is a goal of a source only one time."@en ;
|
|
920
|
+
sh:prefixes <https://id.quickpipe.ai/domain/shapes/identity> ;
|
|
921
|
+
sh:select """
|
|
922
|
+
SELECT $this ?other WHERE {
|
|
923
|
+
$this identity:of-source ?source ; core:has-name ?name .
|
|
924
|
+
?other a identity:goal ; identity:of-source ?source ; core:has-name ?name .
|
|
925
|
+
FILTER ($this != ?other)
|
|
926
|
+
}
|
|
927
|
+
"""
|
|
928
|
+
] .
|
|
929
|
+
|
|
930
|
+
identity-shapes:audit-log-shape a sh:NodeShape ;
|
|
931
|
+
sh:targetClass identity:audit-log ;
|
|
932
|
+
sh:closed true ;
|
|
933
|
+
sh:ignoredProperties ( rdf:type ) ;
|
|
934
|
+
sh:property [
|
|
935
|
+
sh:path core:id ; sh:datatype xsd:string ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
936
|
+
sh:message "An audit log record has at most one id."@en
|
|
937
|
+
] , [
|
|
938
|
+
sh:path core:in-workspace ; sh:class core:workspace ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
939
|
+
sh:message "An audit log record belongs to at most one workspace."@en
|
|
940
|
+
] , [
|
|
941
|
+
sh:path core:qualified-association ;
|
|
942
|
+
sh:node [
|
|
943
|
+
sh:property [ sh:path core:had-role ; sh:minCount 1 ; sh:hasValue core-vocab:role-audit-actor ] ,
|
|
944
|
+
[ sh:path core:by-agent ; sh:class core:agent ; sh:minCount 1 ; sh:maxCount 1 ]
|
|
945
|
+
] ;
|
|
946
|
+
sh:minCount 1 ; sh:maxCount 1 ;
|
|
947
|
+
sh:message "An admin call has one actor: the person or the caller that makes it."@en
|
|
948
|
+
] , [
|
|
949
|
+
sh:path identity:has-difference ; sh:datatype xsd:string ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
950
|
+
sh:message "An audit log record has at most one difference."@en
|
|
951
|
+
] , [
|
|
952
|
+
sh:path core:with-key ; sh:class identity:key ; sh:minCount 0 ; sh:maxCount 1 ;
|
|
953
|
+
sh:message "An admin call used at most one key."@en
|
|
954
|
+
] , [
|
|
955
|
+
sh:path core:started-at ; sh:datatype xsd:dateTime ; sh:minCount 1 ; sh:maxCount 1 ;
|
|
956
|
+
sh:message "An admin call has exactly one time."@en
|
|
957
|
+
] .
|