Ontology Version: 2.2.0

cacontology-detection:DetectionPhaseGUFOShape leaf node


URI

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

Label

gUFO Detection Phase Shape

Description

Validates detection phases as anti-rigid gUFO phases.

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-detection:InitialDetectionPhase
cacontology-detection:hasPhaseBeginPoint 1 xsd:dateTimeStamp
cacontology-detection:hasPhaseEndPoint 1 xsd:dateTimeStamp
1
cacontology-detection:AutomatedDetectionAction
cacontology-detection:confidenceScore 0 1 xsd:decimal
cacontology-detection:hasDetectionBeginPoint 1 xsd:dateTimeStamp
cacontology-detection:hasDetectionEndPoint 1 xsd:dateTimeStamp
1
1 1 cacontology-detection:MachineLearningDetectionTool
1 1 xsd:dateTime

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:DetectionPhaseGUFOShape a sh:NodeShape ;
    rdfs:label "gUFO Detection Phase Shape"@en ;
    rdfs:comment "Validates detection phases as anti-rigid gUFO phases."@en ;
    sh:property [ sh:hasValue gufo:Phase ;
            sh:message "Detection phase must be typed as gUFO Phase (anti-rigid sortal)"@en ;
            sh:minCount 1 ;
            sh:path rdf:type ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Detection phase can have at most one begin point"@en ;
            sh:path cacontology-detection:hasPhaseBeginPoint ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Detection phase can have at most one end point"@en ;
            sh:path cacontology-detection:hasPhaseEndPoint ] ;
    sh:sparql [ sh:message "Phase 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 """
            SELECT ?this
            WHERE {
                ?this cacontology-detection:hasPhaseBeginPoint ?begin ;
                      cacontology-detection:hasPhaseEndPoint ?end .
                FILTER (?begin >= ?end)
            }
        """ ] ;
    sh:targetClass cacontology-detection:HashComparisonPhase,
        cacontology-detection:InitialDetectionPhase,
        cacontology-detection:ManualReviewPhase,
        cacontology-detection:ReportingPhase,
        cacontology-detection:ValidationPhase .