Skip to content

Commit

Permalink
Apply revised vocabulary pattern
Browse files Browse the repository at this point in the history
A follow-on patch will regenerate Make-managed files.

References:
* #629

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed Feb 18, 2025
1 parent d7ea496 commit f4c792a
Show file tree
Hide file tree
Showing 6 changed files with 1,167 additions and 1,531 deletions.
82 changes: 26 additions & 56 deletions ontology/uco/action/action.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -108,43 +108,28 @@ action:Action
sh:path action:actionCount ;
] ,
[
sh:datatype vocabulary:ActionStatusTypeVocab ;
sh:message "Value is outside the default vocabulary ActionStatusTypeVocab." ;
sh:datatype xsd:string ;
sh:message "As of UCO 1.4.0, the datatype to use for action:actionStatus should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ;
sh:path action:actionStatus ;
sh:severity sh:Info ;
sh:severity sh:Warning ;
] ,
[
sh:maxCount "1"^^xsd:integer ;
sh:nodeKind sh:Literal ;
sh:or (
[
sh:datatype vocabulary:ActionStatusTypeVocab ;
]
[
sh:datatype xsd:string ;
]
sh:in (
"Complete/Finish"
"Error"
"Fail"
"Ongoing"
"Pending"
"Success"
"Unknown"
) ;
sh:message "Value is not member of the vocabulary ActionStatusTypeVocab." ;
sh:path action:actionStatus ;
sh:severity sh:Info ;
] ,
[
sh:message "Value is not member of the vocabulary ActionStatusTypeVocab." ;
sh:or (
[
sh:datatype vocabulary:ActionStatusTypeVocab ;
sh:in (
"Complete/Finish"^^vocabulary:ActionStatusTypeVocab
"Error"^^vocabulary:ActionStatusTypeVocab
"Fail"^^vocabulary:ActionStatusTypeVocab
"Ongoing"^^vocabulary:ActionStatusTypeVocab
"Pending"^^vocabulary:ActionStatusTypeVocab
"Success"^^vocabulary:ActionStatusTypeVocab
"Unknown"^^vocabulary:ActionStatusTypeVocab
) ;
]
[
sh:datatype xsd:string ;
]
) ;
sh:maxCount "1"^^xsd:integer ;
sh:nodeKind sh:Literal ;
sh:path action:actionStatus ;
]
;
Expand Down Expand Up @@ -256,39 +241,24 @@ action:ActionFrequencyFacet
sh:path action:units ;
] ,
[
sh:datatype vocabulary:TrendVocab ;
sh:message "Value is outside the default vocabulary TrendVocab." ;
sh:datatype xsd:string ;
sh:message "As of UCO 1.4.0, the datatype to use for action:trend should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ;
sh:path action:trend ;
sh:severity sh:Warning ;
] ,
[
sh:in (
"Decreasing"
"Increasing"
) ;
sh:message "Value is not member of the vocabulary TrendVocab." ;
sh:path action:trend ;
sh:severity sh:Info ;
] ,
[
sh:maxCount "1"^^xsd:integer ;
sh:minCount "1"^^xsd:integer ;
sh:nodeKind sh:Literal ;
sh:or (
[
sh:datatype vocabulary:TrendVocab ;
]
[
sh:datatype xsd:string ;
]
) ;
sh:path action:trend ;
] ,
[
sh:message "Value is not member of the vocabulary TrendVocab." ;
sh:or (
[
sh:datatype vocabulary:TrendVocab ;
sh:in (
"Decreasing"^^vocabulary:TrendVocab
"Increasing"^^vocabulary:TrendVocab
) ;
]
[
sh:datatype xsd:string ;
]
) ;
sh:path action:trend ;
]
;
Expand Down
Loading

0 comments on commit f4c792a

Please sign in to comment.