Skip to content

Commit 6921476

Browse files
authored
Merge pull request #174 from casework/UCO-BugFix-Issue-629-2.0.0
UCO Issue 629: Enforce vocabulary pattern revision (adding CASE 1.4.0 changes)
2 parents 8efdef7 + 5f23830 commit 6921476

File tree

2 files changed

+22
-34
lines changed

2 files changed

+22
-34
lines changed

ontology/investigation/investigation.ttl

Lines changed: 19 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ investigation:Investigation
105105
rdfs:label "Investigation"@en ;
106106
rdfs:comment "An investigation is a grouping of characteristics unique to an exploration of the facts involved in a cyber-relevant set of suspicious activity."@en ;
107107
sh:property
108+
investigation:Investigation-investigationForm-in-shape ,
108109
[
109110
sh:class investigation:Authorization ;
110111
sh:nodeKind sh:BlankNodeOrIRI ;
@@ -130,49 +131,36 @@ investigation:Investigation
130131
] ,
131132
[
132133
sh:datatype xsd:string ;
133-
sh:nodeKind sh:Literal ;
134-
sh:path investigation:focus ;
135-
] ,
136-
[
137-
sh:datatype vocabulary:InvestigationFormVocab ;
138-
sh:message "Value is outside the default vocabulary InvestigationFormVocab." ;
134+
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." ;
139135
sh:path investigation:investigationForm ;
140-
sh:severity sh:Info ;
136+
sh:severity sh:Warning ;
141137
] ,
142138
[
143-
sh:maxCount "1"^^xsd:integer ;
139+
sh:datatype xsd:string ;
144140
sh:nodeKind sh:Literal ;
145-
sh:or (
146-
[
147-
sh:datatype vocabulary:InvestigationFormVocab ;
148-
]
149-
[
150-
sh:datatype xsd:string ;
151-
]
152-
) ;
153-
sh:path investigation:investigationForm ;
141+
sh:path investigation:focus ;
154142
] ,
155143
[
156-
sh:message "Value is not member of the vocabulary InvestigationFormVocab." ;
157-
sh:or (
158-
[
159-
sh:datatype vocabulary:InvestigationFormVocab ;
160-
sh:in (
161-
"case"^^vocabulary:InvestigationFormVocab
162-
"incident"^^vocabulary:InvestigationFormVocab
163-
"suspicious-activity"^^vocabulary:InvestigationFormVocab
164-
) ;
165-
]
166-
[
167-
sh:datatype xsd:string ;
168-
]
169-
) ;
144+
sh:maxCount "1"^^xsd:integer ;
145+
sh:nodeKind sh:Literal ;
170146
sh:path investigation:investigationForm ;
171147
]
172148
;
173149
sh:targetClass investigation:Investigation ;
174150
.
175151

152+
investigation:Investigation-investigationForm-in-shape
153+
a sh:PropertyShape ;
154+
sh:in (
155+
"case"
156+
"incident"
157+
"suspicious-activity"
158+
) ;
159+
sh:message "Value is not member of the vocabulary InvestigationFormVocab." ;
160+
sh:path investigation:investigationForm ;
161+
sh:severity sh:Info ;
162+
.
163+
176164
investigation:InvestigativeAction
177165
a
178166
owl:Class ,

ontology/vocabulary/vocabulary.ttl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ vocab:InvestigationFormVocab
1919
owl:equivalentClass [
2020
a rdfs:Datatype ;
2121
owl:oneOf (
22-
"case"^^vocab:InvestigationFormVocab
23-
"incident"^^vocab:InvestigationFormVocab
24-
"suspicious-activity"^^vocab:InvestigationFormVocab
22+
"case"
23+
"incident"
24+
"suspicious-activity"
2525
) ;
2626
] ;
2727
.

0 commit comments

Comments
 (0)