Ontology Version: 2.2.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.

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-detection:MachineLearningSpecialistRole
cacontology-detection:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology-detection:hasRoleEndPoint 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: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:hasValue gufo:Role ;
            sh:message "Detection role must be typed as gUFO Role (anti-rigid sortal)"@en ;
            sh:minCount 1 ;
            sh:path rdf:type ],
        [ 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 .