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
80 changes: 64 additions & 16 deletions examples/asgard/asgard_validation-develop-2.0.0.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,75 @@
@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 "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 outside the default vocabulary AccountTypeVocab." ;
sh:resultPath uco-observable:accountType ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
sh:sourceShape [
sh:datatype vocabulary:AccountTypeVocab ;
sh:message "Value is outside the default vocabulary AccountTypeVocab." ;
sh:path uco-observable:accountType ;
sh:severity sh:Info ;
] ;
sh:value "Phone" ;
] ;
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 ;
]
;
.

80 changes: 64 additions & 16 deletions examples/asgard/asgard_validation-develop.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,75 @@
@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 "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 outside the default vocabulary AccountTypeVocab." ;
sh:resultPath uco-observable:accountType ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
sh:sourceShape [
sh:datatype vocabulary:AccountTypeVocab ;
sh:message "Value is outside the default vocabulary AccountTypeVocab." ;
sh:path uco-observable:accountType ;
sh:severity sh:Info ;
] ;
sh:value "Phone" ;
] ;
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 ;
]
;
.

82 changes: 66 additions & 16 deletions examples/asgard/asgard_validation-unstable-2.0.0.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,77 @@
@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 "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 outside the default vocabulary AccountTypeVocab." ;
sh:resultPath uco-observable:accountType ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
sh:sourceShape [
sh:datatype vocabulary:AccountTypeVocab ;
sh:message "Value is outside the default vocabulary AccountTypeVocab." ;
sh:path uco-observable:accountType ;
sh:severity sh:Info ;
] ;
sh:value "Phone" ;
] ;
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 ;
]
;
.

80 changes: 64 additions & 16 deletions examples/asgard/asgard_validation-unstable.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,75 @@
@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 "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 outside the default vocabulary AccountTypeVocab." ;
sh:resultPath uco-observable:accountType ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
sh:sourceShape [
sh:datatype vocabulary:AccountTypeVocab ;
sh:message "Value is outside the default vocabulary AccountTypeVocab." ;
sh:path uco-observable:accountType ;
sh:severity sh:Info ;
] ;
sh:value "Phone" ;
] ;
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 ;
]
;
.

Loading
Loading