The country code is provided for each buyer
Rule Definition
Every Buyer has a country code.
Additional Information
Rule elaboration
When the procedure has several Buyers, the rule applies for each Buyer.
Completeness Business Rule with ID COM007 as defined in deliverable D06.06 – Data Quality Action Plan.
Ontology property involved:http://data.europa.eu/a4g/ontology#hasCountryCode
Rule source
Rule implementation
ppsh:Buyer-Address-hasCountryCode
Implementation note
Implementation in PPDS SHACL shapes graph:
ppsh:Buyer-Address-hasCountryCode a sh:SPARQLConstraint ;
sh:message "COM007" ;
sh:name "Country code of the Buyer is provided. " ;
sh:description "In case of several Buyers, the business rule is executed for each Buyer provided in the notice" ;
sh:severity sh:Warning ;
sh:prefixes epo: , xsd:, cccev: ;
sh:targetClass epo:Buyer ;
sh:select """
SELECT $this (epo:hasCountryCode as ?path) (?countryCode as ?value)
WHERE {
$this epo:playedBy ?organisation .
?organisation cccev:registeredAddress ?address .
FILTER NOT EXISTS {
?address epo:hasCountryCode ?countryCode .
}
}
Related rules
Related generic rule
(If the rule is a specialisation of a generic rule registered in this Rulebook, the URL of that generic rule is provided here.)
History note
(If applicable, add here a note about a previous state of the rule, before the Rulebook)