-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transcribe and update proposed concepts from UCO PR
The file `drafting.ttl` contains the contents of UCO PR 408, transcribed for the purpose of SHACL review. As SHACL review occurred, two more shapes per datatype property were added to account for validation according to the UCO semi-open vocabulary design. See Change Proposal 100 from UCO 0.8.0's release page to understand this enforcement mechanism. JSON-LD Knowledge Base concepts in this example were modified to use the `drafting:` prefix instead of the under-proposal `observable:` and `vocabulary:`-prefixed concepts. A follow-on patch will regenerate Make-managed files. References: * ucoProject/UCO#408 * https://unifiedcyberontology.org/releases/0.8.0/ Signed-off-by: Alex Nelson <[email protected]>
- Loading branch information
1 parent
836d047
commit 4a31112
Showing
8 changed files
with
260 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
@prefix core: <https://ontology.unifiedcyberontology.org/uco/core/> . | ||
@prefix drafting: <http://example.org/ontology/drafting/> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
<http://example.org/ontology/drafting> | ||
a owl:Ontology ; | ||
. | ||
|
||
drafting:UnallocatedRecoverabilityFacet | ||
a | ||
owl:Class , | ||
sh:NodeShape | ||
; | ||
rdfs:subClassOf core:Facet ; | ||
rdfs:label "UnallocatedRecoverabilityFacet"@en ; | ||
rdfs:comment "Recoverability status of name, metadata, and content."@en ; | ||
rdfs:seeAlso <https://unifiedcyberontology.atlassian.net/browse/ONT-119> ; | ||
sh:property | ||
[ | ||
sh:datatype drafting:UnallocatedRecoverabilityStatusVocab ; | ||
sh:message "Value is outside the default vocabulary UnallocatedRecoverabilityStatusVocab." ; | ||
sh:path drafting:nameRecoverabilityStatus ; | ||
sh:severity sh:Info ; | ||
] , | ||
[ | ||
sh:maxCount "1"^^xsd:integer ; | ||
sh:nodeKind sh:Literal ; | ||
sh:or ( | ||
[ | ||
sh:datatype drafting:UnallocatedRecoverabilityStatusVocab ; | ||
] | ||
[ | ||
sh:datatype xsd:string ; | ||
] | ||
) ; | ||
sh:path drafting:nameRecoverabilityStatus ; | ||
] , | ||
[ | ||
sh:message "Value is not member of the vocabulary UnallocatedRecoverabilityStatusVocab." ; | ||
sh:or ( | ||
[ | ||
sh:datatype drafting:UnallocatedRecoverabilityStatusVocab ; | ||
sh:in ( | ||
"recovered"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
"partially recovered"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
"overwritten"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
"unknown"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
) ; | ||
] | ||
[ | ||
sh:datatype xsd:string ; | ||
] | ||
) ; | ||
sh:path drafting:nameRecoverabilityStatus ; | ||
] , | ||
[ | ||
sh:datatype drafting:UnallocatedRecoverabilityStatusVocab ; | ||
sh:message "Value is outside the default vocabulary UnallocatedRecoverabilityStatusVocab." ; | ||
sh:path drafting:metadataRecoverabilityStatus ; | ||
sh:severity sh:Info ; | ||
] , | ||
[ | ||
sh:message "Value is not member of the vocabulary UnallocatedRecoverabilityStatusVocab." ; | ||
sh:or ( | ||
[ | ||
sh:datatype drafting:UnallocatedRecoverabilityStatusVocab ; | ||
sh:in ( | ||
"recovered"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
"partially recovered"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
"overwritten"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
"unknown"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
) ; | ||
] | ||
[ | ||
sh:datatype xsd:string ; | ||
] | ||
) ; | ||
sh:path drafting:metadataRecoverabilityStatus ; | ||
] , | ||
[ | ||
sh:maxCount "1"^^xsd:integer ; | ||
sh:nodeKind sh:Literal ; | ||
sh:or ( | ||
[ | ||
sh:datatype drafting:UnallocatedRecoverabilityStatusVocab ; | ||
] | ||
[ | ||
sh:datatype xsd:string ; | ||
] | ||
) ; | ||
sh:path drafting:metadataRecoverabilityStatus ; | ||
] , | ||
[ | ||
sh:datatype drafting:UnallocatedRecoverabilityStatusVocab ; | ||
sh:message "Value is outside the default vocabulary UnallocatedRecoverabilityStatusVocab." ; | ||
sh:path drafting:contentRecoverabilityStatus ; | ||
sh:severity sh:Info ; | ||
] , | ||
[ | ||
sh:maxCount "1"^^xsd:integer ; | ||
sh:nodeKind sh:Literal ; | ||
sh:or ( | ||
[ | ||
sh:datatype drafting:UnallocatedRecoverabilityStatusVocab ; | ||
] | ||
[ | ||
sh:datatype xsd:string ; | ||
] | ||
) ; | ||
sh:path drafting:contentRecoverabilityStatus ; | ||
] , | ||
[ | ||
sh:message "Value is not member of the vocabulary UnallocatedRecoverabilityStatusVocab." ; | ||
sh:or ( | ||
[ | ||
sh:datatype drafting:UnallocatedRecoverabilityStatusVocab ; | ||
sh:in ( | ||
"recovered"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
"partially recovered"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
"overwritten"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
"unknown"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
) ; | ||
] | ||
[ | ||
sh:datatype xsd:string ; | ||
] | ||
) ; | ||
sh:path drafting:contentRecoverabilityStatus ; | ||
] | ||
; | ||
sh:targetClass drafting:UnallocatedRecoverabilityFacet ; | ||
. | ||
|
||
|
||
drafting:contentRecoverabilityStatus | ||
a owl:DatatypeProperty ; | ||
rdfs:label "contentRecoverabilityStatus"@en ; | ||
rdfs:comment "Specifies the recoverability status of the content of an object."@en ; | ||
rdfs:range [ | ||
a rdfs:Datatype ; | ||
owl:unionOf ( | ||
drafting:UnallocatedRecoverabilityStatusVocab | ||
xsd:string | ||
) ; | ||
] ; | ||
. | ||
|
||
drafting:metadataRecoverabilityStatus | ||
a owl:DatatypeProperty ; | ||
rdfs:label "metadataRecoverabilityStatus"@en ; | ||
rdfs:comment "Specifies the recoverability status of the metadata of an object."@en ; | ||
rdfs:range [ | ||
a rdfs:Datatype ; | ||
owl:unionOf ( | ||
drafting:UnallocatedRecoverabilityStatusVocab | ||
xsd:string | ||
) ; | ||
] ; | ||
. | ||
|
||
drafting:nameRecoverabilityStatus | ||
a owl:DatatypeProperty ; | ||
rdfs:label "nameRecoverabilityStatus"@en ; | ||
rdfs:comment "Specifies the recoverability status of the name of an object."@en ; | ||
rdfs:range [ | ||
a rdfs:Datatype ; | ||
owl:unionOf ( | ||
drafting:UnallocatedRecoverabilityStatusVocab | ||
xsd:string | ||
) ; | ||
] ; | ||
. | ||
|
||
drafting:UnallocatedRecoverabilityStatusVocab | ||
a rdfs:Datatype ; | ||
rdfs:subClassOf rdfs:Resource ; | ||
rdfs:label "Unallocated Recoverability Status Vocabulary"@en-US ; | ||
rdfs:comment "Defines the vocabulary for unallocated recoverability status of data."@en ; | ||
owl:oneOf ( | ||
"recovered"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
"partially recovered"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
"overwritten"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
"unknown"^^drafting:UnallocatedRecoverabilityStatusVocab | ||
) ; | ||
. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
examples/illustrations/recoverability/src/recoverability_base.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters