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: 2 additions & 8 deletions examples/asgard/asgard.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,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 @@ -389,10 +386,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
78 changes: 11 additions & 67 deletions examples/asgard/asgard_validation-develop-2.0.0.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,77 +2,21 @@
@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 uco-observable: <https://ontology.unifiedcyberontology.org/uco/observable/> .
@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:result
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/account-facet-31df5a8a-fb9f-4fa6-85f9-cea13f4b9f03> ;
sh:resultMessage "Value is not member of the vocabulary AccountTypeVocab." ;
sh:resultPath uco-observable:accountType ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape uco-observable:AccountFacet-accountType-in-shape ;
sh:value "Phone" ;
] ,
[
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 ;
]
;
sh:conforms "true"^^xsd:boolean ;
sh:result [
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/account-facet-31df5a8a-fb9f-4fa6-85f9-cea13f4b9f03> ;
sh:resultMessage "Value is not member of the vocabulary AccountTypeVocab." ;
sh:resultPath uco-observable:accountType ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape uco-observable:AccountFacet-accountType-in-shape ;
sh:value "Phone" ;
] ;
.

76 changes: 11 additions & 65 deletions examples/asgard/asgard_validation-develop.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,75 +2,21 @@
@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 uco-observable: <https://ontology.unifiedcyberontology.org/uco/observable/> .
@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:result
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/account-facet-31df5a8a-fb9f-4fa6-85f9-cea13f4b9f03> ;
sh:resultMessage "Value is not member of the vocabulary AccountTypeVocab." ;
sh:resultPath uco-observable:accountType ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape uco-observable:AccountFacet-accountType-in-shape ;
sh:value "Phone" ;
] ,
[
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 ;
]
;
sh:conforms "true"^^xsd:boolean ;
sh:result [
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/account-facet-31df5a8a-fb9f-4fa6-85f9-cea13f4b9f03> ;
sh:resultMessage "Value is not member of the vocabulary AccountTypeVocab." ;
sh:resultPath uco-observable:accountType ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape uco-observable:AccountFacet-accountType-in-shape ;
sh:value "Phone" ;
] ;
.

78 changes: 11 additions & 67 deletions examples/asgard/asgard_validation-unstable-2.0.0.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,77 +2,21 @@
@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 uco-observable: <https://ontology.unifiedcyberontology.org/uco/observable/> .
@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:result
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/account-facet-31df5a8a-fb9f-4fa6-85f9-cea13f4b9f03> ;
sh:resultMessage "Value is not member of the vocabulary AccountTypeVocab." ;
sh:resultPath uco-observable:accountType ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape uco-observable:AccountFacet-accountType-in-shape ;
sh:value "Phone" ;
] ,
[
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 ;
]
;
sh:conforms "true"^^xsd:boolean ;
sh:result [
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/account-facet-31df5a8a-fb9f-4fa6-85f9-cea13f4b9f03> ;
sh:resultMessage "Value is not member of the vocabulary AccountTypeVocab." ;
sh:resultPath uco-observable:accountType ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape uco-observable:AccountFacet-accountType-in-shape ;
sh:value "Phone" ;
] ;
.

76 changes: 11 additions & 65 deletions examples/asgard/asgard_validation-unstable.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,75 +2,21 @@
@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 uco-observable: <https://ontology.unifiedcyberontology.org/uco/observable/> .
@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:result
[
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/account-facet-31df5a8a-fb9f-4fa6-85f9-cea13f4b9f03> ;
sh:resultMessage "Value is not member of the vocabulary AccountTypeVocab." ;
sh:resultPath uco-observable:accountType ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape uco-observable:AccountFacet-accountType-in-shape ;
sh:value "Phone" ;
] ,
[
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 ;
]
;
sh:conforms "true"^^xsd:boolean ;
sh:result [
a sh:ValidationResult ;
sh:focusNode <http://example.org/kb/account-facet-31df5a8a-fb9f-4fa6-85f9-cea13f4b9f03> ;
sh:resultMessage "Value is not member of the vocabulary AccountTypeVocab." ;
sh:resultPath uco-observable:accountType ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape uco-observable:AccountFacet-accountType-in-shape ;
sh:value "Phone" ;
] ;
.

Loading
Loading