Ontology Version: 3.1.0

cacontology-undercover:AgeAcknowledgmentShape leaf node


URI

https://cacontology.projectvic.org/undercover#AgeAcknowledgmentShape

Label

Age Acknowledgment Shape

Description

Validation shape for suspect acknowledgments of minor's age.

Targets (1)

Property Constraints (2)

Focus nodes of this shape (cacontology-undercover:AgeAcknowledgment) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-undercover:acknowledgedCount Number of times suspect acknowledged the stated age.
sh:message Acknowledged count must be between 1 and 100.
0 1 xsd:nonNegativeInteger
sh:minInclusive 1
sh:maxInclusive 100
cacontology-undercover:ageStatedToSuspect Age that was explicitly stated to the suspect.
sh:message Age stated to suspect must be between 1 and 17.
0 1 xsd:nonNegativeInteger
sh:minInclusive 1
sh:maxInclusive 17

Implementation

@prefix cacontology-undercover: <https://cacontology.projectvic.org/undercover#> .
@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-undercover:AgeAcknowledgmentShape a sh:NodeShape ;
    rdfs:label "Age Acknowledgment Shape"@en ;
    rdfs:comment "Validation shape for suspect acknowledgments of minor's age."@en ;
    sh:property [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 17 ;
            sh:message "Age stated to suspect must be between 1 and 17."@en ;
            sh:minCount 0 ;
            sh:minInclusive 1 ;
            sh:path cacontology-undercover:ageStatedToSuspect ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 100 ;
            sh:message "Acknowledged count must be between 1 and 100."@en ;
            sh:minCount 0 ;
            sh:minInclusive 1 ;
            sh:path cacontology-undercover:acknowledgedCount ] ;
    sh:targetClass cacontology-undercover:AgeAcknowledgment .