Ontology Version: 3.0.0

cacontology-partnerships-shapes:PartnerRoleTemporalShape leaf node


URI

https://cacontology.projectvic.org/partnerships/shapes#PartnerRoleTemporalShape

Label

Partner Role Temporal Shape

Description

Validates gUFO temporal constraints for partner roles.

Target Classes (1)

Shape Properties

Instances of cac-core:Role can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cac-core:Role
cacontology-infrastructure:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology-infrastructure:hasRoleEndPoint 1 xsd:dateTimeStamp
cacontology-multi:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology-multi:hasRoleEndPoint 1 xsd:dateTimeStamp
cacontology-partnerships:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology-partnerships:hasRoleEndPoint 1 xsd:dateTimeStamp
cacontology-physical:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology-physical:hasRoleEndPoint 1 xsd:dateTimeStamp
cacontology-production:hasRoleBeginPoint 0 1 xsd:dateTimeStamp
cacontology-production:hasRoleEndPoint 0 1 xsd:dateTimeStamp
cacontology:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology:hasRoleEndPoint 1 xsd:dateTimeStamp
0 cacontology:CACInvestigation

Implementation

@prefix cac-core: <https://cacontology.projectvic.org/core#> .
@prefix cacontology-partnerships: <https://cacontology.projectvic.org/partnerships#> .
@prefix cacontology-partnerships-shapes: <https://cacontology.projectvic.org/partnerships/shapes#> .
@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:PartnerRoleTemporalShape a sh:NodeShape ;
    rdfs:label "Partner Role Temporal Shape"@en ;
    rdfs:comment "Validates gUFO temporal constraints for partner roles."@en ;
    sh:property [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Partner role may have begin point timestamp."@en ;
            sh:path cacontology-partnerships:hasRoleBeginPoint ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Partner role may have end point timestamp."@en ;
            sh:path cacontology-partnerships:hasRoleEndPoint ] ;
    sh:sparql [ sh:message "Role end must be after begin when both are specified."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-partnerships:hasRoleBeginPoint ?start ;
                      cacontology-partnerships:hasRoleEndPoint ?end .
                FILTER (?end <= ?start)
            }
        """ ] ;
    sh:targetClass cac-core:Role .