https://cacontology.projectvic.org/infrastructure/shapes#InfrastructureDataQualityShape
Enhanced data quality validation for infrastructure with gUFO quality consistency rules.
Instances of cacontology-infrastructure:PlatformInfrastructure can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-infrastructure:PlatformInfrastructure | ||||
| cacontology-infrastructure:hasInfrastructureBeginPoint | 1 |
xsd:dateTimeStamp
|
||
| cacontology-infrastructure:hasInfrastructureEndPoint | 1 |
xsd:dateTimeStamp
|
||
| cacontology-infrastructure:hasInfrastructurePerformance | 1 |
xsd:string
|
||
| cacontology-infrastructure:hasInfrastructureReliability | 1 |
xsd:double
|
||
| cacontology-infrastructure:hasInfrastructureScalability | 1 |
xsd:string
|
||
| cacontology-infrastructure:hasInfrastructureVulnerability | 1 |
xsd:string
|
||
| 0 | 1 |
xsd:string
|
||
@prefix cacontology-infrastructure: <https://cacontology.projectvic.org/infrastructure#> .
@prefix cacontology-infrastructure-shapes: <https://cacontology.projectvic.org/infrastructure/shapes#> .
@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#> .
cacontology-infrastructure-shapes:InfrastructureDataQualityShape a sh:NodeShape ;
rdfs:label "Infrastructure Data Quality Shape"@en ;
rdfs:comment "Enhanced data quality validation for infrastructure with gUFO quality consistency rules."@en ;
sh:property [ sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:maxLength 200 ;
sh:message "Infrastructure label should be between 5 and 200 characters when provided."@en ;
sh:minCount 0 ;
sh:minLength 5 ;
sh:path rdfs:label ],
[ sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:maxLength 1000 ;
sh:message "Infrastructure comment should be between 10 and 1000 characters when provided."@en ;
sh:minCount 0 ;
sh:minLength 10 ;
sh:path rdfs:comment ] ;
sh:sparql [ sh:message "Infrastructure performance and reliability should be correlated (gUFO quality consistency)."@en ;
sh:select """
SELECT $this
WHERE {
$this cacontology-infrastructure:hasInfrastructurePerformance ?performance ;
cacontology-infrastructure:hasInfrastructureReliability ?reliability .
{
FILTER (?performance = "optimal" && ?reliability < 0.9)
} UNION {
FILTER (?performance = "excellent" && (?reliability < 0.7 || ?reliability > 0.95))
} UNION {
FILTER (?performance = "poor" && ?reliability > 0.4)
}
}
""" ],
[ sh:message "Infrastructure vulnerability and security should be inversely correlated (gUFO quality consistency)."@en ;
sh:select """
SELECT $this
WHERE {
$this cacontology-infrastructure:hasInfrastructureVulnerability ?vulnerability ;
cacontology-infrastructure:protectedBy ?security .
?security cacontology-infrastructure:hasSecurityStrength ?strength .
{
FILTER (?vulnerability = "critical" && ?strength NOT IN ("strong", "military_grade"))
} UNION {
FILTER (?vulnerability = "minimal" && ?strength NOT IN ("weak", "basic"))
}
}
""" ] ;
sh:targetClass cacontology-infrastructure:PlatformInfrastructure .