https://cacontology.projectvic.org/production#ProductionRoleShape
gUFO-enhanced validation shape for production roles with anti-rigidity and temporal constraints.
Focus nodes of this shape (cac-core:Role) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
| cacontology-production:hasRoleBeginPoint | Temporal begin point for production role. sh:message Production role may have at most one begin point. |
0 | 1 | xsd:dateTimeStamp | |
| cacontology-production:hasRoleEndPoint | Temporal end point for production role. sh:message Production role may have an end point. |
0 | 1 | xsd:dateTimeStamp |
@prefix cac-core: <https://cacontology.projectvic.org/core#> .
@prefix cacontology-production: <https://cacontology.projectvic.org/production#> .
@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-production:ProductionRoleShape a sh:NodeShape ;
rdfs:label "Production Role Shape"@en ;
rdfs:comment "gUFO-enhanced validation shape for production roles with anti-rigidity and temporal constraints."@en ;
sh:property [ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Production role may have at most one begin point."@en ;
sh:minCount 0 ;
sh:path cacontology-production:hasRoleBeginPoint ],
[ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Production role may have an end point."@en ;
sh:minCount 0 ;
sh:path cacontology-production:hasRoleEndPoint ] ;
sh:sparql [ sh:message "Role begin point must be before end point."@en ;
sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/production#"^^xsd:anyURI ;
sh:prefix "cacontology-production" ] ] ;
sh:select """
PREFIX cacontology-production: <https://cacontology.projectvic.org/production#>
SELECT ?this WHERE {
?this cacontology-production:hasRoleBeginPoint ?begin .
?this cacontology-production:hasRoleEndPoint ?end .
FILTER(?begin >= ?end)
}
""" ],
[ sh:message "Role instances must be anti-rigid (cannot exist without being played by entities)."@en ;
sh:prefixes [ sh:declare [ sh:namespace "http://purl.org/nemo/gufo#"^^xsd:anyURI ;
sh:prefix "gufo" ] ] ;
sh:select """
PREFIX gufo: <http://purl.org/nemo/gufo#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?this WHERE {
?this a gufo:Role .
FILTER NOT EXISTS { ?this a owl:Class . }
FILTER NOT EXISTS {
?entity ?property ?this .
?property rdfs:subPropertyOf* gufo:playsRole .
}
}
""" ] ;
sh:targetClass cac-core:Role .