Skip to content

Commit

Permalink
Revise vocabulary pattern for core:ObjectStatusVocab
Browse files Browse the repository at this point in the history
A follow-on patch will regenerate Make-managed files.

References:
* #549
* #629

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
  • Loading branch information
ajnelson-nist committed Oct 17, 2024
1 parent ceaa62e commit 54ea222
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
28 changes: 14 additions & 14 deletions ontology/uco/core/core.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ core:ObjectStatusVocab
owl:equivalentClass [
a rdfs:Datatype ;
owl:oneOf (
"Draft"^^core:ObjectStatusVocab
"Final"^^core:ObjectStatusVocab
"Deprecated"^^core:ObjectStatusVocab
"Draft"
"Final"
"Deprecated"
) ;
] ;
.
Expand Down Expand Up @@ -443,6 +443,17 @@ core:UcoObject
sh:nodeKind sh:Literal ;
sh:path core:modifiedTime ;
] ,
[
sh:datatype xsd:string ;
sh:in (
"Draft"
"Final"
"Deprecated"
) ;
sh:maxCount "1"^^xsd:integer ;
sh:nodeKind sh:Literal ;
sh:path core:objectStatus ;
] ,
[
sh:datatype xsd:string ;
sh:maxCount "1"^^xsd:integer ;
Expand All @@ -464,17 +475,6 @@ core:UcoObject
sh:datatype xsd:string ;
sh:nodeKind sh:Literal ;
sh:path core:tag ;
] ,
[
sh:datatype core:ObjectStatusVocab ;
sh:in (
"Draft"^^core:ObjectStatusVocab
"Final"^^core:ObjectStatusVocab
"Deprecated"^^core:ObjectStatusVocab
) ;
sh:maxCount "1"^^xsd:integer ;
sh:nodeKind sh:Literal ;
sh:path core:objectStatus ;
]
;
sh:targetClass core:UcoObject ;
Expand Down
5 changes: 1 addition & 4 deletions tests/examples/object_status_PASS.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
{
"@id": "kb:UcoObject-f86c567d-374a-4873-b9bc-a746ca2bf360",
"@type": "core:UcoObject",
"core:objectStatus": {
"@type": "core:ObjectStatusVocab",
"@value": "Draft"
}
"core:objectStatus": "Draft"
}
]
}

0 comments on commit 54ea222

Please sign in to comment.