Ontology Version: 2.2.0

cacontology-recruitment-shapes:PeerRecruitmentNetworkShape leaf node


URI

https://cacontology.projectvic.org/recruitment-networks/shapes#PeerRecruitmentNetworkShape

Label

Peer Recruitment Network Shape

Description

Validation shape for peer recruitment network instances.

Shape Properties

Instances of cacontology-recruitment:PeerRecruitmentNetwork can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-recruitment:PeerRecruitmentNetwork
cacontology-recruitment:includesRecruitingVictim 1 uco-identity:Person
cacontology-recruitment:networkSize 1 1 xsd:nonNegativeInteger
cacontology-recruitment:victimRecruitersCount 1 1 xsd:nonNegativeInteger

Implementation

@prefix cacontology-recruitment: <https://cacontology.projectvic.org/recruitment-networks#> .
@prefix cacontology-recruitment-shapes: <https://cacontology.projectvic.org/recruitment-networks/shapes#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix uco-identity: <https://ontology.unifiedcyberontology.org/uco/identity/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-recruitment-shapes:PeerRecruitmentNetworkShape a sh:NodeShape ;
    rdfs:label "Peer Recruitment Network Shape"@en ;
    rdfs:comment "Validation shape for peer recruitment network instances."@en ;
    sh:property [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 50 ;
            sh:message "Peer recruitment network must have 2-50 participants."@en ;
            sh:minCount 1 ;
            sh:minInclusive 2 ;
            sh:path cacontology-recruitment:networkSize ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 20 ;
            sh:message "Network must have 1-20 victim recruiters."@en ;
            sh:minCount 1 ;
            sh:minInclusive 1 ;
            sh:path cacontology-recruitment:victimRecruitersCount ],
        [ sh:class uco-identity:Person ;
            sh:message "Recruitment network must include at least one recruiting victim."@en ;
            sh:minCount 1 ;
            sh:path cacontology-recruitment:includesRecruitingVictim ] ;
    sh:targetClass cacontology-recruitment:PeerRecruitmentNetwork .