From 2fa28fa67e5f19c45c90f3fbf9ca8201e32da86a Mon Sep 17 00:00:00 2001 From: Alex Nelson Date: Mon, 22 Aug 2022 14:19:40 -0400 Subject: [PATCH] Regenerate Make-managed files References: * https://github.com/ucoProject/UCO/issues/432 Signed-off-by: Alex Nelson --- .../asgard/src/asgard_validation-unstable.ttl | 30 ++ .../src/crossover_wmd_validation-unstable.ttl | 50 ++ .../owl_trafficking_validation-unstable.ttl | 29 ++ ontology/CASE-unstable.ttl | 480 ++++++++++-------- 4 files changed, 366 insertions(+), 223 deletions(-) diff --git a/examples/asgard/src/asgard_validation-unstable.ttl b/examples/asgard/src/asgard_validation-unstable.ttl index f9241062..cde06a41 100644 --- a/examples/asgard/src/asgard_validation-unstable.ttl +++ b/examples/asgard/src/asgard_validation-unstable.ttl @@ -1,8 +1,10 @@ +@prefix core: . @prefix investigation: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix tool: . @prefix vocab: . @prefix xsd: . @@ -60,6 +62,34 @@ ) ; sh:path investigation:investigationForm ; ] ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value does not have class core:Facet" ; + sh:resultPath core:hasFacet ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:ClassConstraintComponent ; + sh:sourceShape [ + sh:class core:Facet ; + sh:nodeKind sh:BlankNodeOrIRI ; + sh:path core:hasFacet ; + ] ; + sh:value [ + a tool:ToolConfigurationTypeFacet ; + tool:configurationSettings + [ + a tool:ConfigurationSettingType ; + tool:itemName "ExtractionMethod" ; + tool:itemValue "iOS_Backup" ; + ] , + [ + a tool:ConfigurationSettingType ; + tool:itemName "ExtractionType" ; + tool:itemValue "File System" ; + ] + ; + ] ; ] ; . diff --git a/examples/crossover_wmd/src/crossover_wmd_validation-unstable.ttl b/examples/crossover_wmd/src/crossover_wmd_validation-unstable.ttl index cd9baea8..f48a86b7 100644 --- a/examples/crossover_wmd/src/crossover_wmd_validation-unstable.ttl +++ b/examples/crossover_wmd/src/crossover_wmd_validation-unstable.ttl @@ -7,6 +7,7 @@ @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix tool: . @prefix vocab: . @prefix vocabulary: . @prefix xsd: . @@ -56,6 +57,55 @@ ] ; sh:value ; ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value does not have class core:Facet" ; + sh:resultPath core:hasFacet ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:ClassConstraintComponent ; + sh:sourceShape [ + sh:class core:Facet ; + sh:nodeKind sh:BlankNodeOrIRI ; + sh:path core:hasFacet ; + ] ; + sh:value [ + a tool:ToolConfigurationTypeFacet ; + tool:configurationSettings [ + a tool:ConfigurationSettingType ; + tool:itemName "OutputFormat" ; + tool:itemValue "XML" ; + ] ; + ] ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value does not have class core:Facet" ; + sh:resultPath core:hasFacet ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:ClassConstraintComponent ; + sh:sourceShape [ + sh:class core:Facet ; + sh:nodeKind sh:BlankNodeOrIRI ; + sh:path core:hasFacet ; + ] ; + sh:value [ + a tool:ToolConfigurationTypeFacet ; + tool:configurationSettings + [ + a tool:ConfigurationSettingType ; + tool:itemName "DeviceInfoConnectionType" ; + tool:itemValue "Cable No. 130" ; + ] , + [ + a tool:ConfigurationSettingType ; + tool:itemName "ExtractionType" ; + tool:itemValue "Physical" ; + ] + ; + ] ; + ] , [ a sh:ValidationResult ; sh:focusNode ; diff --git a/examples/owl_trafficking/src/owl_trafficking_validation-unstable.ttl b/examples/owl_trafficking/src/owl_trafficking_validation-unstable.ttl index a6cbc117..b77c8bac 100644 --- a/examples/owl_trafficking/src/owl_trafficking_validation-unstable.ttl +++ b/examples/owl_trafficking/src/owl_trafficking_validation-unstable.ttl @@ -5,6 +5,7 @@ @prefix rdf: . @prefix rdfs: . @prefix sh: . +@prefix tool: . @prefix vocab: . @prefix vocabulary: . @prefix xsd: . @@ -65,6 +66,34 @@ ] ; sh:value "(list of uuids)" ; ] , + [ + a sh:ValidationResult ; + sh:focusNode ; + sh:resultMessage "Value does not have class core:Facet" ; + sh:resultPath core:hasFacet ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:ClassConstraintComponent ; + sh:sourceShape [ + sh:class core:Facet ; + sh:nodeKind sh:BlankNodeOrIRI ; + sh:path core:hasFacet ; + ] ; + sh:value [ + a tool:ToolConfigurationTypeFacet ; + tool:configurationSettings + [ + a tool:ConfigurationSettingType ; + tool:itemName "DeviceInfoConnectionType" ; + tool:itemValue "Cable No. 10" ; + ] , + [ + a tool:ConfigurationSettingType ; + tool:itemName "ExtractionType" ; + tool:itemValue "Physical" ; + ] + ; + ] ; + ] , [ a sh:ValidationResult ; sh:focusNode [ diff --git a/ontology/CASE-unstable.ttl b/ontology/CASE-unstable.ttl index abb5b7d6..7f971b63 100644 --- a/ontology/CASE-unstable.ttl +++ b/ontology/CASE-unstable.ttl @@ -5,6 +5,7 @@ # imports: https://ontology.unifiedcyberontology.org/co # imports: https://ontology.unifiedcyberontology.org/owl # imports: https://ontology.unifiedcyberontology.org/uco/action +# imports: https://ontology.unifiedcyberontology.org/uco/configuration # imports: https://ontology.unifiedcyberontology.org/uco/core # imports: https://ontology.unifiedcyberontology.org/uco/identity # imports: https://ontology.unifiedcyberontology.org/uco/location @@ -21,6 +22,7 @@ @prefix action: . @prefix co: . +@prefix configuration: . @prefix core: . @prefix dcterms: . @prefix identity: . @@ -104,6 +106,14 @@ ; . + + a owl:Ontology ; + rdfs:label "uco-configuration"@en ; + rdfs:comment "This ontology defines classes and properties for characterizing configurations."@en-US ; + rdfs:seeAlso ; + owl:imports ; + . + a owl:Ontology ; rdfs:label "uco-core"@en ; @@ -138,6 +148,7 @@ rdfs:label "uco-observable"@en ; owl:imports , + , , , , @@ -167,7 +178,10 @@ a owl:Ontology ; rdfs:label "uco-tool"@en ; - owl:imports ; + owl:imports + , + + ; . @@ -1495,6 +1509,212 @@ action:value rdfs:range xsd:string ; . +configuration:Configuration + a + owl:Class , + sh:NodeShape + ; + rdfs:subClassOf core:UcoObject ; + rdfs:label "Configuration"@en ; + rdfs:comment "A configuration is a grouping of characteristics unique to a set of parameters or initial settings for the use of a tool, application, software, or other cyber object."@en ; + rdfs:seeAlso ; + sh:property + [ + sh:class configuration:ConfigurationEntry ; + sh:nodeKind sh:BlankNodeOrIRI ; + sh:path configuration:configurationEntry ; + ] , + [ + sh:class configuration:Dependency ; + sh:nodeKind sh:BlankNodeOrIRI ; + sh:path configuration:dependencies ; + ] , + [ + sh:datatype xsd:string ; + sh:nodeKind sh:Literal ; + sh:path configuration:usageContextAssumptions ; + ] + ; + sh:targetClass configuration:Configuration ; + . + +configuration:ConfigurationEntry + a + owl:Class , + sh:NodeShape + ; + rdfs:label "ConfigurationEntry"@en ; + rdfs:comment "A configuration entry is a grouping of characteristics unique to a particular parameter or initial setting for the use of a tool, application, software, or other cyber object."@en ; + sh:property + [ + sh:class core:UcoObject ; + sh:nodeKind sh:BlankNodeOrIRI ; + sh:path configuration:itemObject ; + ] , + [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path configuration:itemDescription ; + ] , + [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path configuration:itemName ; + ] , + [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path configuration:itemType ; + ] , + [ + sh:datatype xsd:string ; + sh:nodeKind sh:Literal ; + sh:path configuration:itemValue ; + ] + ; + sh:targetClass configuration:ConfigurationEntry ; + sh:xone ( + [ + sh:property + [ + sh:maxCount "0"^^xsd:integer ; + sh:path configuration:itemObject ; + ] , + [ + sh:maxCount "0"^^xsd:integer ; + sh:path configuration:itemValue ; + ] + ; + ] + [ + sh:property [ + sh:minCount "1"^^xsd:integer ; + sh:path configuration:itemObject ; + ] ; + ] + [ + sh:property [ + sh:minCount "1"^^xsd:integer ; + sh:path configuration:itemValue ; + ] ; + ] + ) ; + . + +configuration:Dependency + a + owl:Class , + sh:NodeShape + ; + rdfs:label "Dependency"@en ; + rdfs:comment "A dependency is a grouping of characteristics unique to something that a tool or other software relies on to function as intended."@en ; + sh:property + [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path configuration:dependencyDescription ; + ] , + [ + sh:datatype xsd:string ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path configuration:dependencyType ; + ] + ; + sh:targetClass configuration:Dependency ; + . + +configuration:configurationEntry + a owl:ObjectProperty ; + rdfs:comment "A single configuration setting entry item for a tool or other software."@en ; + rdfs:range configuration:ConfigurationEntry ; + rdfs:seeAlso ; + . + +configuration:dependencies + a owl:ObjectProperty ; + rdfs:label "dependencies"@en ; + rdfs:comment "The relevant configuration dependencies for a tool, application, software, or other cyber object."@en ; + rdfs:range configuration:Dependency ; + . + +configuration:dependencyDescription + a owl:DatatypeProperty ; + rdfs:label "dependencyDescription"@en ; + rdfs:comment "A description of a tool or other software dependency."@en ; + rdfs:range xsd:string ; + . + +configuration:dependencyType + a owl:DatatypeProperty ; + rdfs:label "dependencyType"@en ; + rdfs:comment "The type of a tool or other software dependency."@en ; + rdfs:range xsd:string ; + . + +configuration:isConfigurationOf + a + owl:ObjectProperty , + owl:IrreflexiveProperty + ; + rdfs:label "isConfigurationOf"@en ; + rdfs:comment "The object which has been configured to run in a more specified manner than another object. This property is expected to have a more specific range when associated with a class, such as a configured Tool having this property have a range of a Tool."@en ; + rdfs:range core:UcoObject ; + . + +configuration:itemDescription + a owl:DatatypeProperty ; + rdfs:label "itemDescription"@en ; + rdfs:comment "A description of a configuration setting entry item."@en ; + rdfs:range xsd:string ; + . + +configuration:itemName + a owl:DatatypeProperty ; + rdfs:label "itemName"@en ; + rdfs:comment "The name of a configuration setting entry item."@en ; + rdfs:range xsd:string ; + . + +configuration:itemObject + a owl:ObjectProperty ; + rdfs:comment "The structured value of a configuration setting entry instance."@en ; + rdfs:range core:UcoObject ; + rdfs:seeAlso ; + . + +configuration:itemType + a owl:DatatypeProperty ; + rdfs:label "itemType"@en ; + rdfs:comment "The type of a configuration setting entry item."@en ; + rdfs:range xsd:string ; + . + +configuration:itemValue + a owl:DatatypeProperty ; + rdfs:label "itemValue"@en ; + rdfs:comment "The value of a configuration setting entry instance."@en ; + rdfs:range xsd:string ; + . + +configuration:usageContextAssumptions + a owl:DatatypeProperty ; + rdfs:label "usageContextAssumptions"@en ; + rdfs:comment "Description of the various relevant usage context assumptions for a tool or other software ."@en ; + rdfs:range xsd:string ; + . + +configuration:usesConfiguration + a owl:ObjectProperty ; + rdfs:label "usesConfiguration"@en ; + rdfs:comment "A configuration used by an object."@en ; + rdfs:range configuration:Configuration ; + . + core:Annotation a owl:Class , @@ -4082,6 +4302,31 @@ observable:ComputerSpecificationFacet sh:targetClass observable:ComputerSpecificationFacet ; . +observable:ConfiguredSoftware + a + owl:Class , + sh:NodeShape + ; + rdfs:subClassOf observable:Software ; + rdfs:label "ConfiguredSoftware"@en ; + rdfs:comment "A ConfiguredSoftware is a Software that is known to be configured to run in a more specified manner than some unconfigured or less-configured Software."@en ; + sh:property + [ + sh:class configuration:Configuration ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:BlankNodeOrIRI ; + sh:path configuration:usesConfiguration ; + ] , + [ + sh:class observable:Software ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:BlankNodeOrIRI ; + sh:path configuration:isConfigurationOf ; + ] + ; + sh:targetClass observable:ConfiguredSoftware ; + . + observable:Contact a owl:Class , @@ -16152,29 +16397,6 @@ tool:AnalyticTool sh:targetClass tool:AnalyticTool ; . -tool:BuildConfigurationType - a - owl:Class , - sh:NodeShape - ; - rdfs:label "BuildConfigurationType"@en ; - rdfs:comment "A build configuration type is a characterization of how a particular version of software can or should be built."@en ; - sh:property - [ - sh:class tool:ConfigurationSettingType ; - sh:nodeKind sh:BlankNodeOrIRI ; - sh:path tool:configurationSettings ; - ] , - [ - sh:datatype xsd:string ; - sh:maxCount "1"^^xsd:integer ; - sh:nodeKind sh:Literal ; - sh:path tool:configurationSettingDescription ; - ] - ; - sh:targetClass tool:BuildConfigurationType ; - . - tool:BuildFacet a owl:Class , @@ -16201,7 +16423,7 @@ tool:BuildInformationType rdfs:comment "A build information type is a grouping of characteristics that describe how a particular version of software was converted from source code to executable code."@en ; sh:property [ - sh:class tool:BuildConfigurationType ; + sh:class configuration:Configuration ; sh:maxCount "1"^^xsd:integer ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path tool:buildConfiguration ; @@ -16328,86 +16550,28 @@ tool:CompilerType sh:targetClass tool:CompilerType ; . -tool:ConfigurationSettingType +tool:ConfiguredTool a owl:Class , sh:NodeShape ; - rdfs:label "ConfigurationSettingType"@en ; - rdfs:comment "A configuration setting type is a grouping of characteristics unique to a particular parameter or initial setting for the use of a tool, application, or other cyber object."@en ; + rdfs:subClassOf tool:Tool ; + rdfs:label "ConfiguredTool"@en ; + rdfs:comment "A ConfiguredTool is a Tool that is known to be configured to run in a more specified manner than some unconfigured or less-configured Tool."@en ; sh:property [ - sh:class core:UcoObject ; + sh:class configuration:Configuration ; sh:maxCount "1"^^xsd:integer ; sh:nodeKind sh:BlankNodeOrIRI ; - sh:path tool:itemObject ; + sh:path configuration:usesConfiguration ; ] , [ - sh:datatype xsd:string ; + sh:class tool:Tool ; sh:maxCount "1"^^xsd:integer ; - sh:nodeKind sh:Literal ; - sh:path tool:itemDescription ; - ] , - [ - sh:datatype xsd:string ; - sh:maxCount "1"^^xsd:integer ; - sh:nodeKind sh:Literal ; - sh:path tool:itemName ; - ] , - [ - sh:datatype xsd:string ; - sh:maxCount "1"^^xsd:integer ; - sh:nodeKind sh:Literal ; - sh:path tool:itemType ; - ] , - [ - sh:datatype xsd:string ; - sh:maxCount "1"^^xsd:integer ; - sh:nodeKind sh:Literal ; - sh:path tool:itemValue ; - ] - ; - sh:targetClass tool:ConfigurationSettingType ; - sh:xone ( - [ - sh:property - [ - sh:maxCount "0"^^xsd:integer ; - sh:path tool:itemObject ; - ] , - [ - sh:maxCount "0"^^xsd:integer ; - sh:path tool:itemValue ; - ] - ; - ] - [ - sh:property [ - sh:minCount "1"^^xsd:integer ; - sh:path tool:itemObject ; - ] ; - ] - [ - sh:property [ - sh:minCount "1"^^xsd:integer ; - sh:path tool:itemValue ; - ] ; + sh:nodeKind sh:BlankNodeOrIRI ; + sh:path configuration:isConfigurationOf ; ] - ) ; - . - -tool:ConfiguredTool - a - owl:Class , - sh:NodeShape ; - rdfs:subClassOf tool:Tool ; - sh:property [ - sh:class tool:Tool ; - sh:maxCount "1"^^xsd:integer ; - sh:nodeKind sh:BlankNodeOrIRI ; - sh:path tool:isConfigurationOf ; - ] ; sh:targetClass tool:ConfiguredTool ; . @@ -16422,30 +16586,6 @@ tool:DefensiveTool sh:targetClass tool:DefensiveTool ; . -tool:DependencyType - a - owl:Class , - sh:NodeShape - ; - rdfs:label "DependencyType"@en ; - rdfs:comment "A dependency type is a grouping of characteristics unique to something that a tool or other software relies on to function as intended."@en ; - sh:property - [ - sh:datatype xsd:string ; - sh:maxCount "1"^^xsd:integer ; - sh:nodeKind sh:Literal ; - sh:path tool:dependencyDescription ; - ] , - [ - sh:datatype xsd:string ; - sh:maxCount "1"^^xsd:integer ; - sh:nodeKind sh:Literal ; - sh:path tool:dependencyType ; - ] - ; - sh:targetClass tool:DependencyType ; - . - tool:LibraryType a owl:Class , @@ -16523,34 +16663,11 @@ tool:Tool sh:targetClass tool:Tool ; . -tool:ToolConfigurationTypeFacet - a - owl:Class , - sh:NodeShape - ; - rdfs:subClassOf core:Facet ; - rdfs:label "ToolConfigurationTypeFacet"@en ; - rdfs:comment "A tool configuration type facet is a grouping of characteristics unique to the instantial settings and setup of a tool."@en ; - sh:property - [ - sh:class tool:DependencyType ; - sh:nodeKind sh:BlankNodeOrIRI ; - sh:path tool:dependencies ; - ] , - [ - sh:datatype xsd:string ; - sh:nodeKind sh:Literal ; - sh:path tool:usageContextAssumptions ; - ] - ; - sh:targetClass tool:ToolConfigurationTypeFacet ; - . - tool:buildConfiguration a owl:ObjectProperty ; rdfs:label "buildConfiguration"@en ; rdfs:comment "How the build utility was configured for a particular build of a particular software."@en ; - rdfs:range tool:BuildConfigurationType ; + rdfs:range configuration:Configuration ; . tool:buildID @@ -16637,20 +16754,6 @@ tool:compilers rdfs:range tool:CompilerType ; . -tool:configurationSettingDescription - a owl:DatatypeProperty ; - rdfs:label "configurationSettingDescription"@en ; - rdfs:comment "Description of the configuration settings for a particular build of a particular software."@en ; - rdfs:range xsd:string ; - . - -tool:configurationSettings - a owl:ObjectProperty ; - rdfs:label "configurationSettings"@en ; - rdfs:comment "The configuration settings for a particular build of a particular software."@en ; - rdfs:range tool:ConfigurationSettingType ; - . - tool:cpeid a owl:DatatypeProperty ; rdfs:label "cpeid"@en ; @@ -16665,68 +16768,6 @@ tool:creator rdfs:range identity:Identity ; . -tool:dependencies - a owl:ObjectProperty ; - rdfs:label "dependencies"@en ; - rdfs:comment "The relevant dependencies for a tool."@en ; - rdfs:range tool:DependencyType ; - . - -tool:dependencyDescription - a owl:DatatypeProperty ; - rdfs:label "dependencyDescription"@en ; - rdfs:comment "A description of a tool dependency."@en ; - rdfs:range xsd:string ; - . - -tool:dependencyType - a owl:DatatypeProperty ; - rdfs:label "dependencyType"@en ; - rdfs:comment "The type of a tool dependency."@en ; - rdfs:range xsd:string ; - . - -tool:isConfigurationOf - a - owl:ObjectProperty , - owl:IrreflexiveProperty - ; - rdfs:range tool:Tool ; - . - -tool:itemDescription - a owl:DatatypeProperty ; - rdfs:label "itemDescription"@en ; - rdfs:comment "A description of a configuration item."@en ; - rdfs:range xsd:string ; - . - -tool:itemName - a owl:DatatypeProperty ; - rdfs:label "itemName"@en ; - rdfs:comment "The name of a configuration item."@en ; - rdfs:range xsd:string ; - . - -tool:itemObject - a owl:ObjectProperty ; - rdfs:range core:UcoObject ; - . - -tool:itemType - a owl:DatatypeProperty ; - rdfs:label "itemType"@en ; - rdfs:comment "The type of a configuration item."@en ; - rdfs:range xsd:string ; - . - -tool:itemValue - a owl:DatatypeProperty ; - rdfs:label "itemValue"@en ; - rdfs:comment "The value of a configuration setting instance."@en ; - rdfs:range xsd:string ; - . - tool:libraries a owl:ObjectProperty ; rdfs:label "libraries"@en ; @@ -16776,13 +16817,6 @@ tool:toolType rdfs:range xsd:string ; . -tool:usageContextAssumptions - a owl:DatatypeProperty ; - rdfs:label "usageContextAssumptions"@en ; - rdfs:comment "dDescriptions of the various relevant usage context assumptions for this tool ."@en ; - rdfs:range xsd:string ; - . - tool:version a owl:DatatypeProperty ; rdfs:label "version"@en ;