https://cacontology.projectvic.org/recruitment-networks/shapes#NetworkSizeConsistencyShape
Validates consistency between network size and victim recruiter count.
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
|
|
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-recruitment-shapes:NetworkSizeConsistencyShape a sh:NodeShape ;
rdfs:label "Network Size Consistency Shape"@en ;
rdfs:comment "Validates consistency between network size and victim recruiter count."@en ;
sh:sparql [ sh:message "Victim recruiter count cannot exceed total network size."@en ;
sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/recruitment-networks#"^^xsd:anyURI ;
sh:prefix "cacontology-recruitment" ] ] ;
sh:select """
SELECT $this
WHERE {
$this cacontology-recruitment:networkSize ?size ;
cacontology-recruitment:victimRecruitersCount ?recruiters .
FILTER (?recruiters > ?size)
}
""" ] ;
sh:targetClass cacontology-recruitment:PeerRecruitmentNetwork .