Ontology Version: 3.1.0

cacontology-detection:DetectionRoleGUFOShape leaf node


URI

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

Label

gUFO Detection Role Shape

Description

Validates detection roles as anti-rigid gUFO roles.

Property Constraints (2)

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-detection:hasRoleBeginPoint Temporal begin point for detection role.
sh:message Detection role can have at most one begin point
0 1 xsd:dateTimeStamp
cacontology-detection:hasRoleEndPoint Temporal end point for detection role.
sh:message Detection role can have at most one end point
0 1 xsd:dateTimeStamp

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 xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-detection:DetectionRoleGUFOShape a sh:NodeShape ;
    rdfs:label "gUFO Detection Role Shape"@en ;
    rdfs:comment "Validates detection roles as anti-rigid gUFO roles."@en ;
    sh:property [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Detection role can have at most one begin point"@en ;
            sh:path cacontology-detection:hasRoleBeginPoint ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Detection role can have at most one end point"@en ;
            sh:path cacontology-detection:hasRoleEndPoint ] ;
    sh:sparql [ sh:message "Role 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:hasRoleBeginPoint ?begin ;
                      cacontology-detection:hasRoleEndPoint ?end .
                FILTER (?begin >= ?end)
            }
        """ ] ;
    sh:targetClass cacontology-detection:ContentAnalystRole,
        cacontology-detection:HashAnalystRole,
        cacontology-detection:MachineLearningSpecialistRole,
        cacontology-detection:QualityAssuranceAnalystRole .