Ontology Version: 2.2.0

cacontology-infrastructure-shapes:HighPerformanceInfrastructureRule leaf node


URI

https://cacontology.projectvic.org/infrastructure/shapes#HighPerformanceInfrastructureRule

Label

High Performance Infrastructure Rule

Description

Advanced gUFO business rule: High performance infrastructure should have excellent reliability and low vulnerability.

Shape Properties

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

Implementation

@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#> .
cacontology-infrastructure-shapes:HighPerformanceInfrastructureRule a sh:NodeShape ;
    rdfs:label "High Performance Infrastructure Rule"@en ;
    rdfs:comment "Advanced gUFO business rule: High performance infrastructure should have excellent reliability and low vulnerability."@en ;
    sh:sparql [ sh:message "Excellent or optimal performance infrastructure must have high reliability and low vulnerability (gUFO business rule)."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-infrastructure:hasInfrastructurePerformance ?performance .
                FILTER (?performance IN ("excellent", "optimal"))
                {
                    FILTER NOT EXISTS {
                        $this cacontology-infrastructure:hasInfrastructureReliability ?reliability .
                        FILTER (?reliability >= 0.8)
                    }
                } UNION {
                    FILTER NOT EXISTS {
                        $this cacontology-infrastructure:hasInfrastructureVulnerability ?vulnerability .
                        FILTER (?vulnerability IN ("minimal", "low"))
                    }
                }
            }
        """ ] ;
    sh:targetClass cacontology-infrastructure:PlatformInfrastructure .