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

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

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

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

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

#33

#68

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