-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Feature-Issue-549' into unstable
- Loading branch information
Showing
7 changed files
with
180 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"@context": { | ||
"core": "https://ontology.unifiedcyberontology.org/uco/core/", | ||
"kb": "http://example.org/kb/" | ||
}, | ||
"@graph": [ | ||
{ | ||
"@id": "kb:UcoObject-f86c567d-374a-4873-b9bc-a746ca2bf360", | ||
"@type": "core:UcoObject", | ||
"core:objectStatus": { | ||
"@type": "core:ObjectStatusVocab", | ||
"@value": "Draft" | ||
} | ||
} | ||
] | ||
} |
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,11 @@ | ||
@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#> . | ||
|
||
[] | ||
a sh:ValidationReport ; | ||
sh:conforms "true"^^xsd:boolean ; | ||
. | ||
|
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,26 @@ | ||
{ | ||
"@context": { | ||
"core": "https://ontology.unifiedcyberontology.org/uco/core/", | ||
"kb": "http://example.org/kb/", | ||
"rdfs": "http://www.w3.org/2000/01/rdf-schema#" | ||
}, | ||
"@graph": [ | ||
{ | ||
"@id": "kb:UcoObject-6ae2b245-a8cd-45dc-9f40-5b2738879351", | ||
"@type": "core:UcoObject", | ||
"rdfs:comment": "This will trigger an error from using a value outside of the required vocabulary.", | ||
"core:objectStatus": "Initial draft" | ||
}, | ||
{ | ||
"@id": "kb:File-c9c36379-8eca-4a85-887c-b51f7721edfd", | ||
"@type": "observable:File", | ||
"core:hasFacet": { | ||
"@id": "kb:ArchiveFileFacet-5884ca1c-2f5e-4e66-bdc6-7d48606f9fbc", | ||
"@type": "observable:ArchiveFileFacet", | ||
"rdfs:comment": "This will trigger an error from using objectStatus on a non-UcoObject thing.", | ||
"core:objectStatus": "Draft", | ||
"observable:archiveType": "Currently-unknown compressing-and-encrypting type seen multiple places, further research needed" | ||
} | ||
} | ||
] | ||
} |
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,63 @@ | ||
@prefix core: <https://ontology.unifiedcyberontology.org/uco/core/> . | ||
@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#> . | ||
|
||
[] | ||
a sh:ValidationReport ; | ||
sh:conforms "false"^^xsd:boolean ; | ||
sh:result | ||
[ | ||
a sh:ValidationResult ; | ||
sh:focusNode <http://example.org/kb/ArchiveFileFacet-5884ca1c-2f5e-4e66-bdc6-7d48606f9fbc> ; | ||
sh:resultMessage "Value does not have class core:UcoObject" ; | ||
sh:resultSeverity sh:Violation ; | ||
sh:sourceConstraintComponent sh:ClassConstraintComponent ; | ||
sh:sourceShape core:objectStatus-subjects-shape ; | ||
sh:value <http://example.org/kb/ArchiveFileFacet-5884ca1c-2f5e-4e66-bdc6-7d48606f9fbc> ; | ||
] , | ||
[ | ||
a sh:ValidationResult ; | ||
sh:focusNode <http://example.org/kb/UcoObject-6ae2b245-a8cd-45dc-9f40-5b2738879351> ; | ||
sh:resultMessage "Value Literal(\"Initial draft\") not in list ['Literal(\"Draft\" = None, datatype=core:ObjectStatusVocab)', 'Literal(\"Final\" = None, datatype=core:ObjectStatusVocab)', 'Literal(\"Deprecated\" = None, datatype=core:ObjectStatusVocab)']" ; | ||
sh:resultPath core:objectStatus ; | ||
sh:resultSeverity sh:Violation ; | ||
sh:sourceConstraintComponent sh:InConstraintComponent ; | ||
sh:sourceShape [ | ||
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:value "Initial draft" ; | ||
] , | ||
[ | ||
a sh:ValidationResult ; | ||
sh:focusNode <http://example.org/kb/UcoObject-6ae2b245-a8cd-45dc-9f40-5b2738879351> ; | ||
sh:resultMessage "Value is not Literal with datatype core:ObjectStatusVocab" ; | ||
sh:resultPath core:objectStatus ; | ||
sh:resultSeverity sh:Violation ; | ||
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; | ||
sh:sourceShape [ | ||
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:value "Initial draft" ; | ||
] | ||
; | ||
. | ||
|
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