Code development platform for open source projects from the European Union institutions 🔵 EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content

Consistency between the dispatch date of a notice and the current day

Rule Definition

The dispatch date of every notice is previous or equal than the current day.


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

https://code.europa.eu/eproc/ppds/documentation/-/blob/main/documents/d0606_data_quality_action_plan.md#23-consistency-business-rules

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())
                }
            """ .

https://sdlc.webcloud.ec.europa.eu/ppds/docker/ppds-shacl-shapes/-/blob/featured/revision_0.3.3/ppds-shapes.ttl?ref_type=heads

Related rules

#37

#50

#78

#79

#80

#98

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)

Edited by Enrique Jose Barcala Soto