https://cacontology.projectvic.org/legal-harmonization/shapes#AssessmentTemporalShape
Validates temporal constraints for legal assessments and reviews.
Focus nodes of this shape (cacontology-legal:GlobalLegalReview, cacontology-legal:LegislativeAssessment) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
uco-core:endTime |
sh:message Assessments should specify end time |
0 | 1 | xsd:dateTime |
sh:severity
sh:Info
|
uco-core:startTime |
sh:message Assessments should specify start time |
0 | 1 | xsd:dateTime |
sh:severity
sh:Info
|
@prefix cacontology-legal: <https://cacontology.projectvic.org/legal-harmonization#> .
@prefix cacontology-legal-shapes: <https://cacontology.projectvic.org/legal-harmonization/shapes#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-legal-shapes:AssessmentTemporalShape a sh:NodeShape ;
rdfs:label "Assessment Temporal Shape"@en ;
rdfs:comment "Validates temporal constraints for legal assessments and reviews."@en ;
sh:property [ sh:datatype xsd:dateTime ;
sh:maxCount 1 ;
sh:message "Assessments should specify start time"@en ;
sh:path uco-core:startTime ;
sh:severity sh:Info ],
[ sh:datatype xsd:dateTime ;
sh:maxCount 1 ;
sh:message "Assessments should specify end time"@en ;
sh:path uco-core:endTime ;
sh:severity sh:Info ] ;
sh:sparql [ sh:message "Assessment end time must be after start time"@en ;
sh:prefixes [ sh:declare [ sh:namespace "https://ontology.unifiedcyberontology.org/uco/core/"^^xsd:anyURI ;
sh:prefix "uco-core" ] ] ;
sh:select """
SELECT $this
WHERE {
$this uco-core:startTime ?start .
$this uco-core:endTime ?end .
FILTER (?end <= ?start)
}
""" ;
sh:severity sh:Violation ] ;
sh:targetClass cacontology-legal:GlobalLegalReview,
cacontology-legal:LegislativeAssessment .