Ontology Version: 2.2.0

cacontology-usa-federal:ProsecutionTemporalValidationShape leaf node


URI

https://cacontology.projectvic.org/usa-federal-law#ProsecutionTemporalValidationShape

Label

ProsecutionTemporalValidationShape

Shape Properties

Instances of cacontology-usa-federal:FederalProsecution can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-usa-federal:FederalProsecution
cacontology-usa-federal:hasLegalPhase 1 gufo:Phase
cacontology-usa-federal:hasProsecutionBeginPoint 1 xsd:dateTimeStamp
cacontology-usa-federal:hasProsecutionEndPoint 1 xsd:dateTimeStamp
cacontology-usa-federal:prosecutedBy 1 cacontology-usa-federal:FederalProsecutorRole
cacontology-usa-federal:prosecutionComplexity 1 xsd:string
cacontology-usa-federal:prosecutionSeverity 1 xsd:string
cacontology-usa-federal:prosecutionStatus 1 xsd:string

Implementation

@prefix cacontology-usa-federal: <https://cacontology.projectvic.org/usa-federal-law#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-usa-federal:ProsecutionTemporalValidationShape a sh:NodeShape ;
    sh:sparql [ sh:message "Prosecution end point must be after begin point"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/usa-federal-law#"^^xsd:anyURI ;
                            sh:prefix "cacontology-usa-federal" ] ] ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-usa-federal:hasProsecutionBeginPoint ?beginPoint .
                $this cacontology-usa-federal:hasProsecutionEndPoint ?endPoint .
                FILTER (?endPoint <= ?beginPoint)
            }
        """ ] ;
    sh:targetClass cacontology-usa-federal:FederalProsecution .