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

Monetary value format

Rule Definition

The format of every monetary value is a positive decimal with 2 decimals.


Additional Information

Rule elaboration

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

Ontology properties involved:

http://data.europa.eu/a4g/ontology#hasAmountValue

http://data.europa.eu/a4g/ontology#hasEstimatedValue

http://data.europa.eu/a4g/ontology#hasAwardedValue

http://data.europa.eu/a4g/ontology#hasTotalAwardedValue

Rule source

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

Rule implementation

ppsh:MonetaryValue-hasAmountValue-datatype

Implementation note

Implementation in the SHACL shapes graph:

ppsh:MonetaryValue-hasAmountValue-datatype a sh:PropertyShape ;
    sh:description "The amount value of the monetary must be a number with or without decimals." ;
    sh:or (
        [ sh:datatype xsd:integer ]
        [ sh:datatype xsd:decimal ]
    ) ;
    sh:severity sh:Warning ;
    sh:message "VAL011" ;
    sh:name "Amount value of monetary value datatype" ;
    sh:path epo:hasAmountValue .

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

#9

#25

#26

#27

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