Ontology Version: 2.2.0

cacontology-coord:InvestigationCoordinationTemporalShape leaf node


URI

https://cacontology.projectvic.org/investigation-coordination#InvestigationCoordinationTemporalShape

Label

InvestigationCoordinationTemporalShape

Shape Properties

Instances of cacontology-coord:InvestigationCoordination can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-coord:InvestigationCoordination
cacontology-coord:coordinationLevel 1 1 xsd:string
cacontology-coord:coordinationStatus 1 1 xsd:string
cacontology-coord:coordinationType 1 1 xsd:string
cacontology-coord:hasComplexityLevel 1 xsd:string
cacontology-coord:hasCoordinationEffectiveness 1 xsd:string
cacontology-coord:hasDataCompleteness 1 xsd:double
cacontology-coord:hasDataConsistency 1 xsd:double
cacontology-coord:hasDataQuality 1 xsd:string
cacontology-coord:hasSuccessRate 1 xsd:double
cacontology-coord:hasValidationLevel 1 xsd:string
cacontology-coord:leadAgency 1 1 xsd:string
cacontology-coord:participatingAgencies 1 1 xsd:nonNegativeInteger
1 xsd:dateTime
1 xsd:dateTime
0 1 xsd:string
0 1 xsd:string
0 1 xsd:dateTime
0 1 xsd:dateTime
0 1 xsd:dateTime
0 1 xsd:dateTime

Implementation

@prefix cacontology-coord: <https://cacontology.projectvic.org/investigation-coordination#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-coord:InvestigationCoordinationTemporalShape a sh:NodeShape ;
    sh:property [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Coordination may have at most one end time (gUFO temporal boundary)"@en ;
            sh:path gufo:hasEndPointInXSDDateTimeStamp ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Coordination may have at most one start time (gUFO temporal boundary)"@en ;
            sh:path gufo:hasBeginPointInXSDDateTimeStamp ] ;
    sh:sparql [ sh:message "Coordination end time must be after start time when both specified (gUFO temporal ordering)"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "http://purl.org/nemo/gufo#"^^xsd:anyURI ;
                            sh:prefix "gufo" ] ] ;
            sh:select """
            SELECT $this
            WHERE {
                $this gufo:hasBeginPointInXSDDateTimeStamp ?startTime .
                $this gufo:hasEndPointInXSDDateTimeStamp ?endTime .
                FILTER (?endTime <= ?startTime)
            }
        """ ] ;
    sh:targetClass cacontology-coord:InvestigationCoordination .