CPV code in lots with multiple CPV codes
Rule Definition
For analasys, the CPV code is the first CPV code informed in the lot.
Additional Information
Rule elaboration
For the simplification of the lot CPV code, the following steps must be performed:
- A Procedure can be related to one or several epo:MainClassification, so for simplification purposes, only the first one is selected.
- Use a SPARQL query to retrieve the Main CPV code related to the procedure through the path: (epo:Notice) -> epo:refersToProcedure (epo:Procedure) -> epo:hasPurpose (epo:Purpose) -> epo:hasMainClassification.
- Once the CPV (uri) has been extracted, we will use the skos:prefLabel property filtering the result language to "en" to obtain the label in English.
- A construct query is used to add the triple that links the epo:Notice with this Main CPV code.
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:procedureHasMainCPVCode
a sh:NodeShape ;
sh:targetClass epo:Procedure ;
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:procedureHasMainCPVCode ?mainCPV .
}
WHERE {
$this epo:hasPurpose ?purpose .
?purpose epo:hasMainClassification ?mainCPV .
}
"""""" ;
] ."
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)