Ontology Version: 2.2.0

cacontology-detection:DetectionActionGUFOShape leaf node


URI

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

Label

gUFO Detection Action Shape

Description

Validates detection actions as gUFO Events with temporal boundaries.

Shape Properties

Instances of cacontology-detection:FalsePositiveAnalysisAction can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-detection:FalsePositiveAnalysisAction
cacontology-detection:hasDetectionBeginPoint 1 xsd:dateTimeStamp
cacontology-detection:hasDetectionEndPoint 1 xsd:dateTimeStamp
1

Implementation

@prefix cacontology-detection: <https://cacontology.projectvic.org/detection#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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-detection:DetectionActionGUFOShape a sh:NodeShape ;
    rdfs:label "gUFO Detection Action Shape"@en ;
    rdfs:comment "Validates detection actions as gUFO Events with temporal boundaries."@en ;
    sh:property [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Detection action can have at most one end point"@en ;
            sh:path cacontology-detection:hasDetectionEndPoint ],
        [ sh:hasValue gufo:Event ;
            sh:message "Detection action must be typed as gUFO Event"@en ;
            sh:minCount 1 ;
            sh:path rdf:type ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Detection action can have at most one begin point"@en ;
            sh:path cacontology-detection:hasDetectionBeginPoint ] ;
    sh:sparql [ sh:message "Detection begin point must precede end point"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/detection#"^^xsd:anyURI ;
                            sh:prefix "cacontology-detection" ] ] ;
            sh:select """
            PREFIX cacontology-detection: <https://cacontology.projectvic.org/detection#>
            SELECT ?this
            WHERE {
                ?this cacontology-detection:hasDetectionBeginPoint ?begin ;
                      cacontology-detection:hasDetectionEndPoint ?end .
                FILTER (?begin >= ?end)
            }
        """ ] ;
    sh:targetClass cacontology-detection:AutomatedDetectionAction,
        cacontology-detection:ContentHashingAction,
        cacontology-detection:DatabaseMatchAction,
        cacontology-detection:FalsePositiveAnalysisAction,
        cacontology-detection:ManualClassificationAction .