Winner business size in case of multiple winners
Rule Definition
In each lot where more than one winner business size is informed, the winner business size used for analysis is the first winner business size informed in each lot.
Additional Information
Rule elaboration
For the simplification of the Contractor Business Size, the following steps must be performed:
- A lot award can be related to one or several epo:Winner, so for simplification purposes, only the first one is selected.
- A SPARQL query will be used to retrieve the Winner Business Size entities related to each epo:Lot associated with the epo:Notice, following the path:
epo:Notice -> epo:announcesLotAwardOutcome (epo:LotAwardOutcome) -> epo:comprisesTenderAwardOutcome (epo:TenderAwardOutcome) -> epo:indicatesAwardOfLotToWinner (epo:Winner)-> epo:playedBy (org:Organization) -> epo:hasBusinessSize .
- A construct query will be used to link the epo:Notice with the simplified Winner Business Size.
Rule source
(Provide URL to legal source, if applicable)
Rule implementation
(Provide only URIs of formal encodings of the rules for execution. These are typically URIs of SHACL rules or RML maps. Each URI should be provided on a new line with no additional information)
Implementation note
Implementation in PPDS SHACL shapes graph:
sh:NodeShape ;\
rdfs:label ""@en ;\
rdfs:comment ""@en ;\
sh:targetClass epo:Lot ;\
sh:rule \[\
a sh:SPARQLRule ;\
sh:prefixes epo: , epo-ppds-ap: ;\
sh:construct """\
PREFIX epo: \<http://data.europa.eu/a4g/ontology#\>\ PREFIX epo-ppds-ap: \<http://data.europa.eu/gx2/epo-ppds-ap#\>\ PREFIX org: \<http://www.w3.org/ns/org#\>\ CONSTRUCT {\
$this epo-ppds-ap:fromWinnerBusinessSize ?businessSize.\
\
}\
WHERE {\
$this a epo:Lot .\
{\
SELECT ?businessSize\
WHERE {\
$this a epo:Lot .\
?lotAward epo:describesLot ?lot .\
?lotAward epo:comprisesTenderAwardOutcome ?tender .\
?tender epo:indicatesAwardOfLotToWinner ?winner .\
?winner epo:playedBy/epo:hasBusinessSize ?businessSize .\
} limit 1\
}\
}
""" ;
] ."
Related rules
Related generic rule
History note
(If applicable, add here a note about a previous state of the rule, before the Rulebook)