Skip to content

Commit b9ba57a

Browse files
jeswrajnelson-nist
andauthored
fix: make count and length have min value of 0 in shacl-shacl and make deactivated boolean (#392)
* chore: clean up shacl shacl shape * chore: revert `sh:in` addition for severity * chore: remove class constraint on qualifiedValueShape * Update shacl/shacl-shacl.ttl Co-authored-by: Jesse Wright <[email protected]> * Update shacl/shacl-shacl.ttl Co-authored-by: Jesse Wright <[email protected]> --------- Co-authored-by: Alex Nelson <[email protected]>
1 parent 785b0f0 commit b9ba57a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

shacl/shacl-shacl.ttl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ shsh:ShapeShape
118118
sh:property [
119119
sh:path sh:deactivated ;
120120
sh:maxCount 1 ; # deactivated-maxCount
121-
sh:in ( true false ) ; # deactivated-datatype
121+
sh:datatype xsd:boolean ; # deactivated-datatype
122122
] ;
123123

124124
sh:property [
@@ -182,6 +182,7 @@ shsh:ShapeShape
182182
sh:path sh:maxCount ;
183183
sh:datatype xsd:integer ; # maxCount-datatype
184184
sh:maxCount 1 ; # maxCount-maxCount
185+
sh:minInclusive 0 ; # maxCount-minInclusive
185186
] ;
186187
sh:property [
187188
sh:path sh:maxExclusive ;
@@ -197,11 +198,13 @@ shsh:ShapeShape
197198
sh:path sh:maxLength ;
198199
sh:datatype xsd:integer ; # maxLength-datatype
199200
sh:maxCount 1 ; # maxLength-maxCount
201+
sh:minInclusive 0 ; # maxLength-minInclusive
200202
] ;
201203
sh:property [
202204
sh:path sh:minCount ;
203205
sh:datatype xsd:integer ; # minCount-datatype
204206
sh:maxCount 1 ; # minCount-maxCount
207+
sh:minInclusive 0 ; # minCount-minInclusive
205208
] ;
206209
sh:property [
207210
sh:path sh:minExclusive ;
@@ -217,6 +220,7 @@ shsh:ShapeShape
217220
sh:path sh:minLength ;
218221
sh:datatype xsd:integer ; # minLength-datatype
219222
sh:maxCount 1 ; # minLength-maxCount
223+
sh:minInclusive 0 ; # minLength-minInclusive
220224
] ;
221225
sh:property [
222226
sh:path sh:nodeKind ;
@@ -242,15 +246,18 @@ shsh:ShapeShape
242246
sh:path sh:qualifiedMaxCount ;
243247
sh:datatype xsd:integer ; # qualifiedMaxCount-datatype
244248
sh:maxCount 1 ; # multiple-parameters
249+
sh:minInclusive 0 ; # qualifiedMaxCount-minInclusive
245250
] ;
246251
sh:property [
247252
sh:path sh:qualifiedMinCount ;
248253
sh:datatype xsd:integer ; # qualifiedMinCount-datatype
249254
sh:maxCount 1 ; # multiple-parameters
255+
sh:minInclusive 0 ; # qualifiedMinCount-minInclusive
250256
] ;
251257
sh:property [
252258
sh:path sh:qualifiedValueShape ;
253259
sh:maxCount 1 ; # multiple-parameters
260+
sh:node shsh:ShapeShape ; # qualifiedValueShape-node
254261
] ;
255262
sh:property [
256263
sh:path sh:qualifiedValueShapesDisjoint ;

0 commit comments

Comments
 (0)