Ontology Version: 3.1.0

cacontology-coord:ResourceSharingDurationShape leaf node


URI

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

Label

Resource Sharing Duration Shape

Description

Validates resource sharing duration reasonableness.

Targets (1)

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:ResourceSharingDurationShape a sh:NodeShape ;
    rdfs:label "Resource Sharing Duration Shape"@en ;
    rdfs:comment "Validates resource sharing duration reasonableness."@en ;
    sh:sparql [ sh:message "Long-term resource sharing should have formal agreements."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-coord:sharingDuration ?duration .
                FILTER (?duration > 720)
                FILTER NOT EXISTS {
                    ?coordination cacontology-coord:sharesResources $this ;
                                  cacontology-coord:governsAgreement ?agreement .
                }
            }
        """ ] ;
    sh:targetClass cacontology-coord:ResourceSharing .