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
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)
}
""" .
Related rules
Related generic rule
History note
(If applicable, add here a note about a previous state of the rule, before the Rulebook)