https://cacontology.projectvic.org/infrastructure/shapes#TechnicalRoleTemporalShape
Validates gUFO temporal constraints for technical roles.
Instances of gufo:Role can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| gufo: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-production:hasRoleBeginPoint | 0 | 1 |
xsd:dateTimeStamp
|
|
| cacontology-production:hasRoleEndPoint | 0 | 1 |
xsd:dateTimeStamp
|
|
@prefix cacontology-infrastructure: <https://cacontology.projectvic.org/infrastructure#> .
@prefix cacontology-infrastructure-shapes: <https://cacontology.projectvic.org/infrastructure/shapes#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@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-infrastructure-shapes:TechnicalRoleTemporalShape a sh:NodeShape ;
rdfs:label "Technical Role Temporal Shape"@en ;
rdfs:comment "Validates gUFO temporal constraints for technical roles."@en ;
sh:property [ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Technical role may have begin point timestamp."@en ;
sh:path cacontology-infrastructure:hasRoleBeginPoint ],
[ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Technical role may have end point timestamp."@en ;
sh:path cacontology-infrastructure:hasRoleEndPoint ] ;
sh:sparql [ sh:message "Role end must be after begin when both are specified."@en ;
sh:select """
SELECT $this
WHERE {
$this cacontology-infrastructure:hasRoleBeginPoint ?start ;
cacontology-infrastructure:hasRoleEndPoint ?end .
FILTER (?end <= ?start)
}
""" ] ;
sh:targetClass gufo:Role .