Winner in case of multiple winners
Rule Definition
In each procedure where multiple winners are informed, the winner used for analysis is the first winner informed in the result notice for each lot
Additional Information
Rule elaboration
For the simplification of the Contractor, 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 epo:Winner 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).
- A construct query will be used to link the epo:Notice with the simplified epo:Winner.
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:
ppsh:fromWinner
a sh:NodeShape ;
sh:targetClass epo:Lot ;
sh:rule [
a sh:SPARQLRule ;
sh:order 9 ;
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:fromWinner ?winner .
}
WHERE
{
$this a epo:Lot .
{
SELECT ?winner
WHERE {
$this a epo:Lot .
?lotAward epo:describesLot ?lot .
?lotAward epo:comprisesTenderAwardOutcome ?tender .
?tender epo:indicatesAwardOfLotToWinner ?winner .
}limit 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)