Currency code is a value from NAL "Currency"
Rule Definition
Currency code is a value from NAL "Currency".
Additional Information
Rule elaboration
Validity Business Rule with ID VAL010 as defined in deliverable D06.06 – Data Quality Action Plan.
Ontology property involved: http://data.europa.eu/a4g/ontology#hasCurrency
Link to the NAL: https://op.europa.eu/en/web/eu-vocabularies/concept-scheme/-/resource?uri=http://publications.europa.eu/resource/authority/currency
NAL stands for "Name authority list".
Rule source
Rule implementation
ppsh:MonetaryValue-hasCurrency-values
Implementation note
Implementation in the SHACL shapes graph:
ppsh:MonetaryValue-hasCurrency-values a sh:SPARQLConstraint ;
sh:description "The currency code must be listed in the applicable controlled list." ;
sh:severity sh:Warning ;
sh:message "VAL010" ;
sh:name "Currency code is valid" ;
sh:targetClass epo:MonetaryValue ;
sh:select """
PREFIX epo: <http://data.europa.eu/a4g/ontology#>
SELECT $this (epo:hasCurrency AS ?path) (?currencyCode AS ?value) WHERE {
$this a epo:MonetaryValue .
$this epo:hasCurrency ?currencyCode .
?currencyCode skos:inScheme <http://publications.europa.eu/resource/authority/currency> .
}
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)