Ontology Version: 2.2.0

cacontology-infrastructure:TakedownTargetCrossReferenceShape leaf node


URI

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

Label

Takedown Target Cross Reference Shape

Description

Validates that takedown operations target infrastructure.

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-infrastructure:InfrastructureTakedown
cacontology-infrastructure:hasTakedownCompleteness 1 xsd:double
cacontology-infrastructure:hasTakedownEffectiveness 1 xsd:double
cacontology-infrastructure:hasTakedownSpeed 1 xsd:string
cacontology-infrastructure:takedownDuration 0 1 xsd:decimal
0 1 xsd:dateTime
1 1 xsd:dateTime

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:TakedownTargetCrossReferenceShape a sh:NodeShape ;
    rdfs:label "Takedown Target Cross Reference Shape"@en ;
    rdfs:comment "Validates that takedown operations target infrastructure."@en ;
    sh:sparql [ sh:message "Infrastructure takedown should target specific infrastructure."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this a cacontology-infrastructure:InfrastructureTakedown .
                FILTER NOT EXISTS {
                    $this cacontology-infrastructure:targetsInfrastructure ?infrastructure .
                    ?infrastructure a cacontology-infrastructure:PlatformInfrastructure .
                }
            }
        """ ] ;
    sh:targetClass cacontology-infrastructure:InfrastructureTakedown .