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 the result notice and the contract conclusion date

Rule Definition

Every result notice has a dispatch date wich is previous or equal than the contract conclusion date.


Additional Information

Rule elaboration

Consistency Business Rule with ID CON011 as defined in deliverable D06.06 – Data Quality Action Plan.

Ontology property involved:

http://data.europa.eu/a4g/ontology#hasDispatchDate

http://data.europa.eu/a4g/ontology#hasContractConclusionDate

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-CNDispatchBeforeConclusion

Implementation note

Implementation in PPDS SHACL shapes graph:

ppsh:Document-CNDispatchBeforeConclusion a sh:SPARQLConstraint ;
    sh:targetClass epo:Document ;
    sh:message "CON011" ;
    sh:description "The dispatch date of the CN must be earlier than the Contract conclusion date." ;
    sh:severity sh:warning ;
    sh:prefixes epo: , xsd: ;
    sh:select """
            PREFIX epo: <http://data.europa.eu/a4g/ontology#>
            SELECT $this (epo:hasContractConclusionDate as ?path) (?conclusionDate as ?value)
            WHERE {
                $this a epo:Document ;
                    epo:hasDispatchDate ?dispatchDate .
                $this a epo:Contract ;
                          epo:hasContractConclusionDate ?conclusionDate .
                FILTER(?dispatchDate >= ?conclusionDate)
            }
        """ .

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

#39

#50

#62

#80

#98

Related generic rule

#4

History note

(If applicable, add here a note about a previous state of the rule, before the Rulebook)

Edited by Enrique Jose Barcala Soto