Code development platform for open source projects from the European Union institutions 🔵 EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content

The legal type is provided for each buyer

Rule Definition

Every Buyer has a legal type description.


Additional Information

Rule elaboration

Completeness Business Rule with ID COM006 as defined in deliverable D06.06 – Data Quality Action Plan.

Ontology property involved: http://data.europa.eu/a4g/ontology#hasBuyerLegalTypeDescription

Rule source

https://code.europa.eu/eproc/ppds/documentation/-/blob/main/documents/d0606_data_quality_action_plan.md#21-completeness-business-rules

Rule implementation

ppsh:Buyer-hasBuyerLegalType

Implementation note

Implementation in PPDS SHACL shapes graph:

ppsh:Buyer-hasBuyerLegalType a sh:SPARQLConstraint ;
    sh:message "COM006" ;
    sh:name "Legal type of the Buyer." ;
    sh:description "The legal type of the Buyer must be provided." ;
    sh:severity sh:Warning ;
    sh:prefixes epo: , xsd:, cccev: ;
    sh:targetClass epo:Buyer ;
    sh:select """
        SELECT $this (epo:hasBuyerLegalType as ?path) (?legalType as ?value)
             WHERE {
                    $this epo:playedBy ?organisation .
                    FILTER NOT EXISTS {
                        ?organisation epo:hasBuyerLegalType ?legalType .
                    }
        }

https://sdlc.webcloud.ec.europa.eu/ppds/docker/ppds-shacl-shapes/-/blob/featured/revision_0.3.3/ppds-shapes.ttl?ref_type=heads

Related rules

#42

#43

#44

#46

#75

#92

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)

Edited by Enrique Jose Barcala Soto