Ontology Version: 2.2.0

cacontology-production:ProductionRoleShape leaf node


URI

https://cacontology.projectvic.org/production#ProductionRoleShape

Label

Production Role Shape

Description

gUFO-enhanced validation shape for production roles with anti-rigidity and temporal constraints.

Target Classes (1)

Shape Properties

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

Implementation

@prefix cacontology-production: <https://cacontology.projectvic.org/production#> .
@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-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 gufo:Role .