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

Received SME tenders in case of SME winner

Rule Definition

For every awarded lot where the winner is a small or medium-sized enterprise (SME), the number of received SME tenders is greater than or equal to 1.


Additional Information

Rule elaboration

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

Ontology property involved:

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

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

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:SubmissionStatisticalInformation-hasReceivedSMETenders-if-Winner-hasBusinessSize-SME

Implementation note

Implementation in PPDS SHACL shapes graph:

ppsh:SubmissionStatisticalInformation-hasReceivedSMETenders-if-Winner-hasBusinessSize-SME a sh:SPARQLConstraint ;
    sh:message "CON004";
    sh:name "Received SME tenders for SME winner" ;
    sh:description "If the winner is SME, the amount of received SME tenders should be greater or equal to 1" ;
    sh:severity sh:Warning ;
    sh:prefixes epo: ;
    sh:select """
        SELECT $this (epo:hasReceivedSMETenders AS ?path) (COALESCE(?receivedSMETenders, "null") AS ?value)
        WHERE {
            $this epo:summarisesInformationForLotAwardOutcome/epo:comprisesTenderAwardOutcome/
                epo:indicatesAwardOfLotToWinner/epo:playedBy/epo:hasBusinessSize
                <http://publications.europa.eu/resource/authority/economic-operator-size/sme> .
            OPTIONAL {
                $this epo:hasReceivedSMETenders ?receivedSMETenders .
            }
            FILTER (!BOUND(?receivedSMETenders) || ?receivedSMETenders < 1)
        }
    """ .

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

#10

#14

#30

#64

#88

#95

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 Ivo VELITCHKOV