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

Contract conclusion date format

Rule Definition

Contract conclusion date has a proper date format.


Additional Information

Rule elaboration

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

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

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:Contract-hasContractConclusionDate-datatype

Implementation note

Implementation in the SHACL shapes graph:

ppsh:Contract-hasContractConclusionDate-datatype a sh:PropertyShape ;
    sh:message "VAL027" ;
    sh:name "Date of conclusion of the contract must have a proper date format." ;
    sh:description "Date of conclusion of the contract must have a proper date format." ;
    sh:severity sh:Warning ;
    sh:targetClass epo:Notice ;
    sh:or (
        [
            sh:datatype xsd:date
            ]
        [
            sh:datatype xsd:string ;
            sh:pattern "^\\d{2}/(0[1-9]|1[0-2])/\\d{4}$|^\\d{4}/(0[1-9]|1[0-2])/\\d{2}$"
            ]
        )

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

#62

#79

#98

Related generic rule

#13

History note

(If applicable, add here a note about a previous state of the rule, before the Rulebook)

Edited by Enrique Jose Barcala Soto