Dispatch Date is not a future date
Rule Definition
The dispatch date of every notice is not a future date
Additional Information
Rule elaboration
Consistency Business Rule with ID CON009 as defined in deliverable D06.06 – Data Quality Action Plan.
Ontology property involved: http://data.europa.eu/a4g/ontology#hasDispatchDate
Rule source
Rule implementation
ppsh:Document-NoticeDispatchDate
Implementation note
Implementation in PPDS SHACL shapes graph:
ppsh:Document-NoticeDispatchDate a sh:SPARQLConstraint ;
sh:targetClass epo:Document ;
sh:message "CON009" ;
sh:description "A notice's dispatch date must be on or before the current date." ;
sh:severity sh:warning ;
sh:prefixes epo: , xsd: ;
sh:select """
PREFIX epo: <http://data.europa.eu/a4g/ontology#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT $this (epo:hasDispatchDate as ?path) (?dispatchDate as ?value)
WHERE {
$this epo:hasDispatchDate ?dispatchDate .
FILTER(?dispatchDate > NOW())
}
""" .
Related rules
Related generic rule
(If the rule is a specialisation of a generic rule registered in this Rulebook, include here URL of that generic rule)
History note
(If applicable, add here a note about a previous state of the rule, before the Rulebook)