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