Ontology Version: 2.2.0

cacontology-infrastructure:CapacityValidationShape leaf node


URI

https://cacontology.projectvic.org/infrastructure#CapacityValidationShape

Label

Capacity Validation Shape

Description

Validates infrastructure capacity specifications.

Shape Properties

Instances of cacontology-infrastructure:ServerInfrastructure can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-infrastructure:ServerInfrastructure
cacontology-infrastructure:cloudPlatform 0 1 xsd:string
cacontology-infrastructure:serverCount 0 1 xsd:nonNegativeInteger
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-infrastructure:CapacityValidationShape a sh:NodeShape ;
    rdfs:label "Capacity Validation Shape"@en ;
    rdfs:comment "Validates infrastructure capacity specifications."@en ;
    sh:sparql [ sh:message "Large-scale infrastructure should have appropriate capacity specifications."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this a ?infraType .
                FILTER (?infraType IN (
                    cacontology-infrastructure:ServerInfrastructure,
                    cacontology-infrastructure:ContentDeliveryNetwork,
                    cacontology-infrastructure:DatabaseInfrastructure
                ))
                FILTER NOT EXISTS {
                    { $this cacontology-infrastructure:serverCount ?count } UNION
                    { $this cacontology-infrastructure:bandwidthCapacity ?bandwidth } UNION
                    { $this cacontology-infrastructure:storageCapacity ?storage }
                }
            }
        """ ] ;
    sh:targetClass cacontology-infrastructure:ContentDeliveryNetwork,
        cacontology-infrastructure:DatabaseInfrastructure,
        cacontology-infrastructure:ServerInfrastructure .