Legal basis is valid
Rule Definition
Legal basis is a value from NAL "Legal Basis".
Additional Information
Rule elaboration
Validity Business Rule with ID VAL009 as defined in deliverable D06.06 – Data Quality Action Plan.
Ontology property involved: http://data.europa.eu/a4g/ontology#hasLegalBasis
Link to the NAL: https://op.europa.eu/en/web/eu-vocabularies/dataset/-/resource?uri=http://publications.europa.eu/resource/dataset/legal-basis
NAL stands for "Name authority list".
Rule source
Rule implementation
ppsh:Notice-TEDNoticeLegalBasis
Implementation note
Implementation in the SHACL shapes graph:
ppsh:Notice-TEDNoticeLegalBasis a sh:SPARQLConstraint ;
sh:message "VAL009" ;
sh:name "Legal basis is valid as defined in the applicable controlled list." ;
sh:description "The legal basis of a TED Notice must be one of the recognized EU legal bases." ;
sh:severity sh:warning ;
sh:targetClass epo:Notice ;
sh:select """
PREFIX epo: <http://data.europa.eu/a4g/ontology#>
SELECT $this (epo:hasLegalBasis AS ?path) (?legalBasis AS ?value) WHERE {
$this a epo:Notice .
$this epo:hasLegalBasis ?legalBasis .
?legalBasis skos:inScheme <http://publications.europa.eu/resource/authority/legal-basis> .
}
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)