Ontology Version: 2.2.0

cacontology-enterprises:GufoRoleInstantiationValidation leaf node


URI

https://cacontology.projectvic.org/extremist-enterprises#GufoRoleInstantiationValidation

Label

GufoRoleInstantiationValidation

Shape Properties

Instances of cacontology-enterprises:EnterpriseRole can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

Implementation

@prefix cacontology-enterprises: <https://cacontology.projectvic.org/extremist-enterprises#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix uco-identity: <https://ontology.unifiedcyberontology.org/uco/identity/> .
cacontology-enterprises:GufoRoleInstantiationValidation a sh:NodeShape ;
    sh:sparql [ sh:message "Enterprise roles must be properly instantiated by persons within enterprise context."@en ;
            sh:prefixes gufo:,
                cacontology-enterprises:,
                uco-identity: ;
            sh:select """
            SELECT $this WHERE {
                $this rdf:type cacontology-enterprises:EnterpriseRole .
                $this rdf:type gufo:Role .
                FILTER NOT EXISTS {
                    ?person rdf:type uco-identity:Person .
                    ?person ?roleProperty $this .
                    ?enterprise cacontology-enterprises:hasMember ?person .
                    ?enterprise rdf:type cacontology-enterprises:ChildExploitationEnterprise .
                }
            }
        """ ] ;
    sh:targetClass cacontology-enterprises:EnterpriseRole .