Buyers for joint procurement
Rule Definition
For every procedure with joint procurement, there is more than one buyer.
Additional Information
Rule elaboration
Consistency Business Rule with ID CON007 as defined in deliverable D06.06 – Data Quality Action Plan.
Ontology property involved:
http://data.europa.eu/a4g/ontology#isJointProcurement
http://data.europa.eu/a4g/ontology#isContractingEntity
Rule source
Rule implementation
ppsh:Procedure-isJointProcurement
Implementation note
Implementation in PPDS SHACL shapes graph:
ppsh:Procedure-isJointProcurement a sh:SPARQLConstraint ;
sh:description "If it is a Joint a joint procurement, there has to be more than one contracting entity" ;
sh:severity sh:Warning ;
sh:message "CON007" ;
sh:name "There are more than one contracting entities" ;
sh:prefixes epo: ;
sh:select """
SELECT $this (epo:isJointProcurement as ?path) (?entityCount AS ?value)
WHERE {
$this epo:isJointProcurement true .
{
SELECT $this (COUNT(?entity) AS ?entityCount)
WHERE {
$this epo:contractingEntity ?entity .
} GROUP BY $this
}
FILTER (?entityCount < 2)
}
""" .
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)