Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions examples/illustrations/Oresteia/Oresteia-prov.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ kb:euripides-3696c710-161f-47af-9ae8-61b178611773

kb:investigative-action-30079255-a489-4dc2-ab5a-b9633a1cce95
a
time:ProperInterval ,
time:Interval ,
prov:Activity
;
time:hasBeginning kb:Start-9e0e52fc-16d6-5536-ab0c-d9728e2f35b8 ;
Expand All @@ -746,7 +746,7 @@ kb:investigative-action-30079255-a489-4dc2-ab5a-b9633a1cce95

kb:investigative-action-49e0d70c-f1bc-40a4-8866-45ddb8ad4e89
a
time:ProperInterval ,
time:Interval ,
prov:Activity
;
time:hasBeginning kb:Start-a2131571-c0fa-5fd0-97d6-777208d72098 ;
Expand Down Expand Up @@ -785,7 +785,7 @@ kb:investigative-action-49e0d70c-f1bc-40a4-8866-45ddb8ad4e89

kb:investigative-action-714255fe-ce2d-43e5-b0da-0910cc0e3997
a
time:ProperInterval ,
time:Interval ,
prov:Activity
;
time:hasBeginning kb:Start-e4a6a525-e2d0-5cea-a868-cf883f517ea5 ;
Expand Down Expand Up @@ -820,7 +820,7 @@ kb:investigative-action-714255fe-ce2d-43e5-b0da-0910cc0e3997

kb:investigative-action-7786ff3a-d40b-45a9-b65c-94ad10597b62
a
time:ProperInterval ,
time:Interval ,
prov:Activity
;
time:hasBeginning kb:Start-b80b4d9a-9047-557c-b253-de62930afbc0 ;
Expand Down Expand Up @@ -851,7 +851,7 @@ kb:investigative-action-7786ff3a-d40b-45a9-b65c-94ad10597b62

