https://cacontology.projectvic.org/infrastructure/shapes#TakedownEventTypeValidationShape
Validates gUFO Event type consistency for takedown events.
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
|
||
@prefix cacontology-infrastructure: <https://cacontology.projectvic.org/infrastructure#> .
@prefix cacontology-infrastructure-shapes: <https://cacontology.projectvic.org/infrastructure/shapes#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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:TakedownEventTypeValidationShape a sh:NodeShape ;
rdfs:label "Takedown Event Type Validation Shape"@en ;
rdfs:comment "Validates gUFO Event type consistency for takedown events."@en ;
sh:property [ sh:hasValue gufo:Event ;
sh:message "Infrastructure takedown must be typed as gUFO Event."@en ;
sh:minCount 1 ;
sh:path rdf:type ] ;
sh:sparql [ sh:message "Takedown events must be properly typed as gUFO Event and extend UCO Action."@en ;
sh:select """
SELECT $this
WHERE {
$this rdf:type gufo:Event .
FILTER NOT EXISTS {
$this rdf:type ?actionClass .
?actionClass rdfs:subClassOf* uco-action:Action .
}
}
""" ] ;
sh:targetClass cacontology-infrastructure:InfrastructureTakedown .