https://cacontology.projectvic.org/partnerships/shapes#PartnerRoleTemporalShape
Validates gUFO temporal constraints for partner roles.
Focus nodes of this shape (cac-core:Role) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
| cacontology-partnerships:hasRoleBeginPoint | Temporal begin point for partner role. sh:message Partner role may have begin point timestamp. |
0 | 1 | xsd:dateTimeStamp | |
| cacontology-partnerships:hasRoleEndPoint | Temporal end point for partner role. sh:message Partner role may have end point timestamp. |
0 | 1 | xsd:dateTimeStamp |
@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 .