kb:investigative-action-b8fd94b9-ceae-4c2f-aa38-8cfaa98804fe
a
time:ProperInterval ,
time:Interval ,
prov:Activity ,
prov:Agent
;
Expand Down
16 changes: 3 additions & 13 deletions examples/illustrations/Oresteia/Oresteia.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"uco-role": "https://ontology.unifiedcyberontology.org/uco/role/",
"uco-tool": "https://ontology.unifiedcyberontology.org/uco/tool/",
"uco-types": "https://ontology.unifiedcyberontology.org/uco/types/",
"uco-vocabulary": "https://ontology.unifiedcyberontology.org/uco/vocabulary/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@id": "kb:bundle-3b13e958a-d975-41aa-b1bb-029d2b6707cd",
Expand Down Expand Up @@ -1069,10 +1068,7 @@
{
"@id": "kb:hash-bfa02feb-6184-5ca5-9ba3-272bf4367c5d",
"@type": "uco-types:Hash",
"uco-types:hashMethod": {
"@type": "uco-vocabulary:HashNameVocab",
"@value": "SHA256"
},
"uco-types:hashMethod": "SHA256",
"uco-types:hashValue": {
"@type": "xsd:hexBinary",
"@value": "7ea081166336119da78ee4bbdbd06840b94efe28988a2bdb0bcf2387a481e283"
Expand Down Expand Up @@ -1136,10 +1132,7 @@
{
"@id": "kb:hash-c6cc7dd6-1bf9-5454-9653-37caff09411d",
"@type": "uco-types:Hash",
"uco-types:hashMethod": {
"@type": "uco-vocabulary:HashNameVocab",
"@value": "SHA256"
},
"uco-types:hashMethod": "SHA256",
"uco-types:hashValue": {
"@type": "xsd:hexBinary",
"@value": "a13225720074371d56a4f4d5117fbb4953c5b1d316b31f21edcb7ed8fdf66c6e"
Expand Down Expand Up @@ -1204,10 +1197,7 @@
{
"@id": "kb:hash-1a6175e1-cef7-5ee3-8703-22f5f7a43603",
"@type": "uco-types:Hash",
"uco-types:hashMethod": {
"@type": "uco-vocabulary:HashNameVocab",
"@value": "SHA256"
},
"uco-types:hashMethod": "SHA256",
"uco-types:hashValue": {
"@type": "xsd:hexBinary",
"@value": "0611ea093d19b1c73a5285ff43741dd77f2a8d983c1c71044eb072e44f5dcb0a"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
@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 types: <https://ontology.unifiedcyberontology.org/uco/types/> .
@prefix vocabulary: <https://ontology.unifiedcyberontology.org/uco/vocabulary/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[]
a sh:ValidationReport ;
sh:conforms "false"^^xsd:boolean ;
sh:conforms "true"^^xsd:boolean ;
sh:result
[
a sh:ValidationResult ;
Expand All @@ -30,81 +28,6 @@
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape observable:AccountFacet-accountType-in-shape ;
sh:value "Phone" ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-1a6175e1-cef7-5ee3-8703-22f5f7a43603> ;
sh:resultMessage "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Warning ;
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
sh:sourceShape [
sh:datatype xsd:string ;
sh:message "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ;
sh:path types:hashMethod ;
sh:severity sh:Warning ;
] ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-1a6175e1-cef7-5ee3-8703-22f5f7a43603> ;
sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape types:Hash-hashMethod-in-shape ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-bfa02feb-6184-5ca5-9ba3-272bf4367c5d> ;
sh:resultMessage "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Warning ;
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
sh:sourceShape [
sh:datatype xsd:string ;
sh:message "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ;
sh:path types:hashMethod ;
sh:severity sh:Warning ;
] ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-bfa02feb-6184-5ca5-9ba3-272bf4367c5d> ;
sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape types:Hash-hashMethod-in-shape ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-c6cc7dd6-1bf9-5454-9653-37caff09411d> ;
sh:resultMessage "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Warning ;
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
sh:sourceShape [
sh:datatype xsd:string ;
sh:message "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ;
sh:path types:hashMethod ;
sh:severity sh:Warning ;
] ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-c6cc7dd6-1bf9-5454-9653-37caff09411d> ;
sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape types:Hash-hashMethod-in-shape ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
]
;
.
Expand Down
79 changes: 1 addition & 78 deletions examples/illustrations/Oresteia/Oresteia_validation-develop.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
@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 types: <https://ontology.unifiedcyberontology.org/uco/types/> .
@prefix vocabulary: <https://ontology.unifiedcyberontology.org/uco/vocabulary/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[]
a sh:ValidationReport ;
sh:conforms "false"^^xsd:boolean ;
sh:conforms "true"^^xsd:boolean ;
sh:result
[
a sh:ValidationResult ;
Expand All @@ -30,81 +28,6 @@
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape observable:AccountFacet-accountType-in-shape ;
sh:value "Phone" ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-1a6175e1-cef7-5ee3-8703-22f5f7a43603> ;
sh:resultMessage "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Warning ;
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
sh:sourceShape [
sh:datatype xsd:string ;
sh:message "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ;
sh:path types:hashMethod ;
sh:severity sh:Warning ;
] ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-1a6175e1-cef7-5ee3-8703-22f5f7a43603> ;
sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape types:Hash-hashMethod-in-shape ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-bfa02feb-6184-5ca5-9ba3-272bf4367c5d> ;
sh:resultMessage "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Warning ;
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
sh:sourceShape [
sh:datatype xsd:string ;
sh:message "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ;
sh:path types:hashMethod ;
sh:severity sh:Warning ;
] ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-bfa02feb-6184-5ca5-9ba3-272bf4367c5d> ;
sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape types:Hash-hashMethod-in-shape ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-c6cc7dd6-1bf9-5454-9653-37caff09411d> ;
sh:resultMessage "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Warning ;
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
sh:sourceShape [
sh:datatype xsd:string ;
sh:message "As of UCO 1.4.0, the datatype to use for types:hashMethod should be xsd:string. Not using xsd:string will be an error in UCO 2.0.0." ;
sh:path types:hashMethod ;
sh:severity sh:Warning ;
] ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-c6cc7dd6-1bf9-5454-9653-37caff09411d> ;
sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape types:Hash-hashMethod-in-shape ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
]
;
.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
@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 types: <https://ontology.unifiedcyberontology.org/uco/types/> .
@prefix vocabulary: <https://ontology.unifiedcyberontology.org/uco/vocabulary/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[]
a sh:ValidationReport ;
sh:conforms "false"^^xsd:boolean ;
sh:conforms "true"^^xsd:boolean ;
sh:result
[
a sh:ValidationResult ;
Expand All @@ -30,84 +28,6 @@
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape observable:AccountFacet-accountType-in-shape ;
sh:value "Phone" ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-1a6175e1-cef7-5ee3-8703-22f5f7a43603> ;
sh:resultMessage "Value is not Literal with datatype xsd:string" ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
sh:sourceShape [
sh:datatype xsd:string ;
sh:maxCount "1"^^xsd:integer ;
sh:minCount "1"^^xsd:integer ;
sh:nodeKind sh:Literal ;
sh:path types:hashMethod ;
] ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-1a6175e1-cef7-5ee3-8703-22f5f7a43603> ;
sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape types:Hash-hashMethod-in-shape ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-bfa02feb-6184-5ca5-9ba3-272bf4367c5d> ;
sh:resultMessage "Value is not Literal with datatype xsd:string" ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
sh:sourceShape [
sh:datatype xsd:string ;
sh:maxCount "1"^^xsd:integer ;
sh:minCount "1"^^xsd:integer ;
sh:nodeKind sh:Literal ;
sh:path types:hashMethod ;
] ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-bfa02feb-6184-5ca5-9ba3-272bf4367c5d> ;
sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape types:Hash-hashMethod-in-shape ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-c6cc7dd6-1bf9-5454-9653-37caff09411d> ;
sh:resultMessage "Value is not Literal with datatype xsd:string" ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
sh:sourceShape [
sh:datatype xsd:string ;
sh:maxCount "1"^^xsd:integer ;
sh:minCount "1"^^xsd:integer ;
sh:nodeKind sh:Literal ;
sh:path types:hashMethod ;
] ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
] ,
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/hash-c6cc7dd6-1bf9-5454-9653-37caff09411d> ;
sh:resultMessage "Value is not member of the vocabulary HashNameVocab." ;
sh:resultPath types:hashMethod ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape types:Hash-hashMethod-in-shape ;
sh:value "SHA256"^^vocabulary:HashNameVocab ;
]
;
.
Expand Down
Loading
Loading