diff --git a/ontology/uco/core/core.ttl b/ontology/uco/core/core.ttl index a9010464..9ac562ef 100644 --- a/ontology/uco/core/core.ttl +++ b/ontology/uco/core/core.ttl @@ -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" ) ; ] ; . @@ -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 ; @@ -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 ; diff --git a/tests/examples/object_status_PASS.json b/tests/examples/object_status_PASS.json index 2d10dc40..3f4d1165 100644 --- a/tests/examples/object_status_PASS.json +++ b/tests/examples/object_status_PASS.json @@ -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" } ] }