Skip to content

Commit

Permalink
Revise vocabulary pattern for core:ObjectStatusVocab
Browse files Browse the repository at this point in the history
No effects were observed on Make-managed files.

References:
* ucoProject/UCO#629

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed Feb 21, 2025
1 parent 6df0bea commit e7684cd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 31 deletions.
39 changes: 12 additions & 27 deletions ontology/investigation/investigation.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -128,45 +128,30 @@ investigation:Investigation
sh:nodeKind sh:Literal ;
sh:path investigation:investigationStatus ;
] ,
[
sh:datatype xsd:string ;
sh:message "As of CASE 1.4.0, the datatype to use for investigation:investigationForm should be xsd:string. Not using xsd:string will be an error in CASE 2.0.0." ;
sh:path investigation:investigationForm ;
sh:severity sh:Warning ;
] ,
[
sh:datatype xsd:string ;
sh:nodeKind sh:Literal ;
sh:path investigation:focus ;
] ,
[
sh:datatype vocabulary:InvestigationFormVocab ;
sh:message "Value is outside the default vocabulary InvestigationFormVocab." ;
sh:in (
"case"
"incident"
"suspicious-activity"
) ;
sh:message "Value is not member of the vocabulary InvestigationFormVocab." ;
sh:path investigation:investigationForm ;
sh:severity sh:Info ;
] ,
[
sh:maxCount "1"^^xsd:integer ;
sh:nodeKind sh:Literal ;
sh:or (
[
sh:datatype vocabulary:InvestigationFormVocab ;
]
[
sh:datatype xsd:string ;
]
) ;
sh:path investigation:investigationForm ;
] ,
[
sh:message "Value is not member of the vocabulary InvestigationFormVocab." ;
sh:or (
[
sh:datatype vocabulary:InvestigationFormVocab ;
sh:in (
"case"^^vocabulary:InvestigationFormVocab
"incident"^^vocabulary:InvestigationFormVocab
"suspicious-activity"^^vocabulary:InvestigationFormVocab
) ;
]
[
sh:datatype xsd:string ;
]
) ;
sh:path investigation:investigationForm ;
]
;
Expand Down
6 changes: 3 additions & 3 deletions ontology/vocabulary/vocabulary.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ vocab:InvestigationFormVocab
owl:equivalentClass [
a rdfs:Datatype ;
owl:oneOf (
"case"^^vocab:InvestigationFormVocab
"incident"^^vocab:InvestigationFormVocab
"suspicious-activity"^^vocab:InvestigationFormVocab
"case"
"incident"
"suspicious-activity"
) ;
] ;
.
Expand Down

0 comments on commit e7684cd

Please sign in to comment.