Skip to content

Commit

Permalink
Restore sh:xone for three kinds of configurations
Browse files Browse the repository at this point in the history
An `sh:xone` pattern was introduced as part of Issue 405.  Sean removed
it when migrating concepts over to the new `configuration` namespace,
and neither documented why nor updated the unit test that expected it.

This patch restores the addition.

References:
* #405
* #432

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed Aug 22, 2022
1 parent 51c0dc8 commit 5e6ce96
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ontology/uco/configuration/configuration.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,32 @@ configuration:ConfigurationEntry
]
;
sh:targetClass configuration:ConfigurationEntry ;
sh:xone (
[
sh:property
[
sh:maxCount "0"^^xsd:integer ;
sh:path configuration:itemObject ;
] ,
[
sh:maxCount "0"^^xsd:integer ;
sh:path configuration:itemValue ;
]
;
]
[
sh:property [
sh:minCount "1"^^xsd:integer ;
sh:path configuration:itemObject ;
] ;
]
[
sh:property [
sh:minCount "1"^^xsd:integer ;
sh:path configuration:itemValue ;
] ;
]
) ;
.

configuration:Dependency
Expand Down

0 comments on commit 5e6ce96

Please sign in to comment.