Ontology Version: 3.1.0

cacontology-detection:ClassificationResultObjectShape leaf node


URI

https://cacontology.projectvic.org/detection#ClassificationResultObjectShape

Label

Classification Result Object Shape

Description

Validates classification result instances with gUFO Object constraints.

Targets (1)

Property Constraints (3)

Focus nodes of this shape (cacontology-detection:ClassificationResult) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-detection:ageEstimate Estimated age or age range of depicted individuals.
sh:message Age estimate must be between 0 and 25 years when specified
0 1 xsd:integer
sh:minInclusive 0
sh:maxInclusive 25
cacontology-detection:tannerStage Tanner stage assessment for physical development (1-5).
sh:message Tanner stage must be between 1 and 5 when specified
0 1 xsd:integer
sh:minInclusive 1
sh:maxInclusive 5
uco-core:createdTime
sh:message Classification result must specify creation time
1 1 xsd:dateTime

Implementation

@prefix cacontology-detection: <https://cacontology.projectvic.org/detection#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-detection:ClassificationResultObjectShape a sh:NodeShape ;
    rdfs:label "Classification Result Object Shape"@en ;
    rdfs:comment "Validates classification result instances with gUFO Object constraints."@en ;
    sh:property [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Classification result must specify creation time"@en ;
            sh:minCount 1 ;
            sh:path uco-core:createdTime ],
        [ sh:datatype xsd:integer ;
            sh:maxCount 1 ;
            sh:maxInclusive 25 ;
            sh:message "Age estimate must be between 0 and 25 years when specified"@en ;
            sh:minCount 0 ;
            sh:minInclusive 0 ;
            sh:path cacontology-detection:ageEstimate ],
        [ sh:datatype xsd:integer ;
            sh:maxCount 1 ;
            sh:maxInclusive 5 ;
            sh:message "Tanner stage must be between 1 and 5 when specified"@en ;
            sh:minCount 0 ;
            sh:minInclusive 1 ;
            sh:path cacontology-detection:tannerStage ] ;
    sh:targetClass cacontology-detection:ClassificationResult .