Ontology Version: 3.0.0

cacontology:PhaseShape leaf node


URI

https://cacontology.projectvic.org#PhaseShape

Label

gUFO Phase Shape

Target Classes (1)

Implementation

@prefix cac-core: <https://cacontology.projectvic.org/core#> .
@prefix cacontology: <https://cacontology.projectvic.org#> .
@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:PhaseShape a sh:NodeShape ;
    rdfs:label "gUFO Phase Shape"@en ;
    sh:property [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Phase can have at most one begin point"@en ;
            sh:path cacontology:hasPhaseBeginPoint ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Phase can have at most one end point"@en ;
            sh:path cacontology:hasPhaseEndPoint ] ;
    sh:sparql [ sh:message "Phase begin point must precede end point"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org#"^^xsd:anyURI ;
                            sh:prefix "cacontology" ] ] ;
            sh:select """
            PREFIX cacontology: <https://cacontology.projectvic.org#>
            SELECT ?this
            WHERE {
                ?this cacontology:hasPhaseBeginPoint ?begin ;
                      cacontology:hasPhaseEndPoint ?end .
                FILTER (?begin >= ?end)
            }
        """ ] ;
    sh:targetClass cac-core:Phase .