Ontology Version: 3.1.0

cacontology-detection:DetectionResultObjectShape leaf node


URI

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

Label

Detection Result Object Shape

Description

Validates detection result instances with gUFO Object constraints.

Targets (1)

Property Constraints (2)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-detection:confidenceScore The confidence score (0.0-1.0) of the detection or classification result.
sh:message Detection result must have a confidence score between 0.0 and 1.0
1 1 xsd:decimal
sh:minInclusive 0.0
sh:maxInclusive 1.0
uco-core:createdTime
sh:message Detection 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:DetectionResultObjectShape a sh:NodeShape ;
    rdfs:label "Detection Result Object Shape"@en ;
    rdfs:comment "Validates detection result instances with gUFO Object constraints."@en ;
    sh:property [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 1.0 ;
            sh:message "Detection result must have a confidence score between 0.0 and 1.0"@en ;
            sh:minCount 1 ;
            sh:minInclusive 0.0 ;
            sh:path cacontology-detection:confidenceScore ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Detection result must specify creation time"@en ;
            sh:minCount 1 ;
            sh:path uco-core:createdTime ] ;
    sh:targetClass cacontology-detection:DetectionResult .