https://cacontology.projectvic.org/partnerships/shapes#CooperationEventTypeValidationShape
Validates gUFO Event type consistency for cooperation events.
Instances of cacontology-partnerships:TechnologyCooperation can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|---|
@prefix cacontology-partnerships: <https://cacontology.projectvic.org/partnerships#> .
@prefix cacontology-partnerships-shapes: <https://cacontology.projectvic.org/partnerships/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-partnerships-shapes:CooperationEventTypeValidationShape a sh:NodeShape ;
rdfs:label "Cooperation Event Type Validation Shape"@en ;
rdfs:comment "Validates gUFO Event type consistency for cooperation events."@en ;
sh:property [ sh:hasValue gufo:Event ;
sh:message "Technology cooperation must be typed as gUFO Event."@en ;
sh:minCount 1 ;
sh:path rdf:type ] ;
sh:sparql [ sh:message "Cooperation 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 ?eventClass .
?eventClass rdfs:subClassOf* uco-action:Action .
}
}
""" ] ;
sh:targetClass cacontology-partnerships:TechnologyCooperation .