@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:PhaseOrderingValidationShape a sh:NodeShape ;
sh:sparql [ sh:message "Pre-trial phase must precede trial phase in federal prosecution"@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:hasLegalPhase ?preTrialPhase .
$this cacontology-usa-federal:hasLegalPhase ?trialPhase .
?preTrialPhase rdf:type cacontology-usa-federal:PreTrialPhase .
?trialPhase rdf:type cacontology-usa-federal:TrialPhase .
?preTrialPhase cacontology-usa-federal:hasPhaseBeginPoint ?preTrialBegin .
?trialPhase cacontology-usa-federal:hasPhaseBeginPoint ?trialBegin .
FILTER (?preTrialBegin >= ?trialBegin)
}
""" ] ;
sh:targetClass cacontology-usa-federal:FederalProsecution .