Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UCO Issue 629: Revise vocabulary pattern #172

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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