Ontology Version: 2.2.0

cacontology-coord:CoordinationCrossReferenceShape leaf node


URI

https://cacontology.projectvic.org/investigation-coordination#CoordinationCrossReferenceShape

Label

Coordination Cross Reference Shape

Description

Validates cross-references between coordination and related entities.

Shape Properties

Instances of cacontology-coord:InvestigationCoordination can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-coord:InvestigationCoordination
cacontology-coord:coordinationLevel 1 1 xsd:string
cacontology-coord:coordinationStatus 1 1 xsd:string
cacontology-coord:coordinationType 1 1 xsd:string
cacontology-coord:hasComplexityLevel 1 xsd:string
cacontology-coord:hasCoordinationEffectiveness 1 xsd:string
cacontology-coord:hasDataCompleteness 1 xsd:double
cacontology-coord:hasDataConsistency 1 xsd:double
cacontology-coord:hasDataQuality 1 xsd:string
cacontology-coord:hasSuccessRate 1 xsd:double
cacontology-coord:hasValidationLevel 1 xsd:string
cacontology-coord:leadAgency 1 1 xsd:string
cacontology-coord:participatingAgencies 1 1 xsd:nonNegativeInteger
1 xsd:dateTime
1 xsd:dateTime
0 1 xsd:string
0 1 xsd:string
0 1 xsd:dateTime
0 1 xsd:dateTime
0 1 xsd:dateTime
0 1 xsd:dateTime

Implementation

@prefix cacontology-coord: <https://cacontology.projectvic.org/investigation-coordination#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-coord:CoordinationCrossReferenceShape a sh:NodeShape ;
    rdfs:label "Coordination Cross Reference Shape"@en ;
    rdfs:comment "Validates cross-references between coordination and related entities."@en ;
    sh:sparql [ sh:message "Investigation coordination must involve at least two agencies and use communication protocols."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this a cacontology-coord:InvestigationCoordination .
                FILTER NOT EXISTS {
                    $this cacontology-coord:involvesAgency ?agency1, ?agency2 ;
                          cacontology-coord:usesProtocol ?protocol .
                    FILTER (?agency1 != ?agency2)
                }
            }
        """ ] ;
    sh:targetClass cacontology-coord:InvestigationCoordination .